Skip to content

Commit

Permalink
docs: enable mermaid code fences
Browse files Browse the repository at this point in the history
  • Loading branch information
yajo committed Apr 20, 2021
1 parent 8dd9a1b commit 054b962
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 2 additions & 5 deletions docs/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ copier --force --data updated_question="my new answer" update

To understand how the updating process works, take a look at this diagram:

<!-- prettier-ignore-start -->
<div class="mermaid">
```mermaid
graph TD
%% nodes ----------------------------------------------------------
Expand Down Expand Up @@ -122,9 +121,7 @@ diff("diff")
%% style ----------------------------------------------------------
classDef grey fill:#e8e8e8;
class compare,update,apply grey;
</div>

<!-- prettier-ignore-end -->
```

As you can see here, `copier` does several things:

Expand Down
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ markdown_extensions:
- admonition
- codehilite:
guess_lang: false
- pymdownx.superfences
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_div_format
- pymdownx.emoji
- pymdownx.magiclink
- toc:
Expand Down

0 comments on commit 054b962

Please sign in to comment.