Git page with mkdocs-material
You are viewing a demo of this repository:
https://github.com/vpnry/mkdocs-template
mkdocs-material
Ctrl+Shift+M+K+D+O+C+S
Auto deploy to gh-pages branch with Github Action
References:
-
For full documentation visit mkdocs.org.
-
mkdocs-material https://squidfunk.github.io/mkdocs-material/
Create and add this code snippet to YOU RPROJECT DIR/.github/workflows/main.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Remember to enable Github page for your project and choose gh-pages branch.
Your Github page will be something like:
https://your_github_username.github.io/project
Like the one you are viewing now:
https://vpnry.github.io/mkdocs-template
Code highlight with pymdownx
- Javascript highlight line number 3 only
1 2 3 4 5 |
|
- Python and highlight ranges, line: 1-2 5-6
1 2 3 4 5 6 |
|
- keyboard keys
Ctrl+Alt+Shift+Del
- mermaid graph
You ned to enable mermaid first in mkdocs.yml
1 2 3 4 |
|
1 2 3 4 5 |
|