This repository was archived by the owner on Mar 4, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +126
-0
lines changed
Expand file tree Collapse file tree 8 files changed +126
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & publish docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ build :
11+ name : Build
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : ⬇ Checkout
15+ uses : actions/checkout@v3
16+
17+ - name : 🐍 Set up Python 3.11
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : " 3.11"
21+
22+ - name : 🐍 Preinstall some build dependencies
23+ run : |
24+ pip install --upgrade pip
25+ pip install -r requirements-docs.txt
26+
27+ - name : 🏗 Build docs
28+ run : |
29+ mkdocs build
30+ env :
31+ SITE_URL : https://octoprint.github.io/mkdocs-site-urls/
32+
33+ - name : ⬆ Upload pages artifact
34+ uses : actions/upload-pages-artifact@v1
35+ with :
36+ path : ./site
37+
38+ deploy :
39+ name : Deploy
40+ runs-on : ubuntu-latest
41+ needs : build
42+
43+ environment :
44+ name : github-pages
45+ url : ${{ steps.deployment.outputs.page_url }}
46+
47+ steps :
48+ - name : 🚀 Deploy to GitHub Pages
49+ id : deployment
50+ uses : actions/deploy-pages@v1
Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ __pycache__
66* .pyc
77* .pyo
88* .pyd
9+ venv
10+ site
Original file line number Diff line number Diff line change 1+ # Example
2+
3+ !!! example
4+
5+ === "Markdown"
6+
7+ ```
8+ [link to README](site:.)
9+
10+ 
11+
12+ <object data="site:assets/example.pdf"></object>
13+ ```
14+
15+ === "Output"
16+
17+ [link to README](site:.)
18+
19+ 
20+
21+ <object data="site:assets/example.pdf"></object>
Original file line number Diff line number Diff line change 1+ {%
2+ include-markdown "../README.md"
3+ %}
Original file line number Diff line number Diff line change 1+ site_name : MkDocs Site URLs Plugin
2+ site_url : !ENV [SITE_URL, "http://127.0.0.1:8000"]
3+ dev_addr : 127.0.0.1:8000
4+ repo_name : OctoPrint/mkdocs-site-urls
5+ repo_url : https://github.com/OctoPrint/mkdocs-site-urls
6+
7+ nav :
8+ - README : index.md
9+ - Examples : example/index.md
10+
11+ theme :
12+ name : material
13+ palette :
14+ # Palette toggle for light mode
15+ - scheme : default
16+ toggle :
17+ icon : material/brightness-7
18+ name : Switch to dark mode
19+
20+ # Palette toggle for dark mode
21+ - scheme : slate
22+ toggle :
23+ icon : material/brightness-4
24+ name : Switch to light mode
25+
26+ plugins :
27+ - include-markdown
28+ - search
29+ - site-urls :
30+ attributes :
31+ - src
32+ - href
33+ - data
34+ - data-src
35+
36+ markdown_extensions :
37+ - admonition
38+ - pymdownx.details
39+ - pymdownx.superfences
40+ - pymdownx.tabbed :
41+ alternate_style : true
42+
43+ watch :
44+ - docs
45+ - mkdocs.yml
46+ - README.md
Original file line number Diff line number Diff line change 1+ mkdocs>=1.5.0
2+ mkdocs-material
3+ mkdocs-include-markdown-plugin
4+ -e .
You can’t perform that action at this time.
0 commit comments