From 3515b2e532e7f98ad7d58a87b34eeb7e636de5df Mon Sep 17 00:00:00 2001 From: Sebastiaan Huber Date: Fri, 22 Dec 2023 15:31:20 +0100 Subject: [PATCH] Docs: Remove `aiida.manage.configuration.load_documentation_profile` 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. --- docs/source/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 565ea406a..02fe239f6 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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.