Skip to content

Commit 6a0fc46

Browse files
committed
chore: updates
1 parent b819d01 commit 6a0fc46

30 files changed

+4724
-6590
lines changed

β€Ž.vitepress/clientAppEnhance.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default ({ router }) => {
2+
router.afterEach(() => {
3+
// Ensure the DOM is updated before scrolling
4+
setTimeout(() => {
5+
window.scrollTo(0, 0)
6+
}, 0)
7+
})
8+
}

β€Ž.vitepress/config.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import mainSidebar from '../content/sidebar'
44
import uiSidebar from '../content/ui/sidebar'
55
import pluginsSidebar from '../content/plugins/sidebar'
66
import nav from './nav'
7-
import './theme/cliLanguage'
7+
import './clientAppEnhance';
8+
// import './theme/cliLanguage'
89
import path from 'node:path'
910
import { SiteMap } from './genSitemap.mjs'
1011

@@ -71,6 +72,7 @@ export default defineConfig({
7172
},
7273
markdown: {
7374
headers: true,
75+
theme: "github-dark"
7476
},
7577
async transformPageData(pageData, { siteConfig }) {
7678
// const contributors = await githubAuthors.getAuthorsForFilePath(
183 KB
Loading
166 KB
Loading
241 KB
Loading
202 KB
Loading
198 KB
Loading
202 KB
Loading
109 KB
Loading
107 KB
Loading

0 commit comments

Comments
Β (0)