Skip to content

ci: install pandoc explicitly in docs workflow #2

ci: install pandoc explicitly in docs workflow

ci: install pandoc explicitly in docs workflow #2

Workflow file for this run

name: Docs
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python dependencies
run: pip install -r docs/requirements.txt
- name: Install pandoc and LaTeX (for PDF generation)
run: |
sudo apt-get update -q
sudo apt-get install -y \
pandoc \
texlive-xetex \
texlive-fonts-recommended \
texlive-latex-extra
- name: Build whitepaper PDF
run: |
mkdir -p docs/_static
pandoc docs/ml_hpi_whitepaper.md \
-o docs/_static/ml_hpi_whitepaper.pdf \
--pdf-engine=xelatex \
-V geometry:margin=1in \
-V fontsize=11pt \
-V colorlinks=true
- name: Build HTML docs
run: sphinx-build -b html docs docs/_build/html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html