Skip to content

Commit

Permalink
fix reposition vitepress config
Browse files Browse the repository at this point in the history
  • Loading branch information
aprosail committed Jun 23, 2024
1 parent 0d3f136 commit d470f8d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ index.js.map
index.d.ts
index.cjs
index.js
.vitepress/cache/
.vitepress/dist/
docs/.vitepress/cache/
docs/.vitepress/dist/

# Platform specified files.
.DS_Store
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ yarn.lock

# Repo config files.
.github/
.vitepress/
.vscode/
docs/
.gitattributes
Expand Down
8 changes: 4 additions & 4 deletions .vitepress/config.ts → docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {defineConfig} from "vitepress"
import {wordless} from "../index"
import {wordless} from "../../index"

export default defineConfig({
markdown: {
Expand All @@ -8,7 +8,7 @@ export default defineConfig({
},
},
title: "Markdown-it Wordless",
base: "./",
base: "/docs",
themeConfig: {
socialLinks: [
{
Expand All @@ -18,11 +18,11 @@ export default defineConfig({
],
},
locales: {
root: {label: "English", lang: "en", link: "/docs"},
root: {label: "English", lang: "en"},
zh: {
label: "简体中文",
lang: "zh",
link: "/docs/zh",
link: "/zh",
themeConfig: {
outline: {label: "目录"},
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
"scripts": {
"build": "rollup --config rollup.config.js",
"doc": "vitepress dev",
"doc.build": "npm run build && vitepress build",
"doc": "vitepress dev docs",
"doc.build": "npm run build && vitepress build docs",
"format": "prettier . --write",
"format.check": "prettier . --check",
"prepublishOnly": "npm run review",
Expand Down

0 comments on commit d470f8d

Please sign in to comment.