Skip to content

Commit

Permalink
update vuepress
Browse files Browse the repository at this point in the history
  • Loading branch information
coldgust committed Apr 24, 2024
1 parent 02916dd commit 20d71c6
Show file tree
Hide file tree
Showing 4 changed files with 1,457 additions and 4,383 deletions.
58 changes: 45 additions & 13 deletions docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export default hopeTheme({
wordPerMinute: 150,
},

components: {
components: ["Badge", "VPCard"],
},

comment: {
// You should generate and use your own comment service
provider: "Giscus",
Expand All @@ -55,28 +59,18 @@ export default hopeTheme({
categoryId: "DIC_kwDOJ_MAe84CYGT6"
},

// all features are enabled for demo, only preserve features you need here
// 此处开启了很多功能用于演示,你应仅保留用到的功能。
mdEnhance: {
align: true,
attrs: true,
chart: true,
codetabs: true,
component: true,
demo: true,
echarts: true,
figure: true,
gfm: true,
imgLazyload: true,
imgSize: true,
include: true,
katex: true,
mark: true,
mermaid: true,
playground: {
presets: ["ts", "vue"],
},
revealjs: {
plugins: ["highlight", "math", "search", "notes", "zoom"],
},
stylize: [
{
matcher: "Recommended",
Expand All @@ -93,8 +87,46 @@ export default hopeTheme({
sub: true,
sup: true,
tabs: true,
tasklist: true,
vPre: true,
vuePlayground: true,

// 在启用之前安装 chart.js
// chart: true,

// insert component easily

// 在启用之前安装 echarts
// echarts: true,

// 在启用之前安装 flowchart.ts
// flowchart: true,

// gfm requires mathjax-full to provide tex support
// gfm: true,

// 在启用之前安装 katex
// katex: true,

// 在启用之前安装 mathjax-full
// mathjax: true,

// 在启用之前安装 mermaid
mermaid: true,

// playground: {
// presets: ["ts", "vue"],
// },

// 在启用之前安装 reveal.js
revealJs: {
plugins: ["highlight", "math", "search", "notes", "zoom"],
},

// 在启用之前安装 @vue/repl
// vuePlayground: true,

// install sandpack-vue3 before enabling it
// sandpack: true,
},

// uncomment these if you want a PWA
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
"license": "Apache-2.0",
"type": "module",
"scripts": {
"docs:build": "vuepress build docs",
"docs:clean-dev": "vuepress dev docs --clean-cache",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress-vite build docs",
"docs:clean-dev": "vuepress-vite dev docs --clean-cache",
"docs:dev": "vuepress-vite dev docs",
"docs:update-package": "pnpm dlx vp-update"
},
"devDependencies": {
"@vuepress/client": "2.0.0-beta.67",
"vue": "^3.3.6",
"vuepress": "2.0.0-beta.67",
"vuepress-theme-hope": "2.0.0-beta.238"
"@vuepress/bundler-vite": "2.0.0-rc.9",
"mermaid": "^10.9.0",
"reveal.js": "^5.1.0",
"vue": "^3.4.25",
"vuepress": "2.0.0-rc.9",
"vuepress-theme-hope": "2.0.0-rc.37"
}
}
Loading

0 comments on commit 20d71c6

Please sign in to comment.