Skip to content

Commit

Permalink
feat: add support for mermaid (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilsan authored Dec 1, 2023
1 parent 8c3e464 commit 5d6a935
Show file tree
Hide file tree
Showing 5 changed files with 1,309 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
- name: Install tools
uses: taiki-e/install-action@v2
with:
mdbook-version: "0.4.35"
tool: mdbook,mdbook-mermaid

- name: Build docs
run: mdbook build
Expand Down
4 changes: 4 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ authors = ["Gear Technologies"]

[output.html]
git-repository-url = "https://github.com/gear-tech/gear-tech.github.io"
additional-js = ["js/mermaid.min.js", "js/mermaid-init.js"]

[preprocessor]
mermaid = { command = "mdbook-mermaid" }
1 change: 1 addition & 0 deletions js/mermaid-init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mermaid.initialize({startOnLoad:true});
1,282 changes: 1,282 additions & 0 deletions js/mermaid.min.js

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/gear-protocol/architechture-overview.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# Architechture overview


```mermaid
flowchart TB
gear-cli-->vara-runtime
vara-runtime-->pallets
subgraph pallets
pallet-gear
pallet-gear-bank
pallet-gear-gas
pallet-gear-messenger
pallet-gear-program
pallet-gear-payment
pallet-gear-scheduler
pallet-gear-staking-rewards
pallet-gear-voucher
end
```

🚧 *To be added soon.*

0 comments on commit 5d6a935

Please sign in to comment.