Skip to content

Commit c54a9eb

Browse files
authored
feat: 8.9 additions (#163)
2 parents 3cf29a7 + 720bf62 commit c54a9eb

File tree

422 files changed

+53573
-5720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

422 files changed

+53573
-5720
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- name: Setup Node
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: 19
20+
node-version: 22.14.0
2121
cache: 'npm'
22-
- run: npm ci
22+
- run: yarn
2323
- run: npm run lint --if-present
2424
- run: npm run build --if-present
2525
env:

.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(

.vitepress/theme/cliLanguage.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// https://mysticmind.dev/vitepress-fenced-code-block-syntax-highlighting-quirks-with-net-or-other-languages
2-
import { BUNDLED_LANGUAGES } from "shiki";
3-
import cliLanguageGrammar from "./shiki/cli.tmLanguage.json";
2+
import { bundledLanguages } from 'shiki'
3+
import cliLanguageGrammar from './shiki/cli.tmLanguage.json'
44

5-
BUNDLED_LANGUAGES.push({
6-
id: "cli",
7-
scopeName: "source.cli",
8-
// @ts-ignore
5+
bundledLanguages['cli'] = {
6+
id: 'cli',
7+
scopeName: 'source.cli',
98
grammar: cliLanguageGrammar,
10-
});
9+
}
10+
// bundledLanguages.push()
183 KB
Loading
166 KB
Loading
241 KB
Loading
202 KB
Loading
198 KB
Loading
202 KB
Loading

0 commit comments

Comments
 (0)