Skip to content

Commit 1f2b6db

Browse files
committed
bump vuepress-theme-hope version to 2.0.0-rc.99
1 parent ce57345 commit 1f2b6db

File tree

13 files changed

+2509
-2362
lines changed

13 files changed

+2509
-2362
lines changed

package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,32 @@
2222
},
2323
"dependencies": {
2424
"@element-plus/icons-vue": "^2.3.2",
25-
"@vuepress/bundler-vite": "2.0.0-rc.19",
26-
"@vuepress/helper": "2.0.0-rc.66",
27-
"@vuepress/plugin-docsearch": "2.0.0-rc.76",
28-
"@vuepress/plugin-links-check": "2.0.0-rc.74",
29-
"element-plus": "^2.9.1",
30-
"mathjax-full": "3.2.2",
31-
"sass-embedded": "1.83.0",
32-
"vue": "^3.5.13",
33-
"vue3-carousel": "0.9.0",
34-
"vuepress": "2.0.0-rc.19",
35-
"vuepress-theme-hope": "2.0.0-rc.71"
25+
"@vuepress/bundler-vite": "2.0.0-rc.26",
26+
"@vuepress/plugin-docsearch": "2.0.0-rc.120",
27+
"@vuepress/plugin-links-check": "2.0.0-rc.120",
28+
"element-plus": "^2.12.0",
29+
"sass-embedded": "1.93.3",
30+
"vue": "^3.5.25",
31+
"vue3-carousel": "0.17.0",
32+
"vuepress": "2.0.0-rc.26",
33+
"vuepress-theme-hope": "2.0.0-rc.99"
3634
},
3735
"devDependencies": {
38-
"@eslint/js": "9.17.0",
39-
"eslint": "9.17.0",
40-
"eslint-plugin-vue": "9.32.0",
41-
"gh-pages": "6.2.0",
42-
"globals": "15.13.0",
43-
"typescript": "5.5.4",
44-
"typescript-eslint": "8.18.0"
36+
"@eslint/js": "9.39.1",
37+
"@vuepress/helper": "2.0.0-rc.120",
38+
"@vuepress/plugin-back-to-top": "2.0.0-rc.120",
39+
"client": "link:@vuepress/helper/client",
40+
"eslint": "9.39.1",
41+
"eslint-plugin-vue": "10.6.2",
42+
"gh-pages": "6.3.0",
43+
"globals": "16.5.0",
44+
"katex": "^0.16.25",
45+
"typescript": "5.9.3",
46+
"typescript-eslint": "8.48.1"
4547
},
4648
"prettier": {
4749
"singleQuote": true,
4850
"trailingComma": "all"
4951
},
50-
"packageManager": "pnpm@9.15.1"
52+
"packageManager": "pnpm@10.24.0"
5153
}

pnpm-lock.yaml

Lines changed: 2440 additions & 2315 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
onlyBuiltDependencies:
2+
- vue-demi

src/.vuepress/client.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@
1818

1919
import { defineDocSearchConfig } from '@vuepress/plugin-docsearch/client';
2020
import { computed } from 'vue';
21-
import { defineClientConfig, usePageData, useRouter, withBase } from 'vuepress/client';
22-
import useLegacyRoute from './composables/useLegacyRoute';
21+
import {
22+
defineClientConfig,
23+
usePageData,
24+
useRouter,
25+
withBase,
26+
} from 'vuepress/client';
27+
import useLegacyRoute from './composables/useLegacyRoute.js';
2328
import DocSearch from './components/DocSearch.vue';
29+
import Layout from './components/SidebarLayout.vue';
2430
import { getDocVersion } from './utils/index.js';
2531

2632
export default defineClientConfig({
@@ -32,11 +38,11 @@ export default defineClientConfig({
3238
const pageData = usePageData();
3339
const router = useRouter();
3440

35-
let lastTo = '';
36-
41+
let lastTo = '';
42+
3743
router.onError((error) => {
3844
console.warn(error);
39-
if(!lastTo) return;
45+
if (!lastTo) return;
4046
window.location.href = withBase(lastTo);
4147
lastTo = '';
4248
});
@@ -58,4 +64,7 @@ export default defineClientConfig({
5864

5965
defineDocSearchConfig(docSearchConfig);
6066
},
67+
layouts: {
68+
Layout: Layout,
69+
},
6170
});

src/.vuepress/components/ResourceEvaluator.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,12 @@ const calculateSpacePrecise = () => {
385385
.vp-breadcrumb {
386386
display: none;
387387
}
388-
}
389388
390-
.theme-hope-content {
391-
width: 1230px;
392-
max-width: 100% !important;
393-
overflow: auto;
389+
[vp-content] {
390+
width: 1230px;
391+
max-width: 100% !important;
392+
overflow: auto;
393+
}
394394
}
395395
396396
.calc-content-area {

src/.vuepress/components/Sidebar.vue renamed to src/.vuepress/components/SidebarLayout.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<Sidebar class="iotdb-sidebar">
3-
<template #top>
2+
<Layout>
3+
<template #sidebarTop>
44
<p class="vp-sidebar-header iotdb-sidebar-header">
55
<span class="vp-sidebar-title">{{ (sidebarItems && sidebarItems.length > 0) ? sidebarItems[0]?.text : ''
66
}}</span>
@@ -21,12 +21,12 @@
2121
</div>
2222
</div>
2323
</template>
24-
</Sidebar>
24+
</Layout>
2525
</template>
2626

2727
<script setup lang="ts">
28-
import { useSidebarItems } from "vuepress-theme-hope/modules/sidebar/composables/index.js";
29-
import Sidebar from 'vuepress-theme-hope/modules/sidebar/components/Sidebar.js';
28+
import { useSidebarItems } from "@theme-hope/composables/sidebar/useSidebarItems";
29+
import { Layout } from 'vuepress-theme-hope/client';
3030
import { ref, watch, computed } from 'vue';
3131
import { useRoute, withBase, useRouter } from 'vuepress/client';
3232
import { getDialect, getDocVersion, URL_SUFFIX } from '../utils/index.js';

src/.vuepress/config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,10 @@ _paq.push(['enableLinkTracking']);
8888

8989
shouldPrefetch: false,
9090
alias: {
91-
'@theme-hope/components/PageFooter': path.resolve(
91+
'@theme-hope/components/base/PageFooter': path.resolve(
9292
dirname,
9393
'./components/PageFooter.vue',
9494
),
95-
'@theme-hope/modules/sidebar/components/Sidebar': path.resolve(
96-
dirname,
97-
'./components/Sidebar.vue',
98-
),
9995
},
10096
bundler: viteBundler({
10197
vuePluginOptions: {

src/.vuepress/config_check_links.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
* limitations under the License.
1717
*/
1818

19-
import { linksCheckPlugin } from '@vuepress/plugin-links-check'
19+
import { linksCheckPlugin } from '@vuepress/plugin-links-check';
2020
import { defineUserConfig } from 'vuepress';
2121
import config from './config.js';
2222

23-
if(config.plugins === undefined) config.plugins = [];
23+
if (config.plugins === undefined) config.plugins = [];
2424

25-
config.plugins = [...config.plugins,linksCheckPlugin({build: 'error'})];
25+
config.plugins = [...config.plugins, linksCheckPlugin({ build: 'error' })];
2626

2727
export default defineUserConfig(config);

src/.vuepress/styles/index.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ div[class*='language-'] pre code {
101101
color: var(--code-c-text);
102102
}
103103

104-
.iotdb-sidebar {
104+
.vp-sidebar {
105105
.iotdb-sidebar-header {
106106
margin-top: 1rem;
107107
margin-bottom: 0.25rem;
@@ -169,7 +169,8 @@ div[class*='language-'] pre code {
169169
background: var(--vp-c-bg-alt);
170170
}
171171
}
172-
.theme-hope-content {
172+
173+
[vp-content] {
173174
inset: 0;
174175
z-index: 0;
175176
position: relative;
@@ -180,4 +181,13 @@ div[class*='language-'] pre code {
180181
padding: 0;
181182
display: inline;
182183
}
184+
}
185+
.theme-container {
186+
.vp-project-home {
187+
padding-inline: 0 !important;
188+
}
189+
}
190+
191+
.vp-project-home .vp-hero-info-wrapper:not(.fullscreen) .vp-hero-info {
192+
max-width: 100% !important;
183193
}

src/.vuepress/theme.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export default hopeTheme(
8585
figure: true,
8686
gfm: true,
8787
imgLazyload: true,
88-
math: true,
88+
math: {
89+
type: 'katex',
90+
},
8991
linksCheck: {
9092
build: 'error',
9193
},

0 commit comments

Comments
 (0)