Skip to content

Commit

Permalink
(meta) Use the mermaid from Just the Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 19, 2023
1 parent 5d1f15a commit 99537e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ group :jekyll_plugins do
end
gem "just-the-docs", "0.7.0"
gem 'jekyll-multiple-languages-plugin'
gem "jekyll-mermaid"
6 changes: 2 additions & 4 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GEM
eventmachine (1.2.7)
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (3.25.0-x86_64-linux)
google-protobuf (3.25.1-x86_64-linux)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
Expand All @@ -33,7 +33,6 @@ GEM
webrick (~> 1.7)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-mermaid (1.0.0)
jekyll-multiple-languages-plugin (1.8.0)
jekyll (>= 2.0, < 5.0)
jekyll-sass-converter (3.0.0)
Expand All @@ -58,7 +57,7 @@ GEM
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.3)
public_suffix (5.0.4)
rake (13.1.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
Expand All @@ -78,7 +77,6 @@ PLATFORMS

DEPENDENCIES
jekyll
jekyll-mermaid
jekyll-multiple-languages-plugin
just-the-docs (= 0.7.0)

Expand Down
3 changes: 1 addition & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ github_username: ahyangyi
theme: just-the-docs
plugins:
- jekyll-multiple-languages-plugin
- jekyll-mermaid
mermaid:
src: 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.min.js'
version: 10.6.1
languages: ["en-GB", "zh-CN"]
exclude_from_localizations: ["js", "imgs", "css"]
markdown: kramdown
Expand Down
4 changes: 2 additions & 2 deletions industry/docgen/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def gen_economy_doc(all_economies, string_manager):
f"""{header}
---
# Flowchart
{{% mermaid %}}
```mermaid
flowchart LR;""",
file=f,
)
Expand Down Expand Up @@ -63,7 +63,7 @@ def gen_economy_doc(all_economies, string_manager):

# Industries
print(
f"""{{% endmermaid %}}
f"""```
# Industries
Expand Down

0 comments on commit 99537e6

Please sign in to comment.