@vuepress/theme-default 2.0.0-beta.50 → 2.0.0-beta.51
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.
|
@@ -53,7 +53,7 @@ export const resolveSidebarItems = (frontmatter, themeLocale) => {
|
|
|
53
53
|
*/
|
|
54
54
|
export const headerToSidebarItem = (header, sidebarDepth) => ({
|
|
55
55
|
text: header.title,
|
|
56
|
-
link:
|
|
56
|
+
link: header.link,
|
|
57
57
|
children: headersToSidebarItemChildren(header.children, sidebarDepth),
|
|
58
58
|
});
|
|
59
59
|
export const headersToSidebarItemChildren = (headers, sidebarDepth) => sidebarDepth > 0
|
package/lib/client/config.js
CHANGED
|
@@ -2,6 +2,8 @@ import { defineClientConfig } from '@vuepress/client';
|
|
|
2
2
|
import { h } from 'vue';
|
|
3
3
|
import { Badge, CodeGroup, CodeGroupItem } from './components/global/index.js';
|
|
4
4
|
import { setupDarkMode, setupSidebarItems, useScrollPromise, } from './composables/index.js';
|
|
5
|
+
import Layout from './layouts/Layout.vue';
|
|
6
|
+
import NotFound from './layouts/NotFound.vue';
|
|
5
7
|
import './styles/index.scss';
|
|
6
8
|
export default defineClientConfig({
|
|
7
9
|
enhance({ app, router }) {
|
|
@@ -35,4 +37,8 @@ export default defineClientConfig({
|
|
|
35
37
|
setupDarkMode();
|
|
36
38
|
setupSidebarItems();
|
|
37
39
|
},
|
|
40
|
+
layouts: {
|
|
41
|
+
Layout,
|
|
42
|
+
NotFound,
|
|
43
|
+
},
|
|
38
44
|
});
|
|
File without changes
|
package/lib/node/defaultTheme.js
CHANGED
|
@@ -15,7 +15,6 @@ export const defaultTheme = ({ themePlugins = {}, ...localeOptions } = {}) => {
|
|
|
15
15
|
assignDefaultLocaleOptions(localeOptions);
|
|
16
16
|
return {
|
|
17
17
|
name: '@vuepress/theme-default',
|
|
18
|
-
layouts: path.resolve(__dirname, '../client/layouts'),
|
|
19
18
|
templateBuild: path.resolve(__dirname, '../../templates/build.html'),
|
|
20
19
|
alias: {
|
|
21
20
|
// use alias to make all components replaceable
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.51",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
"templates"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@vuepress/client": "2.0.0-beta.
|
|
38
|
-
"@vuepress/core": "2.0.0-beta.
|
|
39
|
-
"@vuepress/plugin-active-header-links": "2.0.0-beta.
|
|
40
|
-
"@vuepress/plugin-back-to-top": "2.0.0-beta.
|
|
41
|
-
"@vuepress/plugin-container": "2.0.0-beta.
|
|
42
|
-
"@vuepress/plugin-external-link-icon": "2.0.0-beta.
|
|
43
|
-
"@vuepress/plugin-git": "2.0.0-beta.
|
|
44
|
-
"@vuepress/plugin-medium-zoom": "2.0.0-beta.
|
|
45
|
-
"@vuepress/plugin-nprogress": "2.0.0-beta.
|
|
46
|
-
"@vuepress/plugin-palette": "2.0.0-beta.
|
|
47
|
-
"@vuepress/plugin-prismjs": "2.0.0-beta.
|
|
48
|
-
"@vuepress/plugin-theme-data": "2.0.0-beta.
|
|
49
|
-
"@vuepress/shared": "2.0.0-beta.
|
|
50
|
-
"@vuepress/utils": "2.0.0-beta.
|
|
37
|
+
"@vuepress/client": "2.0.0-beta.51",
|
|
38
|
+
"@vuepress/core": "2.0.0-beta.51",
|
|
39
|
+
"@vuepress/plugin-active-header-links": "2.0.0-beta.51",
|
|
40
|
+
"@vuepress/plugin-back-to-top": "2.0.0-beta.51",
|
|
41
|
+
"@vuepress/plugin-container": "2.0.0-beta.51",
|
|
42
|
+
"@vuepress/plugin-external-link-icon": "2.0.0-beta.51",
|
|
43
|
+
"@vuepress/plugin-git": "2.0.0-beta.51",
|
|
44
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-beta.51",
|
|
45
|
+
"@vuepress/plugin-nprogress": "2.0.0-beta.51",
|
|
46
|
+
"@vuepress/plugin-palette": "2.0.0-beta.51",
|
|
47
|
+
"@vuepress/plugin-prismjs": "2.0.0-beta.51",
|
|
48
|
+
"@vuepress/plugin-theme-data": "2.0.0-beta.51",
|
|
49
|
+
"@vuepress/shared": "2.0.0-beta.51",
|
|
50
|
+
"@vuepress/utils": "2.0.0-beta.51",
|
|
51
51
|
"@vueuse/core": "^9.1.0",
|
|
52
52
|
"sass": "^1.54.5",
|
|
53
53
|
"vue": "^3.2.37",
|
|
54
54
|
"vue-router": "^4.1.4"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"sass-loader": "^13.0.
|
|
57
|
+
"sass-loader": "^13.0.2"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"sass-loader": {
|