@vuepress/theme-default 2.0.0-rc.82 → 2.0.0-rc.84
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/client/layouts/Layout.vue +1 -2
- package/lib/node/defaultTheme.js +13 -13
- package/package.json +17 -17
|
@@ -31,8 +31,7 @@ const { frontmatter, page, themeLocale } = useData()
|
|
|
31
31
|
|
|
32
32
|
// navbar
|
|
33
33
|
const shouldShowNavbar = computed(
|
|
34
|
-
() =>
|
|
35
|
-
frontmatter.value.navbar !== false && themeLocale.value.navbar !== false,
|
|
34
|
+
() => frontmatter.value.navbar ?? themeLocale.value.navbar ?? true,
|
|
36
35
|
)
|
|
37
36
|
|
|
38
37
|
// sidebar
|
package/lib/node/defaultTheme.js
CHANGED
|
@@ -61,18 +61,18 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
|
|
|
61
61
|
},
|
|
62
62
|
plugins: [
|
|
63
63
|
// @vuepress/plugin-active-header-link
|
|
64
|
-
themePlugins.activeHeaderLinks
|
|
64
|
+
(themePlugins.activeHeaderLinks ?? true)
|
|
65
65
|
? activeHeaderLinksPlugin({
|
|
66
66
|
// should greater than page transition duration
|
|
67
67
|
delay: 300,
|
|
68
68
|
})
|
|
69
69
|
: [],
|
|
70
70
|
// @vuepress/plugin-back-to-top
|
|
71
|
-
themePlugins.backToTop
|
|
71
|
+
(themePlugins.backToTop ?? true)
|
|
72
72
|
? backToTopPlugin(isPlainObject(themePlugins.backToTop) ? themePlugins.backToTop : {})
|
|
73
73
|
: [],
|
|
74
74
|
// @vuepress/plugin-copy-code
|
|
75
|
-
themePlugins.copyCode
|
|
75
|
+
(themePlugins.copyCode ?? true)
|
|
76
76
|
? copyCodePlugin({
|
|
77
77
|
...(isPlainObject(themePlugins.copyCode)
|
|
78
78
|
? themePlugins.copyCode
|
|
@@ -80,46 +80,46 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
|
|
|
80
80
|
})
|
|
81
81
|
: [],
|
|
82
82
|
// @vuepress/plugin-markdown-container
|
|
83
|
-
themePlugins.hint
|
|
83
|
+
(themePlugins.hint ?? true)
|
|
84
84
|
? markdownHintPlugin({
|
|
85
85
|
locales: resolveMarkdownHintLocales(localeOptions),
|
|
86
86
|
...(isPlainObject(themePlugins.hint) ? themePlugins.hint : {}),
|
|
87
87
|
})
|
|
88
88
|
: [],
|
|
89
89
|
// @vuepress/plugin-git
|
|
90
|
-
themePlugins.git
|
|
90
|
+
(themePlugins.git ?? true)
|
|
91
91
|
? gitPlugin({
|
|
92
92
|
createdTime: false,
|
|
93
|
-
updatedTime: localeOptions.lastUpdated
|
|
93
|
+
updatedTime: localeOptions.lastUpdated ?? true,
|
|
94
94
|
changelog: { repoUrl: localeOptions.repo || '' },
|
|
95
95
|
...(isPlainObject(themePlugins.git) ? themePlugins.git : {}),
|
|
96
96
|
})
|
|
97
97
|
: [],
|
|
98
98
|
// @vuepress/plugin-links-check
|
|
99
|
-
themePlugins.linksCheck
|
|
99
|
+
(themePlugins.linksCheck ?? true)
|
|
100
100
|
? linksCheckPlugin(isPlainObject(themePlugins.linksCheck)
|
|
101
101
|
? themePlugins.linksCheck
|
|
102
102
|
: {})
|
|
103
103
|
: [],
|
|
104
104
|
// @vuepress/plugin-medium-zoom
|
|
105
|
-
themePlugins.mediumZoom
|
|
105
|
+
(themePlugins.mediumZoom ?? true) ? mediumZoomPlugin() : [],
|
|
106
106
|
// @vuepress/plugin-nprogress
|
|
107
|
-
themePlugins.nprogress
|
|
107
|
+
(themePlugins.nprogress ?? true) ? nprogressPlugin() : [],
|
|
108
108
|
// @vuepress/plugin-palette
|
|
109
109
|
palettePlugin({ preset: 'sass' }),
|
|
110
110
|
// @vuepress/plugin-prismjs
|
|
111
|
-
themePlugins.prismjs
|
|
111
|
+
(themePlugins.prismjs ?? true)
|
|
112
112
|
? prismjsPlugin(isPlainObject(themePlugins.prismjs) ? themePlugins.prismjs : {})
|
|
113
113
|
: [],
|
|
114
114
|
// @vuepress/plugin-seo
|
|
115
|
-
hostname && themePlugins.seo
|
|
115
|
+
hostname && (themePlugins.seo ?? true)
|
|
116
116
|
? seoPlugin({
|
|
117
117
|
hostname,
|
|
118
118
|
...(isPlainObject(themePlugins.seo) ? themePlugins.seo : {}),
|
|
119
119
|
})
|
|
120
120
|
: [],
|
|
121
121
|
// @vuepress/plugin-sitemap
|
|
122
|
-
hostname && themePlugins.sitemap
|
|
122
|
+
hostname && (themePlugins.sitemap ?? true)
|
|
123
123
|
? sitemapPlugin({
|
|
124
124
|
hostname,
|
|
125
125
|
...(isPlainObject(themePlugins.sitemap)
|
|
@@ -128,7 +128,7 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
|
|
|
128
128
|
})
|
|
129
129
|
: [],
|
|
130
130
|
// @vuepress/plugin-markdown-tab
|
|
131
|
-
themePlugins.tab
|
|
131
|
+
(themePlugins.tab ?? true)
|
|
132
132
|
? markdownTabPlugin(isPlainObject(themePlugins.tab)
|
|
133
133
|
? themePlugins.tab
|
|
134
134
|
: { codeTabs: true, tabs: true })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.84",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"templates"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
41
|
-
"@vuepress/plugin-active-header-links": "2.0.0-rc.
|
|
42
|
-
"@vuepress/plugin-back-to-top": "2.0.0-rc.
|
|
43
|
-
"@vuepress/plugin-copy-code": "2.0.0-rc.
|
|
44
|
-
"@vuepress/plugin-git": "2.0.0-rc.
|
|
45
|
-
"@vuepress/plugin-links-check": "2.0.0-rc.
|
|
46
|
-
"@vuepress/plugin-markdown-hint": "2.0.0-rc.
|
|
47
|
-
"@vuepress/plugin-markdown-tab": "2.0.0-rc.
|
|
48
|
-
"@vuepress/plugin-medium-zoom": "2.0.0-rc.
|
|
49
|
-
"@vuepress/plugin-nprogress": "2.0.0-rc.
|
|
50
|
-
"@vuepress/plugin-palette": "2.0.0-rc.
|
|
51
|
-
"@vuepress/plugin-prismjs": "2.0.0-rc.
|
|
52
|
-
"@vuepress/plugin-seo": "2.0.0-rc.
|
|
53
|
-
"@vuepress/plugin-sitemap": "2.0.0-rc.
|
|
40
|
+
"@vuepress/helper": "2.0.0-rc.83",
|
|
41
|
+
"@vuepress/plugin-active-header-links": "2.0.0-rc.83",
|
|
42
|
+
"@vuepress/plugin-back-to-top": "2.0.0-rc.83",
|
|
43
|
+
"@vuepress/plugin-copy-code": "2.0.0-rc.83",
|
|
44
|
+
"@vuepress/plugin-git": "2.0.0-rc.84",
|
|
45
|
+
"@vuepress/plugin-links-check": "2.0.0-rc.83",
|
|
46
|
+
"@vuepress/plugin-markdown-hint": "2.0.0-rc.84",
|
|
47
|
+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.83",
|
|
48
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-rc.83",
|
|
49
|
+
"@vuepress/plugin-nprogress": "2.0.0-rc.83",
|
|
50
|
+
"@vuepress/plugin-palette": "2.0.0-rc.83",
|
|
51
|
+
"@vuepress/plugin-prismjs": "2.0.0-rc.83",
|
|
52
|
+
"@vuepress/plugin-seo": "2.0.0-rc.84",
|
|
53
|
+
"@vuepress/plugin-sitemap": "2.0.0-rc.84",
|
|
54
54
|
"@vuepress/plugin-theme-data": "2.0.0-rc.79",
|
|
55
|
-
"@vueuse/core": "^
|
|
55
|
+
"@vueuse/core": "^13.0.0",
|
|
56
56
|
"vue": "^3.5.13"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "c3a5976f7b683afd3c927be8333114d36dce891d"
|
|
79
79
|
}
|