docs: small improvements

This commit is contained in:
Emerson Bottero
2022-10-17 19:32:47 -03:00
parent 0da56a1249
commit c8b377bf74
160 changed files with 1292 additions and 140 deletions

View File

@@ -1,4 +1,4 @@
import { version } from '../../package.json';
import { version } from '../../../package.json';
import MermaidMarkdown from './mermaid-markdown-all';
import { defineConfig } from 'vitepress';
@@ -8,9 +8,12 @@ export default defineConfig({
description: 'Create diagrams and visualizations using text and code.',
base: '/mermaid-docs/',
markdown: MermaidMarkdown,
ignoreDeadLinks: true, //TODO: try to fixe those in autogenerated docs
themeConfig: {
nav: nav(),
editLink: {
pattern: 'https://github.com/mermaid-js/mermaid/edit/develop/docs/:path',
text: 'Edit this page on GitHub',
},
sidebar: {
'/': sidebarAll(),
@@ -53,7 +56,7 @@ function nav() {
},
{
text: '💻 Live Editor',
link: '/edit',
link: 'https://mermaid.live',
},
];
}