create-vuepress-theme-plume 1.0.0-rc.126 → 1.0.0-rc.127
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
|
@@ -105,7 +105,7 @@ async function createPackageJson(mode, pkg, {
|
|
|
105
105
|
let version = await getPackageManagerVersion(packageManager);
|
|
106
106
|
if (version) {
|
|
107
107
|
if (packageManager === "yarn" && version.startsWith("1"))
|
|
108
|
-
version = "4.
|
|
108
|
+
version = "4.6.0";
|
|
109
109
|
pkg.packageManager = `${packageManager}@${version}`;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -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.126");
|
|
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.127",
|
|
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",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"templates"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@clack/prompts": "^0.9.
|
|
30
|
+
"@clack/prompts": "^0.9.1",
|
|
31
31
|
"@pengzhanbo/utils": "^1.2.0",
|
|
32
32
|
"cac": "^6.7.14",
|
|
33
33
|
"execa": "^9.5.2",
|
|
@@ -106,7 +106,6 @@ export default defineUserConfig({
|
|
|
106
106
|
* @see https://theme-plume.vuejs.press/config/plugins/markdown-enhance/
|
|
107
107
|
*/
|
|
108
108
|
// markdownEnhance: {
|
|
109
|
-
// demo: true,
|
|
110
109
|
// chartjs: true,
|
|
111
110
|
// echarts: true,
|
|
112
111
|
// mermaid: true,
|
|
@@ -131,6 +130,7 @@ export default defineUserConfig({
|
|
|
131
130
|
// codeSandbox: true, // 启用嵌入 codeSandbox 语法 @[codeSandbox](id)
|
|
132
131
|
// jsfiddle: true, // 启用嵌入 jsfiddle 语法 @[jsfiddle](user/id)
|
|
133
132
|
// npmTo: true, // 启用 npm-to 容器 ::: npm-to
|
|
133
|
+
// demo: true, // 启用 demo 容器 ::: demo
|
|
134
134
|
// repl: { // 启用 代码演示容器
|
|
135
135
|
// go: true, // ::: go-repl
|
|
136
136
|
// rust: true, // ::: rust-repl
|
|
@@ -254,26 +254,36 @@ const c = a + b
|
|
|
254
254
|
|
|
255
255
|
**code demo:**
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
:::: demo title="Demo" desc="A normal demo"
|
|
258
|
+
|
|
259
|
+
::: code-tabs
|
|
260
|
+
@tab HTML
|
|
258
261
|
|
|
259
262
|
```html
|
|
260
|
-
<
|
|
261
|
-
<
|
|
263
|
+
<div id="app">
|
|
264
|
+
<h3>vuepress-theme-plume</h3>
|
|
265
|
+
</div>
|
|
262
266
|
```
|
|
263
267
|
|
|
268
|
+
@tab Javascript
|
|
269
|
+
|
|
264
270
|
```js
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
271
|
+
const a = 'So Awesome!'
|
|
272
|
+
const app = document.querySelector('#app')
|
|
273
|
+
app.appendChild(window.document.createElement('small')).textContent = a
|
|
268
274
|
```
|
|
269
275
|
|
|
276
|
+
@tab CSS
|
|
277
|
+
|
|
270
278
|
```css
|
|
271
|
-
|
|
272
|
-
|
|
279
|
+
#app {
|
|
280
|
+
font-size: 2em;
|
|
281
|
+
text-align: center;
|
|
273
282
|
}
|
|
274
283
|
```
|
|
275
284
|
|
|
276
285
|
:::
|
|
286
|
+
::::
|
|
277
287
|
|
|
278
288
|
**tab card:**
|
|
279
289
|
|
|
@@ -254,26 +254,36 @@ const c = a + b
|
|
|
254
254
|
|
|
255
255
|
**代码演示:**
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
:::: demo title="常规示例" desc="一个常规示例"
|
|
258
|
+
|
|
259
|
+
::: code-tabs
|
|
260
|
+
@tab HTML
|
|
258
261
|
|
|
259
262
|
```html
|
|
260
|
-
<
|
|
261
|
-
<
|
|
263
|
+
<div id="app">
|
|
264
|
+
<h3>vuepress-theme-plume</h3>
|
|
265
|
+
</div>
|
|
262
266
|
```
|
|
263
267
|
|
|
268
|
+
@tab Javascript
|
|
269
|
+
|
|
264
270
|
```js
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
271
|
+
const a = 'So Awesome!'
|
|
272
|
+
const app = document.querySelector('#app')
|
|
273
|
+
app.appendChild(window.document.createElement('small')).textContent = a
|
|
268
274
|
```
|
|
269
275
|
|
|
276
|
+
@tab CSS
|
|
277
|
+
|
|
270
278
|
```css
|
|
271
|
-
|
|
272
|
-
|
|
279
|
+
#app {
|
|
280
|
+
font-size: 2em;
|
|
281
|
+
text-align: center;
|
|
273
282
|
}
|
|
274
283
|
```
|
|
275
284
|
|
|
276
285
|
:::
|
|
286
|
+
::::
|
|
277
287
|
|
|
278
288
|
**选项卡:**
|
|
279
289
|
|