Skip to content

Commit ab7959f

Browse files
committed
BUG FIX
1 parent 8900115 commit ab7959f

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

.github/workflows/pages.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
name: Deploy Inception Deck to Pages
1+
name: Build & Deploy MkDocs (Material) to Pages
22
on:
33
push:
44
branches: [main]
5+
56
permissions:
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:

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
# macOS system files
1+
# macOS
22
.DS_Store
3+
4+
# Python / MkDocs
5+
site/

mkdocs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
site_name: SODA Community
2+
theme:
3+
name: material
4+
nav:
5+
- Home: index.md
6+
- Inception Deck: deck.md

0 commit comments

Comments
 (0)