From 3ff248b2cdb08313dbaae70eb9665dc9e4b529c1 Mon Sep 17 00:00:00 2001 From: chu fan Date: Thu, 12 Oct 2023 19:26:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=9B=86=E6=88=90xmind=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=80=9D=E7=BB=B4=E5=AF=BC=E5=9B=BE=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/components/HelloWorld.vue | 12 + docs/.vuepress/components/XMindManager.vue | 208 ++++++++++++++++++ docs/.vuepress/config/plugins.config.ts | 11 +- docs/.vuepress/config/theme.config.ts | 2 + docs/.vuepress/public/mark-map/ccp-map.html | 4 +- docs/.vuepress/public/mark-map/cn-map.html | 4 +- docs/.vuepress/public/mark-map/cn.xmind | Bin 0 -> 170912 bytes docs/.vuepress/public/mark-map/cpp.xmind | Bin 0 -> 180104 bytes docs/.vuepress/public/mark-map/ds-map.html | 4 +- docs/.vuepress/public/mark-map/ds.xmind | Bin 0 -> 160402 bytes docs/.vuepress/public/mark-map/index.json | 30 +++ docs/.vuepress/public/mark-map/os-map.html | 4 +- docs/.vuepress/public/mark-map/os.xmind | Bin 0 -> 170424 bytes docs/.vuepress/public/mark-map/readme.html | 4 +- .../public/mark-map}/操作系统发展历程.xmind | Bin docs/manuscripts/mark-map/index.json | 30 +++ docs/manuscripts/mark-map/readme.md | 2 + docs/manuscripts/mark-map/操作系统.xmind | Bin 0 -> 170424 bytes .../mark-map/操作系统发展历程.xmind | Bin 0 -> 123949 bytes docs/manuscripts/mark-map/数据结构.xmind | Bin 0 -> 160402 bytes .../manuscripts/mark-map/计算机组成原理.xmind | Bin 0 -> 180104 bytes docs/manuscripts/mark-map/计算机网络.xmind | Bin 0 -> 170912 bytes docs/readme.md | 7 + package.json | 4 +- pnpm-lock.yaml | 19 ++ scripts/mark-map | 49 ++++- 26 files changed, 375 insertions(+), 19 deletions(-) create mode 100644 docs/.vuepress/components/HelloWorld.vue create mode 100644 docs/.vuepress/components/XMindManager.vue create mode 100644 docs/.vuepress/public/mark-map/cn.xmind create mode 100644 docs/.vuepress/public/mark-map/cpp.xmind create mode 100644 docs/.vuepress/public/mark-map/ds.xmind create mode 100644 docs/.vuepress/public/mark-map/index.json create mode 100644 docs/.vuepress/public/mark-map/os.xmind rename {manuscripts/思维导图 => docs/.vuepress/public/mark-map}/操作系统发展历程.xmind (100%) create mode 100644 docs/manuscripts/mark-map/index.json create mode 100644 docs/manuscripts/mark-map/操作系统.xmind create mode 100644 docs/manuscripts/mark-map/操作系统发展历程.xmind create mode 100644 docs/manuscripts/mark-map/数据结构.xmind create mode 100644 docs/manuscripts/mark-map/计算机组成原理.xmind create mode 100644 docs/manuscripts/mark-map/计算机网络.xmind diff --git a/docs/.vuepress/components/HelloWorld.vue b/docs/.vuepress/components/HelloWorld.vue new file mode 100644 index 0000000..7abf202 --- /dev/null +++ b/docs/.vuepress/components/HelloWorld.vue @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/docs/.vuepress/components/XMindManager.vue b/docs/.vuepress/components/XMindManager.vue new file mode 100644 index 0000000..ceafdcd --- /dev/null +++ b/docs/.vuepress/components/XMindManager.vue @@ -0,0 +1,208 @@ + + + + + + + + + diff --git a/docs/.vuepress/config/plugins.config.ts b/docs/.vuepress/config/plugins.config.ts index ec893b3..d2133d4 100644 --- a/docs/.vuepress/config/plugins.config.ts +++ b/docs/.vuepress/config/plugins.config.ts @@ -1,11 +1,20 @@ import {searchProPlugin} from "vuepress-plugin-search-pro"; -import {mdEnhancePlugin} from "vuepress-plugin-md-enhance"; +import {path} from "@vuepress/utils"; +import {registerComponentsPlugin} from "@vuepress/plugin-register-components"; +console.log(path.resolve(__dirname, './components/HelloWorld.vue')) /** * 插件配置 */ export default { plugins: [ + // 组件注册,参考:https://v2.vuepress.vuejs.org/zh/reference/plugin/register-components.html + registerComponentsPlugin({ + componentsDir: path.resolve(__dirname, '../components'), + // components: { + // HelloWorld: path.resolve(__dirname, '../components/HelloWorld.vue') + // } + }), searchProPlugin({ // 索引全部内容 indexContent: true, diff --git a/docs/.vuepress/config/theme.config.ts b/docs/.vuepress/config/theme.config.ts index 4985cd2..62de17c 100644 --- a/docs/.vuepress/config/theme.config.ts +++ b/docs/.vuepress/config/theme.config.ts @@ -104,6 +104,8 @@ export default { container: true, // mermaid mermaid: true, + // 自定义对齐 + align: true, }, components: { // 插件选项 diff --git a/docs/.vuepress/public/mark-map/ccp-map.html b/docs/.vuepress/public/mark-map/ccp-map.html index 48bd4a1..8f69fdc 100644 --- a/docs/.vuepress/public/mark-map/ccp-map.html +++ b/docs/.vuepress/public/mark-map/ccp-map.html @@ -16,11 +16,11 @@ height: 100vh; } - + -