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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "themekit-js",
3
- "version": "1.1.2",
4
- "description": "基于VitePress二次开发的Markdown静态网站工具",
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<