Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build LaTeX docs #47

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,26 @@ jobs:
pushd beaker
curl -o /etc/yum.repos.d/beaker-server.repo https://beaker-project.org/yum/beaker-server-RedHatEnterpriseLinux.repo
yum-builddep beaker.spec -y

# Hacks to get Sphinx LaTeX build working
yum install -y python2-pip texlive texlive-*
pip install sphinx==1.2.0
- name: Build docs
run: |
cd beaker
echo "html_theme_path = ['../../beaker-project.org/sphinx-theme']" >>documentation/conf.py

PYTHONPATH=Common:Server:Client/src python -c '__requires__ = ["CherryPy < 3.0"]; import pkg_resources; execfile("/usr/bin/sphinx-build")' -b html -D html_theme=beaker -A branch_warning="$branch_warning" documentation documentation/_build/html
# Latex documentation is currently unavailable
PYTHONPATH=Common:Server:Client/src python -c '__requires__ = ["CherryPy < 3.0"]; import pkg_resources; execfile("/usr/bin/sphinx-build")' -b latex documentation documentation/_build/latex

make -C documentation/_build/latex all-pdf

mkdir documentation/tree
cp -r documentation/_build/html/* documentation/tree/
cp documentation/_build/latex/*.pdf documentation/tree/

- name: Archive docs
uses: actions/upload-artifact@v3
with:
name: docs
path: beaker/documentation/_build/html/
path: beaker/documentation/tree/
Loading