From acf5e35ecb9da2da030f030e3f7c0ea418216366 Mon Sep 17 00:00:00 2001 From: bastonero Date: Mon, 12 Feb 2024 10:20:42 +0000 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 2d32557..720f73f 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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'