create-vuepress-theme-plume 1.0.0-rc.179 → 1.0.0-rc.180
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 +1 -1
- package/package.json +2 -2
- package/templates/.vuepress/config.ts.handlebars +16 -2
- package/templates/.vuepress/plume.config.ts.handlebars +4 -4
- package/templates/docs/en/README.md.handlebars +1 -0
- package/templates/docs/zh/README.md.handlebars +1 -0
- package/templates/docs/zh/blog/preview/markdown.md +0 -62
- package/templates/git/.gitattributes.handlebars +2 -0
package/lib/index.js
CHANGED
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.180",
|
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"nano-spawn": "^2.0.0",
|
|
35
35
|
"os-locale": "^6.0.2",
|
|
36
36
|
"picocolors": "^1.1.1",
|
|
37
|
-
"sort-package-json": "^3.
|
|
37
|
+
"sort-package-json": "^3.5.0"
|
|
38
38
|
},
|
|
39
39
|
"plume-deps": {
|
|
40
40
|
"vuepress": "2.0.0-rc.26",
|
|
@@ -56,13 +56,13 @@ export default defineUserConfig({
|
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* 编译缓存,加快编译速度
|
|
59
|
-
* @see https://theme-plume.vuejs.press/config/
|
|
59
|
+
* @see https://theme-plume.vuejs.press/config/theme/#cache
|
|
60
60
|
*/
|
|
61
61
|
cache: 'filesystem',
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* 为 markdown 文件自动添加 frontmatter 配置
|
|
65
|
-
* @see https://theme-plume.vuejs.press/config/
|
|
65
|
+
* @see https://theme-plume.vuejs.press/config/theme/#autofrontmatter
|
|
66
66
|
*/
|
|
67
67
|
// autoFrontmatter: {
|
|
68
68
|
// permalink: true, // 是否生成永久链接
|
|
@@ -120,6 +120,7 @@ export default defineUserConfig({
|
|
|
120
120
|
// jsfiddle: true, // 启用嵌入 jsfiddle 语法 @[jsfiddle](user/id)
|
|
121
121
|
// npmTo: true, // 启用 npm-to 容器 ::: npm-to
|
|
122
122
|
// demo: true, // 启用 demo 容器 ::: demo
|
|
123
|
+
// collapse: true, // 启用折叠容器 ::: collapse
|
|
123
124
|
// repl: { // 启用 代码演示容器
|
|
124
125
|
// go: true, // ::: go-repl
|
|
125
126
|
// rust: true, // ::: rust-repl
|
|
@@ -176,5 +177,18 @@ export default defineUserConfig({
|
|
|
176
177
|
* @see https://theme-plume.vuejs.press/guide/features/encryption/
|
|
177
178
|
*/
|
|
178
179
|
// encrypt: {},
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 启用 llmstxt 插件,用于为大语言模型提供更友好的内容
|
|
183
|
+
* @see https://theme-plume.vuejs.press/guide/features/llmstxt/
|
|
184
|
+
*/
|
|
185
|
+
// llmstxt: {
|
|
186
|
+
{{#if multiLanguage}}
|
|
187
|
+
// locale: '/', // 默认仅为主语言生成 llms 友好内容
|
|
188
|
+
// locale: 'all', // 为所有语言生成 llms 友好内容
|
|
189
|
+
{{else}}
|
|
190
|
+
// locale: '/', // 默认仅为主语言生成 llms 友好内容
|
|
191
|
+
{{/if}}
|
|
192
|
+
// }
|
|
179
193
|
}),
|
|
180
194
|
})
|
|
@@ -20,7 +20,7 @@ import collections from './collections'
|
|
|
20
20
|
{{/if}}
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @see https://theme-plume.vuejs.press/config/
|
|
23
|
+
* @see https://theme-plume.vuejs.press/config/theme/
|
|
24
24
|
*/
|
|
25
25
|
export default defineThemeConfig({
|
|
26
26
|
logo: 'https://theme-plume.vuejs.press/plume.png',
|
|
@@ -52,7 +52,7 @@ export default defineThemeConfig({
|
|
|
52
52
|
|
|
53
53
|
{{#unless multiLanguage}}
|
|
54
54
|
/**
|
|
55
|
-
* @see https://theme-plume.vuejs.press/config/
|
|
55
|
+
* @see https://theme-plume.vuejs.press/config/theme/#profile
|
|
56
56
|
*/
|
|
57
57
|
profile: {
|
|
58
58
|
avatar: 'https://theme-plume.vuejs.press/plume.png',
|
|
@@ -78,7 +78,7 @@ export default defineThemeConfig({
|
|
|
78
78
|
// },
|
|
79
79
|
|
|
80
80
|
{{/unless}}
|
|
81
|
-
/* 过渡动画 @see https://theme-plume.vuejs.press/config/
|
|
81
|
+
/* 过渡动画 @see https://theme-plume.vuejs.press/config/theme/#transition */
|
|
82
82
|
// transition: {
|
|
83
83
|
// page: true, // 启用 页面间跳转过渡动画
|
|
84
84
|
// postList: true, // 启用 博客文章列表过渡动画
|
|
@@ -90,7 +90,7 @@ export default defineThemeConfig({
|
|
|
90
90
|
{{#each locales}}
|
|
91
91
|
'{{ path }}': {
|
|
92
92
|
/**
|
|
93
|
-
* @see https://theme-plume.vuejs.press/config/
|
|
93
|
+
* @see https://theme-plume.vuejs.press/config/theme/#profile
|
|
94
94
|
*/
|
|
95
95
|
profile: {
|
|
96
96
|
avatar: 'https://theme-plume.vuejs.press/plume.png',
|
|
@@ -137,68 +137,6 @@ const obj = {
|
|
|
137
137
|
}
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
**Code Blocks TwoSlash:**
|
|
141
|
-
|
|
142
|
-
```ts twoslash
|
|
143
|
-
// @errors: 2339
|
|
144
|
-
const welcome = 'Tudo bem gente?'
|
|
145
|
-
const words = welcome.contains(' ')
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
```ts twoslash
|
|
149
|
-
import express from 'express'
|
|
150
|
-
const app = express()
|
|
151
|
-
app.get('/', (req, res) => {
|
|
152
|
-
res.send
|
|
153
|
-
})
|
|
154
|
-
app.listen(3000)
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
```ts twoslash
|
|
158
|
-
import { createHighlighter } from 'shiki'
|
|
159
|
-
|
|
160
|
-
const highlighter = await createHighlighter({ themes: ['nord'], langs: ['javascript'] })
|
|
161
|
-
// @log: Custom log message
|
|
162
|
-
const a = 1
|
|
163
|
-
// @error: Custom error message
|
|
164
|
-
const b = 1
|
|
165
|
-
// @warn: Custom warning message
|
|
166
|
-
const c = 1
|
|
167
|
-
// @annotate: Custom annotation message
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
```ts twoslash
|
|
171
|
-
// @errors: 2540
|
|
172
|
-
interface Todo {
|
|
173
|
-
title: string
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
const todo: Readonly<Todo> = {
|
|
177
|
-
title: 'Delete inactive users'.toUpperCase(),
|
|
178
|
-
// ^?
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
todo.title = 'Hello'
|
|
182
|
-
|
|
183
|
-
Number.parseInt('123', 10)
|
|
184
|
-
// ^|
|
|
185
|
-
|
|
186
|
-
//
|
|
187
|
-
//
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
```vue twoslash
|
|
191
|
-
<script setup lang="ts">
|
|
192
|
-
import { ref } from 'vue'
|
|
193
|
-
|
|
194
|
-
const count = ref(0)
|
|
195
|
-
</script>
|
|
196
|
-
|
|
197
|
-
<template>
|
|
198
|
-
<p>{{ count }}</p>
|
|
199
|
-
</template>
|
|
200
|
-
```
|
|
201
|
-
|
|
202
140
|
**代码分组:**
|
|
203
141
|
|
|
204
142
|
::: code-tabs
|