File tree Expand file tree Collapse file tree 3 files changed +20
-13
lines changed
Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Inception Deck to Pages
1+ name : Build & Deploy MkDocs (Material) to Pages
22on :
33 push :
44 branches : [main]
5+
56permissions :
67 contents : read
78 pages : write
@@ -12,18 +13,15 @@ jobs:
1213 runs-on : ubuntu-latest
1314 steps :
1415 - uses : actions/checkout@v4
15-
16- # 必要なツールをセットアップ(pandocを使ってMD→HTML変換)
17- - name : Install pandoc
18- run : sudo apt-get update && sudo apt-get install -y pandoc
19-
20- # Markdown を HTML に変換
21- - name : Build site
16+ - uses : actions/setup-python@v5
17+ with :
18+ python-version : ' 3.x'
19+ - name : Install MkDocs + Material
2220 run : |
23- mkdir -p site/deck
24- pandoc README.md -o site/index.html --standalone --metadata title="SODA Community"
25- pandoc deck/index.md -o site/deck/index.html --standalone --metadata title="SODA Inception Deck"
26-
21+ pip install --upgrade pip
22+ pip install mkdocs-material
23+ - name : Build site
24+ run : mkdocs build --site-dir site
2725 - name : Upload artifact
2826 uses : actions/upload-pages-artifact@v3
2927 with :
Original file line number Diff line number Diff line change 1- # macOS system files
1+ # macOS
22.DS_Store
3+
4+ # Python / MkDocs
5+ site /
Original file line number Diff line number Diff line change 1+ site_name : SODA Community
2+ theme :
3+ name : material
4+ nav :
5+ - Home : index.md
6+ - Inception Deck : deck.md
You can’t perform that action at this time.
0 commit comments