Skip to content

Commit

Permalink
Added support for Mermaid diagramming library and gave one simple exa…
Browse files Browse the repository at this point in the history
…mple of using it
  • Loading branch information
tleonhardt committed Dec 23, 2024
1 parent 94e2495 commit 8020699
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
37 changes: 17 additions & 20 deletions docs/features/scripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,23 @@ If the cmd2 application follows the [unix_design_philosophy](https://en.wikipedi

The following diagram illustrates the different boundaries to keep in mind.

+---------------------------------------------+
| |
| Py scripts |
| |
| +-----------------------------------------+ |
| | CMD2 Application | |
| | | |
| | +-------------------------------------+ | |
| | | Class Library | | |
| | | +------+ +------+ +------+ +------+ | | |
| | | | | | | | | | | | | |
| | | | C | | C | | C | | C | | | |
| | | | | | | | | | | | | |
| | | +------+ +------+ +------+ +------+ | | |
| | | | | |
| | +-------------------------------------+ | |
| | | |
| +-----------------------------------------+ |
| |
+---------------------------------------------+
```mermaid
flowchart LR
subgraph Py scripts
direction TB
subgraph cmd2 Application
direction TB
subgraph Class Library
direction TB
class1
class2
class3
class4
end
end
end

```

!!! note

Expand Down
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ markdown_extensions:
- pymdownx.keys
- pymdownx.smartsymbols
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true

Expand Down Expand Up @@ -210,7 +214,7 @@ nav:
- Meta:
- doc_conventions.md

# Include extra CSS to make some style adjustments
# Include extra CSS to make some style adjustments for ReadTheDocs
extra_css:
- stylesheets/readthedocs.css

Expand Down

0 comments on commit 8020699

Please sign in to comment.