Skip to content

Commit

Permalink
Fix: docs build path
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed May 15, 2023
1 parent 7d97236 commit fdb1456
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function getMetadataFromDoc(path: string): { sidebarTitle?: string, sidebarOrder
}

function generateSidebarChapter(chapterDirName: string): any {
const chapterPath = `./docs/${chapterDirName}`
const chapterPath = `./${chapterDirName}`
const tree = directoryTree(chapterPath)

if (!tree || !tree.children) {
Expand Down Expand Up @@ -65,8 +65,10 @@ chapters[0]['items'][0]['link'] = '/'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Clash",
description: "Rule-based Tunnel",
title: 'Clash',
description: 'Rule-based Tunnel',

base: '/clash/',

themeConfig: {
outline: 'deep',
Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"scripts": {
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
"docs:dev": "vitepress dev",
"docs:build": "vitepress build",
"docs:preview": "vitepress preview"
},
"devDependencies": {
"@types/node": "^20.1.4",
Expand Down

0 comments on commit fdb1456

Please sign in to comment.