Skip to content

Commit 7400130

Browse files
committed
feat: update deployment workflow to use Pandoc for site generation
1 parent 7e8cf94 commit 7400130

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/deploy-mkdocs.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ jobs:
1414
with:
1515
python-version: '3.x'
1616
- name: Install dependencies
17-
run: pip install mkdocs mkdocs-material
17+
run: sudo apt install pandoc
1818
- name: Build site
19-
run: mkdocs build --site-dir site
19+
run: |
20+
for f in docs/*.md; do
21+
filename=$(basename "$f" .md)
22+
pandoc "$f" -s -o "site/${filename}.html"
23+
done
24+
- name: Fix references from .md to .html
25+
run: |
26+
find site -type f -name "*.html" -exec sed -i 's/\.md"/.html"/g' {} +
2027
- name: Deploy to GitHub Pages
2128
uses: peaceiris/actions-gh-pages@v3
2229
with:

0 commit comments

Comments
 (0)