3 Commits

Author SHA1 Message Date
Tony
a2d3fad8df try embed css in html
All checks were successful
Build and publish CMBA rulebooks (Gitea) / build-release (push) Successful in 10s
2026-01-14 10:36:57 -06:00
Tony
3db8d566e6 update dependencies
All checks were successful
Build and publish CMBA rulebooks (Gitea) / build-release (push) Successful in 10s
2026-01-14 10:29:08 -06:00
Tony
79ebe28ecc add github css
Some checks failed
Build and publish CMBA rulebooks (Gitea) / build-release (push) Failing after 10s
2026-01-14 10:27:19 -06:00

View File

@@ -16,10 +16,12 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
# texlive-latex-recommended \
# texlive-fonts-recommended \
# texlive-latex-extra \
sudo apt-get install -y pandoc \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-latex-extra \
jq \
curl
@@ -27,19 +29,25 @@ jobs:
run: |
set -euo pipefail
mkdir -p dist
mkdir -p assets_tmp
curl -fsSL \
-o ./assets_tmp/github-markdown.css \
https://raw.githubusercontent.com/sindresorhus/github-markdown-css/main/github-markdown.css
for doc in cmba-bylaws; do
# Mobile-friendly HTML with TOC + serif styling
pandoc "src/${doc}.md" \
--toc \
--standalone \
--embed-resources \
--metadata title="CMBA ${doc}" \
--css ./assets_tmp/github-markdown.css \
-o "dist/${doc}.html"
# PDF
pandoc "src/${doc}.md" \
--metadata title="CMBA ${doc}" \
-o "dist/${doc}.pdf"
# pandoc "src/${doc}.md" \
# --metadata title="CMBA ${doc}" \
# -o "dist/${doc}.pdf"
done
# Include source markdown for transparency