create-vuepress-theme-plume 1.0.0-rc.124 → 1.0.0-rc.125
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/lib/index.js
CHANGED
|
@@ -547,5 +547,5 @@ var cli = cac("create-vuepress-theme-plume");
|
|
|
547
547
|
cli.command("[root]", "create a new vuepress-theme-plume project / \u521B\u5EFA\u65B0\u7684 vuepress-theme-plume \u9879\u76EE").action((root) => run(1 /* create */, root));
|
|
548
548
|
cli.command("init [root]", "Initial vuepress-theme-plume in the existing project / \u5728\u73B0\u6709\u9879\u76EE\u4E2D\u521D\u59CB\u5316 vuepress-theme-plume").action((root) => run(0 /* init */, root));
|
|
549
549
|
cli.help();
|
|
550
|
-
cli.version("1.0.0-rc.
|
|
550
|
+
cli.version("1.0.0-rc.124");
|
|
551
551
|
cli.parse();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuepress-theme-plume",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.125",
|
|
5
5
|
"description": "The cli for create vuepress-theme-plume's project",
|
|
6
6
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { defineClientConfig } from 'vuepress/client'
|
|
2
2
|
// import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
|
|
3
|
+
// import NpmBadge from 'vuepress-theme-plume/features/NpmBadge.vue'
|
|
4
|
+
// import NpmBadgeGroup from 'vuepress-theme-plume/features/NpmBadgeGroup.vue'
|
|
5
|
+
// import Swiper from 'vuepress-theme-plume/features/Swiper.vue'
|
|
6
|
+
|
|
3
7
|
// import CustomComponent from './theme/components/Custom.vue'
|
|
4
8
|
|
|
5
9
|
// import './theme/styles/custom.css'
|
|
6
10
|
|
|
7
11
|
export default defineClientConfig({
|
|
8
12
|
enhance({ app }) {
|
|
13
|
+
// built-in components
|
|
9
14
|
// app.component('RepoCard', RepoCard)
|
|
15
|
+
// app.component('NpmBadge', NpmBadge)
|
|
16
|
+
// app.component('NpmBadgeGroup', NpmBadgeGroup)
|
|
17
|
+
// app.component('Swiper', Swiper) // you should install `swiper`
|
|
18
|
+
|
|
19
|
+
// your custom components
|
|
10
20
|
// app.component('CustomComponent', CustomComponent)
|
|
11
21
|
},
|
|
12
22
|
})
|
|
@@ -21,13 +21,55 @@ export default defineUserConfig({
|
|
|
21
21
|
{{/if}}
|
|
22
22
|
|
|
23
23
|
bundler: {{ bundler }}Bundler(),
|
|
24
|
+
shouldPrefetch: false, // 站点较大,页面数量较多时,不建议启用
|
|
24
25
|
|
|
25
26
|
theme: plumeTheme({
|
|
26
|
-
|
|
27
|
+
/* 添加您的部署域名, 有助于 SEO, 生成 sitemap */
|
|
27
28
|
// hostname: 'https://your_site_url',
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
|
|
30
|
+
/* 文档仓库配置,用于 editLink */
|
|
31
|
+
// docsRepo: '',
|
|
32
|
+
// docsDir: '{{ docsDir }}',
|
|
33
|
+
// docsBranch: '',
|
|
34
|
+
|
|
35
|
+
/* 页内信息 */
|
|
36
|
+
// editLink: true,
|
|
37
|
+
// lastUpdated: true,
|
|
38
|
+
// contributors: true,
|
|
39
|
+
// changelog: false,
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 博客
|
|
43
|
+
* @see https://theme-plume.vuejs.press/config/basic/#blog
|
|
44
|
+
*/
|
|
45
|
+
// blog: false, // 禁用博客
|
|
46
|
+
// blog: {
|
|
47
|
+
// postList: true, // 是否启用文章列表页
|
|
48
|
+
// tags: true, // 是否启用标签页
|
|
49
|
+
// archives: true, // 是否启用归档页
|
|
50
|
+
// categories: true, // 是否启用分类页
|
|
51
|
+
// postCover: 'right', // 文章封面位置
|
|
52
|
+
// pagination: 15, // 每页显示文章数量
|
|
53
|
+
// },
|
|
54
|
+
|
|
55
|
+
/* 博客文章页面链接前缀 */
|
|
56
|
+
article: '/article/',
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 编译缓存,加快编译速度
|
|
60
|
+
* @see https://theme-plume.vuejs.press/config/basic/#cache
|
|
61
|
+
*/
|
|
62
|
+
cache: 'filesystem',
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* 为 markdown 文件自动添加 frontmatter 配置
|
|
66
|
+
* @see https://theme-plume.vuejs.press/config/basic/#autofrontmatter
|
|
67
|
+
*/
|
|
68
|
+
// autoFrontmatter: {
|
|
69
|
+
// permalink: true, // 是否生成永久链接
|
|
70
|
+
// createTime: true, // 是否生成创建时间
|
|
71
|
+
// title: true, // 是否生成标题
|
|
72
|
+
// },
|
|
31
73
|
|
|
32
74
|
plugins: {
|
|
33
75
|
/**
|
|
@@ -35,45 +77,88 @@ export default defineUserConfig({
|
|
|
35
77
|
* @see https://theme-plume.vuejs.press/config/plugins/code-highlight/
|
|
36
78
|
*/
|
|
37
79
|
// shiki: {
|
|
38
|
-
|
|
80
|
+
// // 强烈建议预设代码块高亮语言,插件默认加载所有语言会产生不必要的时间开销
|
|
39
81
|
// languages: ['shell', 'bash', 'typescript', 'javascript'],
|
|
82
|
+
// twoslash: true, // 启用 twoslash
|
|
83
|
+
// whitespace: true, // 启用 空格/Tab 高亮
|
|
84
|
+
// lineNumbers: true, // 启用行号
|
|
40
85
|
// },
|
|
41
86
|
|
|
87
|
+
/* 本地搜索, 默认启用 */
|
|
88
|
+
// search: true,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Algolia DocSearch
|
|
92
|
+
* 启用此搜索需要将 本地搜索 search 设置为 false
|
|
93
|
+
* @see https://theme-plume.vuejs.press/config/plugins/search/#algolia-docsearch
|
|
94
|
+
*/
|
|
95
|
+
// docsearch: {
|
|
96
|
+
// appId: '',
|
|
97
|
+
// apiKey: '',
|
|
98
|
+
// indexName: '',
|
|
99
|
+
// },
|
|
100
|
+
|
|
101
|
+
/* 文章字数统计、阅读时间,设置为 false 则禁用 */
|
|
102
|
+
// readingTime: true,
|
|
103
|
+
|
|
42
104
|
/**
|
|
43
105
|
* markdown enhance
|
|
44
106
|
* @see https://theme-plume.vuejs.press/config/plugins/markdown-enhance/
|
|
45
107
|
*/
|
|
46
|
-
markdownEnhance: {
|
|
47
|
-
|
|
48
|
-
//
|
|
49
|
-
// chart: true,
|
|
108
|
+
// markdownEnhance: {
|
|
109
|
+
// demo: true,
|
|
110
|
+
// chartjs: true,
|
|
50
111
|
// echarts: true,
|
|
51
112
|
// mermaid: true,
|
|
52
113
|
// flowchart: true,
|
|
53
|
-
},
|
|
114
|
+
// },
|
|
54
115
|
|
|
55
116
|
/**
|
|
56
117
|
* markdown power
|
|
57
118
|
* @see https://theme-plume.vuejs.press/config/plugin/markdown-power/
|
|
58
119
|
*/
|
|
59
120
|
// markdownPower: {
|
|
60
|
-
// pdf: true,
|
|
61
|
-
// caniuse: true,
|
|
62
|
-
// plot: true,
|
|
63
|
-
// bilibili: true,
|
|
64
|
-
// youtube: true,
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
//
|
|
73
|
-
//
|
|
121
|
+
// pdf: true, // 启用 PDF 嵌入 @[pdf](/xxx.pdf)
|
|
122
|
+
// caniuse: true, // 启用 caniuse 语法 @[caniuse](feature_name)
|
|
123
|
+
// plot: true, // 启用隐秘文本语法 !!xxxx!!
|
|
124
|
+
// bilibili: true, // 启用嵌入 bilibili视频 语法 @[bilibili](bid)
|
|
125
|
+
// youtube: true, // 启用嵌入 youtube视频 语法 @[youtube](video_id)
|
|
126
|
+
// artPlayer: true, // 启用嵌入 artPlayer 本地视频 语法 @[artPlayer](url)
|
|
127
|
+
// audioReader: true, // 启用嵌入音频朗读功能 语法 @[audioReader](url)
|
|
128
|
+
// icons: true, // 启用内置图标语法 :[icon-name]:
|
|
129
|
+
// codepen: true, // 启用嵌入 codepen 语法 @[codepen](user/slash)
|
|
130
|
+
// replit: true, // 启用嵌入 replit 语法 @[replit](user/repl-name)
|
|
131
|
+
// codeSandbox: true, // 启用嵌入 codeSandbox 语法 @[codeSandbox](id)
|
|
132
|
+
// jsfiddle: true, // 启用嵌入 jsfiddle 语法 @[jsfiddle](user/id)
|
|
133
|
+
// npmTo: true, // 启用 npm-to 容器 ::: npm-to
|
|
134
|
+
// repl: { // 启用 代码演示容器
|
|
135
|
+
// go: true, // ::: go-repl
|
|
136
|
+
// rust: true, // ::: rust-repl
|
|
137
|
+
// kotlin: true, // ::: kotlin-repl
|
|
74
138
|
// },
|
|
139
|
+
// imageSize: 'local', // 启用 自动填充 图片宽高属性,避免页面抖动
|
|
140
|
+
// },
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* 在 Markdown 文件中导入其他 markdown 文件内容。
|
|
144
|
+
* @see https://theme-plume.vuejs.press/guide/markdown/include/
|
|
145
|
+
*/
|
|
146
|
+
// markdownInclude: true,
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Markdown 数学公式
|
|
150
|
+
* @see https://theme-plume.vuejs.press/config/plugins/markdown-math/
|
|
151
|
+
*/
|
|
152
|
+
// markdownMath: {
|
|
153
|
+
// type: 'katex',
|
|
75
154
|
// },
|
|
76
155
|
|
|
156
|
+
/**
|
|
157
|
+
* 水印
|
|
158
|
+
* @see https://theme-plume.vuejs.press/guide/features/watermark/
|
|
159
|
+
*/
|
|
160
|
+
// watermark: true,
|
|
161
|
+
|
|
77
162
|
/**
|
|
78
163
|
* 评论 comments
|
|
79
164
|
* @see https://theme-plume.vuejs.press/guide/features/comments/
|
|
@@ -90,5 +175,11 @@ export default defineUserConfig({
|
|
|
90
175
|
// inputPosition: 'top',
|
|
91
176
|
// },
|
|
92
177
|
},
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* 加密功能
|
|
181
|
+
* @see https://theme-plume.vuejs.press/guide/features/encryption/
|
|
182
|
+
*/
|
|
183
|
+
encrypt: {},
|
|
93
184
|
}),
|
|
94
185
|
})
|
|
@@ -13,9 +13,35 @@ import { notes } from './notes'
|
|
|
13
13
|
export default defineThemeConfig({
|
|
14
14
|
logo: 'https://theme-plume.vuejs.press/plume.png',
|
|
15
15
|
|
|
16
|
-
appearance: true,
|
|
16
|
+
appearance: true, // 配置 深色模式
|
|
17
|
+
|
|
18
|
+
social: [
|
|
19
|
+
{ icon: 'github', link: '/' },
|
|
20
|
+
],
|
|
21
|
+
// navbarSocialInclude: ['github'], // 允许显示在导航栏的 social 社交链接
|
|
22
|
+
// aside: true, // 页内侧边栏, 默认显示在右侧
|
|
23
|
+
// outline: [2, 3], // 页内大纲, 默认显示 h2, h3
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 文章版权信息
|
|
27
|
+
* @see https://theme-plume.vuejs.press/guide/features/copyright/
|
|
28
|
+
*/
|
|
29
|
+
// copyright: true,
|
|
30
|
+
|
|
31
|
+
// prevPage: true, // 是否启用上一页链接
|
|
32
|
+
// nextPage: true, // 是否启用下一页链接
|
|
33
|
+
// createTime: true, // 是否显示文章创建时间
|
|
34
|
+
|
|
35
|
+
/* 站点页脚 */
|
|
36
|
+
// footer: {
|
|
37
|
+
// message: 'Power by <a target="_blank" href="https://v2.vuepress.vuejs.org/">VuePress</a> & <a target="_blank" href="https://theme-plume.vuejs.press">vuepress-theme-plume</a>',
|
|
38
|
+
// copyright: '',
|
|
39
|
+
// },
|
|
17
40
|
|
|
18
41
|
{{#unless multiLanguage}}
|
|
42
|
+
/**
|
|
43
|
+
* @see https://theme-plume.vuejs.press/config/basic/#profile
|
|
44
|
+
*/
|
|
19
45
|
profile: {
|
|
20
46
|
avatar: 'https://theme-plume.vuejs.press/plume.png',
|
|
21
47
|
name: '{{ siteName }}',
|
|
@@ -27,15 +53,33 @@ export default defineThemeConfig({
|
|
|
27
53
|
|
|
28
54
|
navbar,
|
|
29
55
|
notes,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 公告板
|
|
59
|
+
* @see https://theme-plume.vuejs.press/guide/features/bulletin/
|
|
60
|
+
*/
|
|
61
|
+
// bulletin: {
|
|
62
|
+
// layout: 'top-right',
|
|
63
|
+
// contentType: 'markdown',
|
|
64
|
+
// title: '公告板标题',
|
|
65
|
+
// content: '公告板内容',
|
|
66
|
+
// },
|
|
67
|
+
|
|
30
68
|
{{/unless}}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
69
|
+
/* 过渡动画 @see https://theme-plume.vuejs.press/config/basic/#transition */
|
|
70
|
+
// transition: {
|
|
71
|
+
// page: true, // 启用 页面间跳转过渡动画
|
|
72
|
+
// postList: true, // 启用 博客文章列表过渡动画
|
|
73
|
+
// appearance: 'fade', // 启用 深色模式切换过渡动画, 或配置过渡动画类型
|
|
74
|
+
// },
|
|
34
75
|
|
|
35
76
|
{{#if multiLanguage}}
|
|
36
77
|
locales: {
|
|
37
78
|
{{#each locales}}
|
|
38
79
|
'{{ path }}': {
|
|
80
|
+
/**
|
|
81
|
+
* @see https://theme-plume.vuejs.press/config/basic/#profile
|
|
82
|
+
*/
|
|
39
83
|
profile: {
|
|
40
84
|
avatar: 'https://theme-plume.vuejs.press/plume.png',
|
|
41
85
|
name: '{{ ../siteName }}',
|
|
@@ -47,6 +91,17 @@ export default defineThemeConfig({
|
|
|
47
91
|
|
|
48
92
|
navbar: {{ prefix }}Navbar,
|
|
49
93
|
notes: {{ prefix }}Notes,
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 公告板
|
|
97
|
+
* @see https://theme-plume.vuejs.press/guide/features/bulletin/
|
|
98
|
+
*/
|
|
99
|
+
// bulletin: {
|
|
100
|
+
// layout: 'top-right',
|
|
101
|
+
// contentType: 'markdown',
|
|
102
|
+
// title: '',
|
|
103
|
+
// content: '',
|
|
104
|
+
// },
|
|
50
105
|
},
|
|
51
106
|
{{/each}}
|
|
52
107
|
},
|