themekit-js 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/app/data.js +3 -0
- package/dist/client/app/index.js +23 -1
- package/dist/client/app/router.js +8 -4
- package/dist/client/app/utils.js +6 -5
- package/dist/client/index.d.ts +4 -0
- package/dist/client/shared.js +2 -1
- package/dist/client/theme-default/components/VPContent.vue +3 -0
- package/dist/client/theme-default/components/VPHero.vue +1 -1
- package/dist/client/theme-default/components/VPHomeHero.vue +1 -1
- package/dist/client/theme-default/components/VPMenuLink.vue +1 -0
- package/dist/client/theme-default/components/VPNavBarTranslations.vue +48 -7
- package/dist/node/cli.js +1 -1
- package/dist/node/index.d.ts +3 -1
- package/dist/node/index.js +4 -4
- package/dist/node/{serve-C7_9EEpC.js → serve-kCMItmVT.js} +11106 -11034
- package/package.json +6 -3
- package/template/.themekit/config.js +3 -1
- package/types/shared.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "themekit-js",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "基于VitePress
|
|
3
|
+
"version": "1.1.4",
|
|
4
|
+
"description": "基于VitePress开发的Markdown静态网站生成器",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@8.15.6",
|
|
7
7
|
"main": "dist/node/index.js",
|
|
@@ -95,6 +95,8 @@
|
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@docsearch/css": "^3.6.0",
|
|
97
97
|
"@docsearch/js": "^3.6.0",
|
|
98
|
+
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
99
|
+
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
98
100
|
"@shikijs/core": "^1.2.4",
|
|
99
101
|
"@shikijs/transformers": "^1.2.4",
|
|
100
102
|
"@types/markdown-it": "^13.0.7",
|
|
@@ -103,6 +105,7 @@
|
|
|
103
105
|
"@vueuse/core": "^10.9.0",
|
|
104
106
|
"@vueuse/integrations": "^10.9.0",
|
|
105
107
|
"focus-trap": "^7.5.4",
|
|
108
|
+
"github-markdown-css": "^5.5.1",
|
|
106
109
|
"mark.js": "8.11.1",
|
|
107
110
|
"minisearch": "^6.3.0",
|
|
108
111
|
"shiki": "^1.2.4",
|
|
@@ -220,4 +223,4 @@
|
|
|
220
223
|
]
|
|
221
224
|
}
|
|
222
225
|
}
|
|
223
|
-
}
|
|
226
|
+
}
|
|
@@ -2,8 +2,10 @@ import { defineConfig } from 'themekit-js'
|
|
|
2
2
|
|
|
3
3
|
// https://vitepress.dev/reference/site-config
|
|
4
4
|
export default defineConfig({
|
|
5
|
-
title: <%= title %>,
|
|
5
|
+
title: <%= title %>,
|
|
6
|
+
themeName: <%= themeName %>,
|
|
6
7
|
description: <%= description %><% if (defaultTheme) { %>,
|
|
8
|
+
|
|
7
9
|
themeConfig: {
|
|
8
10
|
// https://vitepress.dev/reference/default-theme-config
|
|
9
11
|
nav: [
|
package/types/shared.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export interface SiteData<ThemeConfig = any> {
|
|
|
118
118
|
| 'force-dark'
|
|
119
119
|
| (Omit<UseDarkOptions, 'initialValue'> & { initialValue?: 'dark' })
|
|
120
120
|
themeConfig: ThemeConfig
|
|
121
|
+
themeName:string
|
|
121
122
|
scrollOffset:
|
|
122
123
|
| number
|
|
123
124
|
| string
|
|
@@ -152,6 +153,7 @@ export interface LocaleSpecificConfig<ThemeConfig = any> {
|
|
|
152
153
|
description?: string
|
|
153
154
|
head?: HeadConfig[]
|
|
154
155
|
themeConfig?: ThemeConfig
|
|
156
|
+
themeName?:string
|
|
155
157
|
}
|
|
156
158
|
|
|
157
159
|
export type LocaleConfig<ThemeConfig = any> = Record<
|