Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update navbar #3906

Merged
merged 3 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed docs/book/class.png
Binary file not shown.
Binary file removed docs/book/cover.jpg
Binary file not shown.
Binary file removed docs/book/er.png
Binary file not shown.
Binary file removed docs/book/flowchart.png
Binary file not shown.
Binary file removed docs/book/gantt.png
Binary file not shown.
340 changes: 0 additions & 340 deletions docs/book/index.html

This file was deleted.

Binary file removed docs/book/sequence-diagram.png
Binary file not shown.
Binary file removed docs/book/state.png
Binary file not shown.
19 changes: 8 additions & 11 deletions packages/mermaid/src/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,25 @@ export default defineConfig({
pattern: 'https://github.com/mermaid-js/mermaid/edit/develop/packages/mermaid/src/docs/:path',
text: 'Edit this page on GitHub',
},

sidebar: {
'/': sidebarAll(),
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/mermaid-js/mermaid' },
{ icon: 'slack', link: 'https://mermaid-talk.slack.com' },
],
},
});

function nav() {
return [
{ text: 'Intro', link: '/intro/', activeMatch: '/intro/' },
{ text: 'Docs', link: '/intro/', activeMatch: '/intro/' },
{
text: 'Configuration',
link: '/config/configuration',
text: 'Tutorials',
link: '/config/Tutorials',
activeMatch: '/config/',
},
{ text: 'Syntax', link: '/syntax/classDiagram', activeMatch: '/syntax/' },
{ text: 'Misc', link: '/misc/integrations', activeMatch: '/misc/' },
{
text: 'Community',
link: '/community/n00b-overview',
activeMatch: '/community/',
},
{ text: 'Integrations', link: '/misc/integrations', activeMatch: '/misc/' },
{
text: version,
items: [
Expand Down