Skip to content

Commit d470f8d

Browse files
committed
fix reposition vitepress config
1 parent 0d3f136 commit d470f8d

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ index.js.map
1111
index.d.ts
1212
index.cjs
1313
index.js
14-
.vitepress/cache/
15-
.vitepress/dist/
14+
docs/.vitepress/cache/
15+
docs/.vitepress/dist/
1616

1717
# Platform specified files.
1818
.DS_Store

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ yarn.lock
66

77
# Repo config files.
88
.github/
9-
.vitepress/
109
.vscode/
1110
docs/
1211
.gitattributes

.vitepress/config.ts renamed to docs/.vitepress/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {defineConfig} from "vitepress"
2-
import {wordless} from "../index"
2+
import {wordless} from "../../index"
33

44
export default defineConfig({
55
markdown: {
@@ -8,7 +8,7 @@ export default defineConfig({
88
},
99
},
1010
title: "Markdown-it Wordless",
11-
base: "./",
11+
base: "/docs",
1212
themeConfig: {
1313
socialLinks: [
1414
{
@@ -18,11 +18,11 @@ export default defineConfig({
1818
],
1919
},
2020
locales: {
21-
root: {label: "English", lang: "en", link: "/docs"},
21+
root: {label: "English", lang: "en"},
2222
zh: {
2323
label: "简体中文",
2424
lang: "zh",
25-
link: "/docs/zh",
25+
link: "/zh",
2626
themeConfig: {
2727
outline: {label: "目录"},
2828
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
},
3131
"scripts": {
3232
"build": "rollup --config rollup.config.js",
33-
"doc": "vitepress dev",
34-
"doc.build": "npm run build && vitepress build",
33+
"doc": "vitepress dev docs",
34+
"doc.build": "npm run build && vitepress build docs",
3535
"format": "prettier . --write",
3636
"format.check": "prettier . --check",
3737
"prepublishOnly": "npm run review",

0 commit comments

Comments
 (0)