2.9 KiB
Warning
THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
Please edit the corresponding file in /packages/mermaid/src/docs/community/documentation.md.
Contributing Documentation
If it is not in the documentation, it's like it never happened. Wouldn't that be sad? With all the effort that was put into the feature?
Where is the Documentation Located?
Warning
DO NOT CHANGE FILES IN
/docs
The
docs
folder will be automatically generated when committing topackages/mermaid/src/docs
and should not be edited manually.
Documentation is located in the packages/mermaid/src/docs
folder. Just pick the right section and start typing.
The contents of mermaid.js.org are based on the docs from the master
branch. Updates committed to the master
branch are reflected in the Mermaid Docs once published.
flowchart LR
classDef default fill:#fff,color:black,stroke:black
source["Edit /packages/mermaid/src/docs"] -- automatic processing--> published["View /docs which will be publised on Official Website"]
flowchart LR
classDef default fill:#fff,color:black,stroke:black
source["Edit /packages/mermaid/src/docs"] -- automatic processing--> published["View /docs which will be publised on Official Website"]
Enable Github Actions
Warning
So as to allow automatic compilation of documentation pages you have to enable github actions on your fork first
Running the Documentation Website Locally
The mermaid documentation site is powered by Vitepress.
Start development server for the documentation site
Host
pnpm --filter mermaid run docs:dev
or
cd packages/mermaid
pnpm docs:dev
Docker
./run docs:dev
Open http://localhost:3333/ in your browser.
Format
The documentation is written in Markdown. To get acquainted with its syntax see the GitHub Markdown help page.
You can use note
, tip
, warning
and danger
in triple backticks to add a note, tip, warning or danger box.
‼️ Danger Do not use vitepress specific markdown syntax
::: warning
as it will not be processed correctly.
```note
This is a note
```
```tip
This is a tip
```
```warning
This is a warning
```
```danger
This is a danger alert
```
Navigation
If you want to propose changes to how the documentation is organized, such as adding a new section or re-arranging or renaming a section, you must update the sidebar navigation.
The sidebar navigation is defined in the vitepress configuration file config.ts.