Skip to content
Draft
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
43 changes: 43 additions & 0 deletions .github/workflows/build-core-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build Documentation

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

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

- name: Clone aiida-core
run: |
git clone https://github.com/aiidateam/aiida-core.git external/aiida-core

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -e external/aiida-core[docs]

- name: Build aiida-core docs
run: |
cd external/aiida-core
make -C docs html

- name: Copy aiida-core docs
run: |
rm -rf docs/docs-static
cp -r external/aiida-core/docs/build/html docs/docs-static

- name: Build website
run: |
sphinx-build -nW --keep-going -b html docs/ docs/_build/html