mirror of https://github.com/Dreamacro/clash.git
Fix: docs build path
This commit is contained in:
parent
7d9723662c
commit
fdb1456c69
|
@ -10,7 +10,7 @@ function getMetadataFromDoc(path: string): { sidebarTitle?: string, sidebarOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateSidebarChapter(chapterDirName: string): any {
|
function generateSidebarChapter(chapterDirName: string): any {
|
||||||
const chapterPath = `./docs/${chapterDirName}`
|
const chapterPath = `./${chapterDirName}`
|
||||||
const tree = directoryTree(chapterPath)
|
const tree = directoryTree(chapterPath)
|
||||||
|
|
||||||
if (!tree || !tree.children) {
|
if (!tree || !tree.children) {
|
||||||
|
@ -65,8 +65,10 @@ chapters[0]['items'][0]['link'] = '/'
|
||||||
|
|
||||||
// https://vitepress.dev/reference/site-config
|
// https://vitepress.dev/reference/site-config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
title: "Clash",
|
title: 'Clash',
|
||||||
description: "Rule-based Tunnel",
|
description: 'Rule-based Tunnel',
|
||||||
|
|
||||||
|
base: '/clash/',
|
||||||
|
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
outline: 'deep',
|
outline: 'deep',
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"docs:dev": "vitepress dev docs",
|
"docs:dev": "vitepress dev",
|
||||||
"docs:build": "vitepress build docs",
|
"docs:build": "vitepress build",
|
||||||
"docs:preview": "vitepress preview docs"
|
"docs:preview": "vitepress preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.1.4",
|
"@types/node": "^20.1.4",
|
||||||
|
|
Loading…
Reference in New Issue