forked from GitbookIO/integrations
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitbook-manifest.yaml
30 lines (24 loc) · 1.28 KB
/
gitbook-manifest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: mermaid
title: Mermaid
icon: ./assets/icon.png
previewImages:
- ./assets/mermaid-preview.png
description: Build diagrams and visualizations using Markdown-inspired text definitions and code.
summary: |
# Overview
Mermaid lets you create diagrams and visualizations using text and code. If you are familiar with Markdown you should have no problem learning [Mermaid's Syntax](https://mermaid-js.github.io/mermaid/#/./n00b-syntaxReference).
# How it works
Once the integration is installed, insert the Mermaid block into any page. You can edit the code content and preview how it looks using the live editor.
When using the GitHub or GitLab integrations, all code blocks with the mermaid syntax will be replaced by diagram. All diagrams inserted from the editor will be formatted as such code blocks in Markdown.
# Configure
You can install the integration on the single space by clicking on the Integrations button in the sub-space navigation, or on multiple spaces by navigating to the organization settings.
visibility: public
script: ./src/index.tsx
scopes: []
blocks:
- id: diagram
title: Mermaid diagram
description: Diagram by writing code with Markdown inspired text definitions.
markdown:
codeblock: mermaid
body: content