From 99537e6bd228f96f7028f2eaec8d9e082483411a Mon Sep 17 00:00:00 2001 From: "Yi Yang @ Anteros" Date: Mon, 20 Nov 2023 04:42:26 +0800 Subject: [PATCH] (meta) Use the mermaid from Just the Docs --- docs/Gemfile | 1 - docs/Gemfile.lock | 6 ++---- docs/_config.yml | 3 +-- industry/docgen/economy.py | 4 ++-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/Gemfile b/docs/Gemfile index 9a344a02..6c671ad0 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -4,4 +4,3 @@ group :jekyll_plugins do end gem "just-the-docs", "0.7.0" gem 'jekyll-multiple-languages-plugin' -gem "jekyll-mermaid" diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 3aa4b0bb..d6c08aa2 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -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) @@ -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) @@ -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) @@ -78,7 +77,6 @@ PLATFORMS DEPENDENCIES jekyll - jekyll-mermaid jekyll-multiple-languages-plugin just-the-docs (= 0.7.0) diff --git a/docs/_config.yml b/docs/_config.yml index eb7c91c6..072426cc 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -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 diff --git a/industry/docgen/economy.py b/industry/docgen/economy.py index 4b2bb7c3..cde647eb 100644 --- a/industry/docgen/economy.py +++ b/industry/docgen/economy.py @@ -35,7 +35,7 @@ def gen_economy_doc(all_economies, string_manager): f"""{header} --- # Flowchart -{{% mermaid %}} +```mermaid flowchart LR;""", file=f, ) @@ -63,7 +63,7 @@ def gen_economy_doc(all_economies, string_manager): # Industries print( - f"""{{% endmermaid %}} + f"""``` # Industries