Skip to content

Commit

Permalink
馃悰 FIX: Docs build on RTD (#39)
Browse files Browse the repository at this point in the history
RTD does not call `reentry scan`,
so we call it programatically in the conf.py
  • Loading branch information
chrisjsewell committed Jan 18, 2022
1 parent 4e0ee79 commit fa11840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
run: |
pip install --upgrade pip
pip install -e .[docs]
reentry scan -r aiida
- name: Build docs
run: cd docs && make

Expand Down
5 changes: 5 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@
import sys
import time

from reentry import manager

from aiida.manage.configuration import load_documentation_profile

import aiida_diff

# -- AiiDA-related setup --------------------------------------------------

# ensure all entry-point plugins are lodaed
manager.scan()

# Load the dummy profile even if we are running locally, this way the documentation will succeed even if the current
# default profile of the AiiDA installation does not use a Django backend.
load_documentation_profile()
Expand Down

0 comments on commit fa11840

Please sign in to comment.