File tree 6 files changed +829
-4
lines changed
6 files changed +829
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ./node_modules/@lunariajs/core/config.schema.json" ,
3
+ "repository" : {
4
+ "name" : " vuejs/vitepress" ,
5
+ "rootDir" : " docs"
6
+ },
7
+ "files" : [
8
+ {
9
+ "location" : " **/*.md" ,
10
+ "pattern" : " @lang/@path" ,
11
+ "type" : " universal"
12
+ }
13
+ ],
14
+ "defaultLocale" : {
15
+ "label" : " English" ,
16
+ "lang" : " en"
17
+ },
18
+ "locales" : [
19
+ {
20
+ "label" : " 简体中文" ,
21
+ "lang" : " zh"
22
+ }
23
+ ],
24
+ "outDir" : " .vitepress/dist/_translations"
25
+ }
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"dev" : " vitepress dev" ,
7
7
"build" : " vitepress build" ,
8
- "preview" : " vitepress preview"
8
+ "preview" : " vitepress preview" ,
9
+ "lunaria:build" : " lunaria build" ,
10
+ "lunaria:open" : " open-cli .vitepress/dist/_translations/index.html"
9
11
},
10
12
"devDependencies" : {
13
+ "@lunariajs/core" : " ^0.0.25" ,
11
14
"markdown-it-mathjax3" : " ^4.3.2" ,
15
+ "open-cli" : " ^8.0.0" ,
12
16
"vitepress" : " workspace:*"
13
17
}
14
18
}
Original file line number Diff line number Diff line change 1
1
/assets/*
2
2
cache-control: max-age=31536000
3
- cache-control: immutable
3
+ cache-control: immutable
4
+
5
+ /_translations/*
6
+ x-robots-tag: noindex
Original file line number Diff line number Diff line change 1
1
[build .environment ]
2
- NODE_VERSION = " 18 "
2
+ NODE_VERSION = " 20 "
3
3
4
4
[build ]
5
5
publish = " docs/.vitepress/dist"
6
- command = " pnpm docs:build"
6
+ command = " pnpm docs:build && pnpm docs:lunaria:build "
Original file line number Diff line number Diff line change 83
83
"docs:build" : " run-s build docs:build:only" ,
84
84
"docs:build:only" : " pnpm -F=docs build" ,
85
85
"docs:preview" : " pnpm -F=docs preview" ,
86
+ "docs:lunaria:build" : " pnpm -F=docs lunaria:build" ,
87
+ "docs:lunaria:open" : " pnpm -F=docs lunaria:open" ,
86
88
"format" : " prettier --check --write ." ,
87
89
"format:fail" : " prettier --check ." ,
88
90
"check" : " run-s format:fail build test" ,
You can’t perform that action at this time.
0 commit comments