mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-03 12:25:22 +01:00
docs: new Documentation
This commit is contained in:
13
docs/.vitepress/theme/custom.css
Normal file
13
docs/.vitepress/theme/custom.css
Normal file
@@ -0,0 +1,13 @@
|
||||
@media (min-width: 1440px) {
|
||||
.VPDoc:not(.has-sidebar) .container[data-v-10119189] {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.VPDoc.has-aside .content-container[data-v-10119189] {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
--vp-layout-max-width: 100%;
|
||||
}
|
||||
11
docs/.vitepress/theme/index.ts
Normal file
11
docs/.vitepress/theme/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import DefaultTheme from 'vitepress/theme';
|
||||
import Mermaid from 'vitepress-plugin-mermaid/Mermaid.vue';
|
||||
import './custom.css';
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
enhanceApp({ app }) {
|
||||
// register global components
|
||||
app.component('Mermaid', Mermaid);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user