Skip to content
Merged
Show file tree
Hide file tree
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
58 changes: 58 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build Documentation

on:
push:
branches:
- master
- release-*
- v*
pull_request:
branches:
- master

jobs:
build-docs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt

- name: Build documentation
run: |
cd docs
make html

- name: Check for build errors
run: |
if [ -d docs/_build/html ]; then
echo "Documentation built successfully"
ls -la docs/_build/html
else
echo "Documentation build failed"
exit 1
fi

- name: Upload documentation artifacts
uses: actions/upload-artifact@v4
with:
name: documentation-html
path: docs/_build/html/
retention-days: 30
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ sphinx_rtd_theme
ipykernel
nbsphinx
pygments>=2.6.1
smurff>=0.17.0<0.18.0
smurff==1.0
9 changes: 7 additions & 2 deletions readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-24.04
tools:
python: "3.12"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
Expand All @@ -19,6 +25,5 @@ formats:

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- requirements: docs/requirements.txt
Loading