Skip to content

Commit

Permalink
Docs: Remove aiida.manage.configuration.load_documentation_profile
Browse files Browse the repository at this point in the history
This was necessary when Django backends were still supported, but since
its removal in AiiDA v2.0 just loading the ORM no longer actually needs
to connect to a database. In principle, the documentation no longer
needs a profile whatsoever, except for `aiida-quantumespresso` the
AutoAPI still needs it because in loading the specifications of certain
`Process` classes, a profile is loaded. So the docs `conf.py` now loads
an empty dummy profile for this purpose.
  • Loading branch information
bastonero committed Feb 12, 2024
1 parent ba9d6cc commit acf5e35
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@
import pathlib
import time

# 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.
from aiida.manage.configuration import load_documentation_profile
from aiida.manage.configuration import Profile, load_profile

load_profile(Profile('docs', {'process_control': {}, 'storage': {}}))

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
import aiida_vibroscopy

load_documentation_profile()

# -- Project information -----------------------------------------------------

project = 'aiida-vibroscopy'
Expand Down

0 comments on commit acf5e35

Please sign in to comment.