Skip to content

Commit

Permalink
docs: 更新文档 (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
st1020 authored Jun 16, 2024
1 parent 5cdf7e1 commit 2d5efdf
Show file tree
Hide file tree
Showing 6 changed files with 928 additions and 902 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
- run: pnpm install
shell: bash

- name: Build VuePress site
run: pnpm docs:build
- name: Build VitePress site
run: pnpm run docs:build

- uses: actions/upload-pages-artifact@v3
if: github.event_name != 'pull_request'
Expand Down
9 changes: 7 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export default defineConfig({
description: '简单的 Python 异步多后端聊天机器人框架',

lastUpdated: true,
cleanUrls: true,

sitemap: {
hostname: 'https://docs.alicebot.dev',
},

head: [
['link', { rel: 'icon', href: '/logo.png' }],
Expand All @@ -28,8 +33,8 @@ export default defineConfig({
logo: '/logo.png',
nav: [
{ text: '主页', link: '/' },
{ text: '指南', link: '/guide/' },
{ text: 'API', link: '/api/' },
{ text: '指南', link: '/guide/', activeMatch: '/guide/' },
{ text: 'API', link: '/api/', activeMatch: '/api/' },
{ text: '商店', link: '/store/' },
{ text: '更新日志', link: '/changelog' },
],
Expand Down
2 changes: 1 addition & 1 deletion docs/store/components/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ onMounted(async () => {
if (pypiJson.value.info.author?.length)
author.value = pypiJson.value.info.author
else
author.value = pypiJson.value.info.author_email.match(/([^<]*)\s*<.*?>/)?.[1].trim() ?? ''
author.value = pypiJson.value.info.author_email.match(/([^<>]*)<.*?>/)?.[1].trim() ?? ''
homepage.value = pypiJson.value.info.project_urls.Repository ?? pypiJson.value.info.project_urls.Homepage ?? ''
tags.value = pypiJson.value.info.keywords
.split(/[,\s]/)
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@
"dependencies": {
"@iconify-json/mdi": "^1.1.66",
"unocss": "^0.58.9",
"vitepress": "^1.1.3",
"vue": "^3.4.25"
"vitepress": "^1.2.3",
"vue": "^3.4.27"
},
"devDependencies": {
"@antfu/eslint-config": "^2.16.0",
"@types/node": "^20.12.7",
"@antfu/eslint-config": "^2.21.1",
"@types/node": "^20.14.2",
"@unocss/eslint-plugin": "^0.58.9",
"conventional-changelog-cli": "^4.1.0",
"eslint": "^8.57.0",
"markdownlint-cli2": "^0.8.1",
"prettier": "^3.2.5",
"pyright": "^1.1.360",
"prettier": "^3.3.2",
"pyright": "^1.1.367",
"zhlint": "^0.8.1"
},
"pnpm": {
Expand Down
Loading

0 comments on commit 2d5efdf

Please sign in to comment.