Skip to content

Commit

Permalink
Docs: Remove aiida.manage.configuration.load_documentation_profile (#…
Browse files Browse the repository at this point in the history
…1000)

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
sphuber authored Dec 22, 2023
1 parent f133b9a commit f1d547c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
import pathlib
import time

from aiida.manage.configuration import load_documentation_profile
from aiida.manage.configuration import Profile, load_profile

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

load_documentation_profile()
# 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.
Expand Down

0 comments on commit f1d547c

Please sign in to comment.