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: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y pandoc \
|
sudo apt-get install -y pandoc \
|
||||||
texlive-latex-recommended \
|
# texlive-latex-recommended \
|
||||||
texlive-fonts-recommended \
|
# texlive-fonts-recommended \
|
||||||
texlive-latex-extra \
|
# texlive-latex-extra \
|
||||||
jq \
|
jq \
|
||||||
curl
|
curl
|
||||||
|
|
||||||
@@ -27,6 +27,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p dist
|
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
|
for doc in cmba-bylaws; do
|
||||||
# Mobile-friendly HTML with TOC + serif styling
|
# Mobile-friendly HTML with TOC + serif styling
|
||||||
@@ -34,12 +38,13 @@ jobs:
|
|||||||
--toc \
|
--toc \
|
||||||
--standalone \
|
--standalone \
|
||||||
--metadata title="CMBA ${doc}" \
|
--metadata title="CMBA ${doc}" \
|
||||||
|
--css assets_tmp/github-markdown.css \
|
||||||
-o "dist/${doc}.html"
|
-o "dist/${doc}.html"
|
||||||
|
|
||||||
# PDF
|
# PDF
|
||||||
pandoc "src/${doc}.md" \
|
# pandoc "src/${doc}.md" \
|
||||||
--metadata title="CMBA ${doc}" \
|
# --metadata title="CMBA ${doc}" \
|
||||||
-o "dist/${doc}.pdf"
|
# -o "dist/${doc}.pdf"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Include source markdown for transparency
|
# Include source markdown for transparency
|
||||||
|
|||||||
Reference in New Issue
Block a user