Skip to content

Commit 5652c02

Browse files
committed
feat: 下载页面新增iso友好名称
feat: 新增代码高亮VCodeBlock
1 parent a0a1bd6 commit 5652c02

File tree

13 files changed

+263
-94
lines changed

13 files changed

+263
-94
lines changed

package-lock.json

+102-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12+
"@highlightjs/vue-plugin": "^2.1.0",
1213
"@kangc/v-md-editor": "^2.3.18",
14+
"@wdns/vue-code-block": "^2.3.2",
1315
"axios": "^1.6.8",
1416
"element-plus": "^2.7.4",
15-
"highlight.js": "^10.0.0",
17+
"highlight.js": "^11.0.1",
1618
"js-yaml": "^4.1.0",
1719
"oh-vue-icons": "1.0.0-rc3",
1820
"v-md-editor": "^1.0.6",
1921
"vue": "^3.4.19",
20-
"vue-router": "4",
21-
"vue3-ace-editor": "^2.2.4"
22+
"vue-router": "4"
2223
},
2324
"devDependencies": {
2425
"@vitejs/plugin-vue": "^5.0.4",

src/main.js

+7
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ VMdPreview.use(vuepressTheme, {
2020
Prism,
2121
});
2222

23+
import { createVCodeBlock } from '@wdns/vue-code-block';
24+
25+
const VCodeBlock = createVCodeBlock({
26+
// options
27+
});
28+
2329
const app = createApp(App)
2430
app.component("v-icon", OhVueIcon);
31+
app.use(VCodeBlock)
2532
app.use(router)
2633
app.use(VMdPreview)
2734
app.mount('#app')

src/pages/afterglow/Index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const docList = reactive([
2828
url: '/'
2929
}, {
3030
title: '系统需求与架构支持指南',
31-
url: '/'
31+
url: '/afterglow/isa'
3232
}, {
3333
title: '其他支持文档',
3434
url: '/'

0 commit comments

Comments
 (0)