create-vuepress-theme-hope 1.21.0 → 1.28.0

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,13 +1,13 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "1.21.0",
3
+ "version": "1.28.0",
4
4
  "description": "Theme create shortcut for yarn",
5
5
  "keywords": [
6
6
  "create",
7
7
  "vuepress",
8
8
  "vuepress-theme-hope"
9
9
  ],
10
- "homepage": "https://github.com/vuepress-theme-hope/vuepress-theme-hope/tree/v1/packages/create#readme",
10
+ "homepage": "https://vuepress-theme-hope.github.io/v1/",
11
11
  "bugs": {
12
12
  "url": "https://github.com/vuepress-theme-hope/vuepress-theme-hope/issues"
13
13
  },
@@ -30,11 +30,11 @@
30
30
  "clean": "rimraf lib *.tsbuildinfo"
31
31
  },
32
32
  "dependencies": {
33
- "@mr-hope/vuepress-shared": "1.21.0",
34
- "@types/inquirer": "^8.1.3",
33
+ "@mr-hope/vuepress-shared": "1.24.0",
34
+ "@types/inquirer": "^8.2.0",
35
35
  "cac": "^6.7.12",
36
36
  "execa": "^5.1.1",
37
37
  "inquirer": "^8.2.0"
38
38
  },
39
- "gitHead": "f67eff4870c5b352177bf65b8361e8d2514d9619"
39
+ "gitHead": "6fef38b817c5e70b52c896df3131302c4235b9f7"
40
40
  }
@@ -1,29 +1,11 @@
1
- const { config } = require("vuepress-theme-hope");
1
+ import hope from "vuepress-theme-hope";
2
2
 
3
- module.exports = config({
3
+ export default hope.config({
4
4
  title: "Theme Demo",
5
5
  description: "A demo for vuepress-theme-hope",
6
6
 
7
7
  dest: "./dist",
8
8
 
9
- head: [
10
- [
11
- "script",
12
- { src: "https://cdn.jsdelivr.net/npm/react/umd/react.production.min.js" },
13
- ],
14
- [
15
- "script",
16
- {
17
- src: "https://cdn.jsdelivr.net/npm/react-dom/umd/react-dom.production.min.js",
18
- },
19
- ],
20
- ["script", { src: "https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js" }],
21
- [
22
- "script",
23
- { src: "https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js" },
24
- ],
25
- ],
26
-
27
9
  locales: {
28
10
  "/": {
29
11
  lang: "en-US",
@@ -51,7 +33,7 @@ module.exports = config({
51
33
  },
52
34
  {
53
35
  text: "Docs",
54
- link: "https://vuepress-theme-hope.github.io/",
36
+ link: "https://vuepress-theme-hope.github.io/v1/",
55
37
  icon: "note",
56
38
  },
57
39
  ],
@@ -84,7 +66,7 @@ module.exports = config({
84
66
  {
85
67
  text: "主题文档",
86
68
  icon: "note",
87
- link: "https://vuepress-theme-hope.github.io/zh/",
69
+ link: "https://vuepress-theme-hope.github.io/v1/zh/",
88
70
  },
89
71
  ],
90
72
  sidebar: {
@@ -128,6 +110,8 @@ module.exports = config({
128
110
  status: "global",
129
111
  },
130
112
 
113
+ cleanUrl: false,
114
+
131
115
  git: {
132
116
  timezone: "Asia/Shanghai",
133
117
  },
@@ -1,2 +1,2 @@
1
1
  // import icon
2
- @import '//at.alicdn.com/t/font_2410206_kxwb6og9m5.css'
2
+ @import '//at.alicdn.com/t/font_2410206_mfj6e1vbwo.css';
@@ -6,13 +6,13 @@ tag:
6
6
  - markdown
7
7
  ---
8
8
 
9
- `vuepress-theme-hope` enables more syntax in Markdown via the built-in [md-enhance](https://vuepress-theme-hope.github.io/md-enhance) plugin.
9
+ `vuepress-theme-hope` enables more syntax in Markdown via the built-in [md-enhance](https://vuepress-theme-hope.github.io/v1/md-enhance/) plugin.
10
10
 
11
11
  <!-- more -->
12
12
 
13
13
  ## Enable all
14
14
 
15
- You can set `themeconfig.mdEnhance.enableAll` to enable all features of the [md-enhance](https://vuepress-theme-hope.github.io/md-enhance) plugin.
15
+ You can set `themeconfig.mdEnhance.enableAll` to enable all features of the [md-enhance](https://vuepress-theme-hope.github.io/v1/md-enhance/) plugin.
16
16
 
17
17
  ```js {3-5}
18
18
  module.exports = {
@@ -38,7 +38,7 @@ module.exports = {
38
38
 
39
39
  :::
40
40
 
41
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/sup-sub/)
41
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/sup-sub.html)
42
42
 
43
43
  ### Align
44
44
 
@@ -72,7 +72,7 @@ I am right align
72
72
 
73
73
  ::::
74
74
 
75
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/align/)
75
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/align.html)
76
76
 
77
77
  ### Footnote
78
78
 
@@ -90,7 +90,7 @@ This text has footnote[^first].
90
90
 
91
91
  :::
92
92
 
93
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/footnote/)
93
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/footnote.html)
94
94
 
95
95
  ### Mark
96
96
 
@@ -104,7 +104,7 @@ You can mark ==important words== .
104
104
 
105
105
  :::
106
106
 
107
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/mark/)
107
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/mark.html)
108
108
 
109
109
  ### Tasklist
110
110
 
@@ -120,7 +120,7 @@ You can mark ==important words== .
120
120
 
121
121
  :::
122
122
 
123
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/tasklist/)
123
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/tasklist.html)
124
124
 
125
125
  ### Flowchart
126
126
 
@@ -148,7 +148,7 @@ cond(no)->e
148
148
 
149
149
  :::
150
150
 
151
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/flowchart/)
151
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/flowchart.html)
152
152
 
153
153
  ## Mermaid
154
154
 
@@ -174,7 +174,7 @@ graph TD;
174
174
 
175
175
  :::
176
176
 
177
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/mermaid/)
177
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/mermaid.html)
178
178
 
179
179
  ### Tex
180
180
 
@@ -194,7 +194,7 @@ $$
194
194
 
195
195
  :::
196
196
 
197
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/tex/)
197
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/tex.html)
198
198
 
199
199
  ### Demo
200
200
 
@@ -412,7 +412,7 @@ h1 {
412
412
 
413
413
  ::::
414
414
 
415
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/demo/)
415
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/demo/)
416
416
 
417
417
  ### Presentation
418
418
 
@@ -484,7 +484,7 @@ $$
484
484
 
485
485
  :::
486
486
 
487
- - [View Detail](https://vuepress-theme-hope.github.io/guide/markdown/presentation/)
487
+ - [View Detail](https://vuepress-theme-hope.github.io/v1/guide/markdown/presentation/)
488
488
 
489
489
  ## Other Syntax
490
490
 
package/template/home.md CHANGED
@@ -16,55 +16,55 @@ action:
16
16
  features:
17
17
  - title: Markdown Enhance 🧰
18
18
  details: Add align, sup/sub script, footnote, tasklist, tex, flowchart, diagram, mark and presentation support in Markdown
19
- link: https://vuepress-theme-hope.github.io/guide/markdown/
19
+ link: https://vuepress-theme-hope.github.io/v1/guide/markdown/
20
20
 
21
21
  - title: Pageviews and comments 💬
22
22
  details: Start pageview statistics and comment support with Valine and Vssue
23
- link: https://vuepress-theme-hope.github.io/guide/feature/comment/
23
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/comment.html
24
24
 
25
25
  - title: Article information display ℹ
26
26
  details: Add author, writing date, reading time, word count and other information to your article
27
- link: https://vuepress-theme-hope.github.io/guide/feature/page-info/
27
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/page-info.html
28
28
 
29
29
  - title: Blog support 📝
30
30
  details: Add date, tags and category to your articles, then article, tag, category and timeline list will be auto generated
31
- link: https://vuepress-theme-hope.github.io/guide/blog/intro/
31
+ link: https://vuepress-theme-hope.github.io/v1/guide/blog/intro.html
32
32
 
33
33
  - title: Article Encryption 🔐
34
34
  details: Encrypt you article based on path and folders, so that only the one you want could see them
35
- link: https://vuepress-theme-hope.github.io/guide/feature/encrypt/
35
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/encrypt.html
36
36
 
37
37
  - title: Custom theme color 🎨
38
38
  details: Supports custom theme colors and allows users to switch between preset theme colors
39
- link: https://vuepress-theme-hope.github.io/guide/interface/theme-color/
39
+ link: https://vuepress-theme-hope.github.io/v1/guide/interface/theme-color.html
40
40
 
41
41
  - title: Dark Mode 🌙
42
42
  details: Switch between light and dark modes freely
43
- link: https://vuepress-theme-hope.github.io/guide/interface/darkmode/
43
+ link: https://vuepress-theme-hope.github.io/v1/guide/interface/darkmode.html
44
44
 
45
45
  - title: SEO enhancement ⚒
46
46
  details: Optimize pages for search engines.
47
- link: https://vuepress-theme-hope.github.io/guide/feature/seo/
47
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/seo.html
48
48
 
49
49
  - title: Sitemap 🗺
50
50
  details: Generate a Sitemap for your website
51
- link: https://vuepress-theme-hope.github.io/guide/feature/sitemap/
51
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/sitemap.html
52
52
 
53
53
  - title: Feed support 📡
54
54
  details: You can generate feed, and let users to subcribe it
55
- link: https://vuepress-theme-hope.github.io/guide/feature/feed/
55
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/feed.html
56
56
 
57
57
  - title: PWA support 📲
58
58
  details: The built-in PWA plugin will make your website more like an APP.
59
- link: https://vuepress-theme-hope.github.io/guide/feature/pwa/
59
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/pwa.html
60
60
 
61
61
  - title: TS support 🔧
62
62
  details: Turn on TypeScript support for your VuePress
63
- link: https://vuepress-theme-hope.github.io/guide/feature/typescript/
63
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/typescript.html
64
64
 
65
65
  - title: More new features ✨
66
66
  details: Including icon support, path navigation, footer support, fullscreen button, blog homepage, etc.
67
- link: https://vuepress-theme-hope.github.io/guide/feature/
67
+ link: https://vuepress-theme-hope.github.io/v1/guide/feature/
68
68
 
69
69
  copyrightText: false
70
70
  footer: MIT Licensed | Copyright © 2019-present Mr. Hope
@@ -74,4 +74,4 @@ This is an example of a normal homepage. You can place your main content here.
74
74
 
75
75
  To use this layout, you need to set `home: true` in the page front matter.
76
76
 
77
- For related descriptions of configuration items, please see [Project HomePage Layout Config](https://vuepress-theme-hope.github.io/guide/layout/home/).
77
+ For related descriptions of configuration items, please see [Project HomePage Layout Config](https://vuepress-theme-hope.github.io/v1/guide/layout/home.html).
@@ -95,4 +95,4 @@ Sidebar bottom content
95
95
 
96
96
  :::
97
97
 
98
- For details, see [Custom layout](https://vuepress-theme-hope.github.io/guide/layout/custom/).
98
+ For details, see [Custom layout](https://vuepress-theme-hope.github.io/v1/guide/layout/custom.html).
@@ -35,4 +35,4 @@ This is a blog home page.
35
35
 
36
36
  To use this layout, you should set both `blog: true` and `home: true` in the page front matter.
37
37
 
38
- For related configuration docs, please see [blog homepage](https://vuepress-theme-hope.github.io/guide/blog/home/)
38
+ For related configuration docs, please see [blog homepage](https://vuepress-theme-hope.github.io/v1/guide/blog/home.html)
@@ -6,13 +6,13 @@ tag:
6
6
  - markdown
7
7
  ---
8
8
 
9
- `vuepress-theme-hope` 通过内置 [md-enhance](https://vuepress-theme-hope.github.io/md-enhance),在 Markdown 中启用了更多的语法与新功能。
9
+ `vuepress-theme-hope` 通过内置 [md-enhance](https://vuepress-theme-hope.github.io/v1/md-enhance/),在 Markdown 中启用了更多的语法与新功能。
10
10
 
11
11
  <!-- more -->
12
12
 
13
13
  ## 一键启用
14
14
 
15
- 你可以设置 `themeconfig.mdEnhance.enableAll` 启用 [md-enhance](https://vuepress-theme-hope.github.io/md-enhance) 插件的所有功能。
15
+ 你可以设置 `themeconfig.mdEnhance.enableAll` 启用 [md-enhance](https://vuepress-theme-hope.github.io/v1/md-enhance/) 插件的所有功能。
16
16
 
17
17
  ```js {3-5}
18
18
  module.exports = {
@@ -38,7 +38,7 @@ module.exports = {
38
38
 
39
39
  :::
40
40
 
41
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/sup-sub/)
41
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/sup-sub.html)
42
42
 
43
43
  ### 自定义对齐
44
44
 
@@ -72,7 +72,7 @@ module.exports = {
72
72
 
73
73
  ::::
74
74
 
75
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/align/)
75
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/align.html)
76
76
 
77
77
  ### 脚注
78
78
 
@@ -90,7 +90,7 @@ module.exports = {
90
90
 
91
91
  :::
92
92
 
93
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/footnote/)
93
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/footnote.html)
94
94
 
95
95
  ### 标记
96
96
 
@@ -104,7 +104,7 @@ module.exports = {
104
104
 
105
105
  :::
106
106
 
107
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/mark/)
107
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/mark.html)
108
108
 
109
109
  ### 任务列表
110
110
 
@@ -120,7 +120,7 @@ module.exports = {
120
120
 
121
121
  :::
122
122
 
123
- - [点击查看](https://vuepress-theme-hope.github.io/guide/markdown/tasklist/)
123
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/guide/markdown/tasklist.html)
124
124
 
125
125
  ### 流程图
126
126
 
@@ -148,7 +148,7 @@ cond(no)->e
148
148
 
149
149
  :::
150
150
 
151
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/flowchart/)
151
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/flowchart.html)
152
152
 
153
153
  ## Mermaid
154
154
 
@@ -174,7 +174,7 @@ graph TD;
174
174
 
175
175
  :::
176
176
 
177
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/mermaid/)
177
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/mermaid.html)
178
178
 
179
179
  ### Tex 语法
180
180
 
@@ -194,7 +194,7 @@ $$
194
194
 
195
195
  :::
196
196
 
197
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/tex/)
197
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/tex.html)
198
198
 
199
199
  ### 代码案例
200
200
 
@@ -412,7 +412,7 @@ h1 {
412
412
 
413
413
  ::::
414
414
 
415
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/demo/)
415
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/demo/)
416
416
 
417
417
  ### 幻灯片
418
418
 
@@ -484,7 +484,7 @@ $$
484
484
 
485
485
  :::
486
486
 
487
- - [点击查看](https://vuepress-theme-hope.github.io/zh/guide/markdown/presentation/)
487
+ - [点击查看](https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/presentation/)
488
488
 
489
489
  ## 其他语法
490
490
 
@@ -16,55 +16,55 @@ action:
16
16
  features:
17
17
  - title: Markdown 增强 🧰
18
18
  details: 新增文字对齐、上下角标、脚注、标记、任务列表、数学公式、流程图、图表与幻灯片支持
19
- link: https://vuepress-theme-hope.github.io/zh/guide/markdown/
19
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/markdown/
20
20
 
21
21
  - title: 浏览量与评论 💬
22
22
  details: 配合 Valine 与 Vssue 来开启阅读量统计与评论支持
23
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/comment/
23
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/comment.html
24
24
 
25
25
  - title: 文章信息展示 ℹ
26
26
  details: 为你的文章添加作者、写作日期、预计阅读时间、字数统计等信息
27
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/page-info/
27
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/page-info.html
28
28
 
29
29
  - title: 博客支持 📝
30
30
  details: 为你的文章添加日期、标签和分类,即可自动生成文章、分类、标签与时间轴列表
31
- link: https://vuepress-theme-hope.github.io/zh/guide/blog/intro/
31
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/blog/intro.html
32
32
 
33
33
  - title: 文章加密 🔐
34
34
  details: 你可以为你的特定页面或特定目录进行加密,以便陌生人不能随意访问它们
35
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/encrypt/
35
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/encrypt.html
36
36
 
37
37
  - title: 主题色切换 🎨
38
38
  details: 支持自定义主题色并允许用户在预设的主题颜色之间切换
39
- link: https://vuepress-theme-hope.github.io/zh/guide/interface/theme-color/
39
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/interface/theme-color.html
40
40
 
41
41
  - title: 深色模式 🌙
42
42
  details: 可以自由切换浅色模式与深色模式
43
- link: https://vuepress-theme-hope.github.io/zh/guide/interface/darkmode/
43
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/interface/darkmode.html
44
44
 
45
45
  - title: SEO 增强 ⚒
46
46
  details: 将最终生成的网页针对搜索引擎进行优化。
47
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/seo/
47
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/seo.html
48
48
 
49
49
  - title: Sitemap 🗺
50
50
  details: 自动为你的网站生成 Sitemap
51
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/sitemap/
51
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/sitemap.html
52
52
 
53
53
  - title: Feed 支持 📡
54
54
  details: 你可以生成你的 Feed,并通知你的用户订阅它。
55
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/feed/
55
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/feed.html
56
56
 
57
57
  - title: PWA 支持 📲
58
58
  details: 内置的 PWA 插件会让你的网站更像一个 APP。
59
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/pwa/
59
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/pwa.html
60
60
 
61
61
  - title: TS 支持 🔧
62
62
  details: 为你的 VuePress 开启 TypeScript 支持
63
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/typescript/
63
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/typescript.html
64
64
 
65
65
  - title: 更多新特性 ✨
66
66
  details: 包括博客主页、图标支持、路径导航、页脚支持、全屏按钮、返回顶部按钮等
67
- link: https://vuepress-theme-hope.github.io/zh/guide/feature/
67
+ link: https://vuepress-theme-hope.github.io/v1/zh/guide/feature/
68
68
 
69
69
  copyrightText: false
70
70
  footer: MIT Licensed | Copyright © 2019-present Mr.Hope
@@ -74,4 +74,4 @@ footer: MIT Licensed | Copyright © 2019-present Mr.Hope
74
74
 
75
75
  想要使用此布局,你需要在页面 front matter 中设置 `home: true`。
76
76
 
77
- 配置项的相关说明详见 [项目主页配置](https://vuepress-theme-hope.github.io/zh/guide/layout/home/)。
77
+ 配置项的相关说明详见 [项目主页配置](https://vuepress-theme-hope.github.io/v1/zh/guide/layout/home.html)。
@@ -95,4 +95,4 @@ icon: layout
95
95
 
96
96
  :::
97
97
 
98
- 更多详情,详见 [自定义布局](https://vuepress-theme-hope.github.io/zh/guide/layout/custom/).
98
+ 更多详情,详见 [自定义布局](https://vuepress-theme-hope.github.io/v1/zh/guide/layout/custom.html).
@@ -35,4 +35,4 @@ footer: 自定义你的页脚文字
35
35
 
36
36
  要使用此布局,您应该在页面前端设置 `blog: true` 和 `home: true`。
37
37
 
38
- 相关配置文档请见 [博客主页](https://vuepress-theme-hope.github.io/zh/guide/blog/home/)
38
+ 相关配置文档请见 [博客主页](https://vuepress-theme-hope.github.io/v1/zh/guide/blog/home.html)