vitepress-theme-element-plus 0.0.1

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.
Files changed (3) hide show
  1. package/README.md +3 -0
  2. package/index.ts +26 -0
  3. package/package.json +72 -0
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # vitepress-theme-element-plus
2
+
3
+ 轻量的 VitePress 文档主题。
package/index.ts ADDED
@@ -0,0 +1,26 @@
1
+ import type { DefaultTheme, Theme } from 'vitepress'
2
+ import VPTheme from 'vitepress/theme'
3
+ import Layout from './client/components/Layout.vue'
4
+ import 'element-plus/theme-chalk/base.css'
5
+ import 'element-plus/theme-chalk/el-tag.css'
6
+ import 'element-plus/theme-chalk/dark/css-vars.css'
7
+ import './styles/index.scss'
8
+ import './styles/base.scss'
9
+ import './styles/code.scss'
10
+ import './styles/doc-content.scss'
11
+ import './styles/tag-content.scss'
12
+
13
+ const EPTheme: Theme = {
14
+ extends: VPTheme,
15
+ Layout,
16
+ }
17
+
18
+ export interface EPThemeConfig extends DefaultTheme.Config {
19
+ /**
20
+ * 文档版本号
21
+ */
22
+ version?: string
23
+ }
24
+
25
+ export { Layout }
26
+ export default EPTheme
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "vitepress-theme-element-plus",
3
+ "type": "module",
4
+ "version": "0.0.1",
5
+ "description": "A VitePress theme for Element Plus",
6
+ "author": "Hezhengxu",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/hezhengxu/vitepress-theme-element-plus"
11
+ },
12
+ "keywords": [
13
+ "vitepress",
14
+ "theme",
15
+ "vue",
16
+ "documentation"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "types": "./types/index.d.ts",
21
+ "default": "./index.ts"
22
+ },
23
+ "./node": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.mjs"
26
+ }
27
+ },
28
+ "module": "./index.ts",
29
+ "types": "./types/index.d.ts",
30
+ "style": "./index.scss",
31
+ "files": [
32
+ "config",
33
+ "index.ts",
34
+ "src",
35
+ "types"
36
+ ],
37
+ "scripts": {
38
+ "clean": "rimraf dist",
39
+ "build": "tsdown",
40
+ "build:watch": "tsdown --watch",
41
+ "lint": "eslint ./ --fix",
42
+ "prepublishOnly": "pnpm run build",
43
+ "release": "release-it"
44
+ },
45
+ "peerDependencies": {
46
+ "vitepress": "2.0.0-alpha.12"
47
+ },
48
+ "devDependencies": {
49
+ "@iconify/vue": "^4.2.1",
50
+ "@release-it/conventional-changelog": "^10",
51
+ "@types/glob": "^9.0.0",
52
+ "@types/markdown-it": "^14.1.0",
53
+ "@types/node": "^22.17.0",
54
+ "@vitejs/plugin-vue": "^5.2.4",
55
+ "@vueuse/core": "^11.3.0",
56
+ "element-plus": "^2.11.7",
57
+ "es-toolkit": "^1.14.0",
58
+ "release-it": "^19",
59
+ "rimraf": "^6.0.1",
60
+ "sass-embedded": "^1.80.3",
61
+ "tsdown": "0.16.0",
62
+ "typescript": "^5.9.2",
63
+ "vite": "^6.3.5",
64
+ "vite-plugin-dts": "^4.5.4",
65
+ "vitepress": "2.0.0-alpha.12",
66
+ "vue": "^3.5.18",
67
+ "vue-tsc": "^3.0.5"
68
+ },
69
+ "publishConfig": {
70
+ "access": "public"
71
+ }
72
+ }