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; } - + -