forked from orzih/mkdocs-with-pdf
-
Notifications
You must be signed in to change notification settings - Fork 22
feat: add diagram examples #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
domWalters
wants to merge
7
commits into
develop
Choose a base branch
from
diagram-examples
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7c3511f
fix: source local environment before `uv` commands
domWalters 6b7915e
feat: add `mermaid` examples with `markdown-kroki`, do pre-commit update
domWalters 0ac24bf
fix: add hkato to documentation copyright footer
domWalters f4f900d
Merge branch 'develop' into diagram-examples
domWalters f8bc0f9
docs: integrate markdown-kroki docs for diagrams into our docs
domWalters 70da9d3
chore: update pre-commit hook versions
domWalters 37bdf79
draft: try get a docker working
domWalters File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| __pycache__/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.9 | ||
| 3.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| FROM python:3.10-alpine | ||
|
|
||
| ENV PYTHONUNBUFFERED 1 | ||
|
|
||
| RUN \ | ||
| apk update \ | ||
| && apk add --update --upgrade --no-cache \ | ||
| cairo-dev fontconfig font-noto g++ gcc gdk-pixbuf-dev libsass make \ | ||
| musl-dev pango-dev podman-compose uv \ | ||
| && fc-cache -f | ||
|
|
||
| RUN \ | ||
| addgroup -g 1000 -S mkdocs \ | ||
| && adduser -u 1000 -S mkdocs -G mkdocs | ||
| USER mkdocs | ||
|
|
||
| WORKDIR /mkdocs | ||
| COPY --chown=mkdocs:mkdocs pyproject.toml . | ||
| COPY --chown=mkdocs:mkdocs Makefile . | ||
|
|
||
| RUN touch README.md && make sync | ||
|
|
||
| COPY --chown=mkdocs:mkdocs custom_style_src ./custom_style_src | ||
| COPY --chown=mkdocs:mkdocs docs ./docs | ||
| COPY --chown=mkdocs:mkdocs src ./src | ||
| COPY --chown=mkdocs:mkdocs CHANGELOG . | ||
| COPY --chown=mkdocs:mkdocs LICENSE . | ||
| COPY --chown=mkdocs:mkdocs docker-compose.yml . | ||
| COPY --chown=mkdocs:mkdocs mkdocs.yml . | ||
|
|
||
| RUN ls && make docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| services: | ||
| kroki: | ||
| image: yuzutech/kroki | ||
| depends_on: | ||
| - excalidraw | ||
| - mermaid | ||
| environment: | ||
| - KROKI_MERMAID_HOST=mermaid | ||
| - KROKI_EXCALIDRAW_HOST=excalidraw | ||
| ports: | ||
| - "8000:8000" | ||
| tmpfs: | ||
| - /tmp:exec | ||
| mermaid: | ||
| image: yuzutech/kroki-mermaid | ||
| expose: | ||
| - "8002" | ||
| excalidraw: | ||
| image: yuzutech/kroki-excalidraw | ||
| expose: | ||
| - "8004" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Diagrams | ||
|
|
||
| These diagrams are generated using the public server for | ||
| [`markdown-kroki`](https://github.com/hkato/markdown-kroki). | ||
|
|
||
| The minimal `pip` dependencies required to get these diagrams are: | ||
|
|
||
| ```bash | ||
| pip install markdown-kroki | ||
| ``` | ||
|
|
||
| The minimal `mkdocs` configuration required to get these diagrams to generate is: | ||
|
|
||
| ```yaml | ||
| markdown_extensions: | ||
| - markdown_kroki | ||
| ``` | ||
|
|
||
| {!submodules/markdown-kroki/docs/diagrams/actdiag.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/blockdiag.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/bytefield.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/c4plantuml.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/d2.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/dbml.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/ditaa.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/erd.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/excalidraw.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/graphviz.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/mermaid.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/nomnoml.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/nwdiag.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/packetdiag.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/pikchr.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/plantuml.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/rackdiag.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/seqdiag.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/structurizr.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/svgbob.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/symbolator.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/tikz.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/vegalite.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/vega.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/wavedrom.md!} | ||
| {!submodules/markdown-kroki/docs/diagrams/wireviz.md!} | ||
|
|
||
| <!--- cspell:ignore actdiag blockdiag bytefield dbml ditaa excalidraw graphviz kroki nomnoml nwdiag packetdiag pikchr rackdiag seqdiag structurizr svgbob symbolator tikz vegalite wavedrom wireviz ---> |
Submodule markdown-kroki
added at
fe92fd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.