Add mermaid to docs (#5405)

* move devcontainer docs

* rename bare metal pages

* fix backlinks

* Add getting started for devs

* add mermaid

* include contrib in docs

* use another plugin

* include everything

* update doc checks

* fix install command

* Update mkdocs.yml

* Update mkdocs.yml

* Update starting.md

* Update starting.md

* Update starting.md

* extend requirements

* Update mkdocs.yml

* clean diff

* clean diff + check if it works

* fix CI check for custom tags

* clean md
This commit is contained in:
Matthias Mair 2024-02-05 10:40:38 +00:00 committed by GitHub
parent fc86064bd1
commit 4869d0dab8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 4 deletions

View File

@ -105,6 +105,7 @@ jobs:
- name: Check Config
run: |
pip install pyyaml
pip install -r docs/requirements.txt
python docs/ci/check_mkdocs_config.py
- name: Check Links
run: |

View File

@ -11,6 +11,6 @@ tld = os.path.abspath(os.path.join(here, '..'))
config_file = os.path.join(tld, 'mkdocs.yml')
with open(config_file, 'r') as f:
data = yaml.safe_load(f)
data = yaml.load(f, yaml.BaseLoader)
assert data['strict'] is True
assert data['strict'] == 'true'

View File

@ -240,7 +240,11 @@ markdown_extensions:
- meta
- pymdownx.details
- pymdownx.highlight
- pymdownx.superfences
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
# - pymdownx.emoji:
# emoji_index: !!python/name:materialx.emoji.twemoji
# emoji_generator: !!python/name:materialx.emoji.to_svg

View File

@ -1,4 +1,4 @@
mkdocs==1.4.3
mkdocs==1.5.3
mkdocs-macros-plugin>=0.7,<1.0
mkdocs-material>=9.0,<10.0
mkdocs-git-revision-date-localized-plugin>=1.1,<2.0