Skip to content

Commit

Permalink
docs: Improve pipdeptree/mermaid gallery example
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Apr 17, 2023
1 parent 2d80395 commit 8c3d83a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/gallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ In this example we change the direction of the graph
from top-down to left-right, and remove local version identifiers
from our own package.

```bash exec="1" source="tabbed-right" title="pipdeptree mermaid diagram"
echo '```mermaid'
````md exec="1" source="tabbed-right" title="pipdeptree mermaid diagram"
```bash exec="1" result="mermaid"
pipdeptree -p markdown-exec --mermaid 2>/dev/null |
sed 's/flowchart TD/flowchart LR/' |
sed 's/\.dev.+"\]$/"]/;s/\+d.*"\]$/"]/'
echo '```'
```
````

Another example with more dependencies and top-down direction:

```bash exec="1" source="tabbed-right" title="pipdeptree mermaid diagram"
echo '```mermaid'
````md exec="1" source="tabbed-right" title="pipdeptree mermaid diagram"
```bash exec="1" result="mermaid"
pipdeptree -p mkdocstrings-python --mermaid 2>/dev/null
echo '```'
```
````

## Python modules inter-dependencies

Expand Down

0 comments on commit 8c3d83a

Please sign in to comment.