add github css
Some checks failed
Build and publish CMBA rulebooks (Gitea) / build-release (push) Failing after 8s
Some checks failed
Build and publish CMBA rulebooks (Gitea) / build-release (push) Failing after 8s
This commit is contained in:
17
.github/workflows/release-docs.yml
vendored
17
.github/workflows/release-docs.yml
vendored
@@ -17,9 +17,9 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y pandoc \
|
||||
texlive-latex-recommended \
|
||||
texlive-fonts-recommended \
|
||||
texlive-latex-extra \
|
||||
# texlive-latex-recommended \
|
||||
# texlive-fonts-recommended \
|
||||
# texlive-latex-extra \
|
||||
jq \
|
||||
curl
|
||||
|
||||
@@ -27,6 +27,10 @@ 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
|
||||
@@ -34,12 +38,13 @@ jobs:
|
||||
--toc \
|
||||
--standalone \
|
||||
--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
|
||||
|
||||
Reference in New Issue
Block a user