Skip to content

Commit

Permalink
feat: Adds rendering of argo workflows as mkdocs mermaid diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaskuechler committed Aug 21, 2024
1 parent a6db5c3 commit d05fb73
Show file tree
Hide file tree
Showing 5 changed files with 689 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
cache: pip
cache-dependency-path: requirements-docs.txt
- run: pip install -r requirements-docs.txt
- run: rm -rf docs/workflows && mkdir docs/workflows
- run: python scripts/argo-workflows-to-mkdocs.py argo-workflows docs/workflows
- run: mkdocs build --strict
- uses: actions/upload-pages-artifact@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ venv/
/python/*/dist/
__pycache__
.coverage

# auto-generated argo-workflows docs
# see .github/workflows/mkdocs.yaaml
docs/workflows/
17 changes: 17 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ markdown_extensions:
- attr_list
- def_list
- md_in_html
- pymdownx.caret
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.superfences:
custom_fences:
- name: python
class: python
validator: !!python/name:markdown_exec.validator
format: !!python/name:markdown_exec.formatter
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
Expand All @@ -63,6 +75,7 @@ markdown_extensions:
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.mark
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.tabbed:
Expand All @@ -73,6 +86,9 @@ extra_css:

plugins:
- search
- include_dir_to_nav:
sort_file: true
sort_directory: true

validation:
omitted_files: warn
Expand Down Expand Up @@ -104,3 +120,4 @@ nav:
- user-guide/openstack-cli.md
- user-guide/openstack-image.md
- user-guide/rabbitmq-cheat-sheet.md
- Workflows: workflows/
5 changes: 5 additions & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
mkdocs
mkdocs-material
mkdocs-swagger-ui-tag
mkdocs-glightbox
markdown-exec
mkdocs-multirepo-plugin>=0.8.3
mkdocs-include-dir-to-nav
Loading

0 comments on commit d05fb73

Please sign in to comment.