From 51fabf26040207095497de168c923e6c3da9e029 Mon Sep 17 00:00:00 2001 From: Kirsty Bayliss Date: Tue, 20 Jan 2026 11:29:03 +0100 Subject: [PATCH 1/4] fixing autodoc import warnings --- docsrc/conf.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docsrc/conf.py b/docsrc/conf.py index 8456827b6..ad070a90a 100644 --- a/docsrc/conf.py +++ b/docsrc/conf.py @@ -12,15 +12,15 @@ # 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 os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +import os +import sys +sys.path.insert(0, os.path.abspath(os.path.join('..', 'openquake'))) # -- Project information ----------------------------------------------------- project = 'OpenQuake Model Building Toolkit Suite' -copyright = '2020-2022, GEM Hazard' +copyright = '2020-2026, GEM Hazard' author = 'GEM Hazard' # The short X.Y version @@ -66,7 +66,7 @@ # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. From 2ca325295ae53be7eee73e4ec1022b163d05bec9 Mon Sep 17 00:00:00 2001 From: Kirsty Bayliss Date: Tue, 20 Jan 2026 11:32:32 +0100 Subject: [PATCH 2/4] tidying --- docsrc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsrc/conf.py b/docsrc/conf.py index ad070a90a..482cea67a 100644 --- a/docsrc/conf.py +++ b/docsrc/conf.py @@ -15,7 +15,7 @@ import os import sys -sys.path.insert(0, os.path.abspath(os.path.join('..', 'openquake'))) +sys.path.insert(0, os.path.abspath(os.path.join('..'))) # -- Project information ----------------------------------------------------- From 7c774415eb043f4b74f29de1605324e691d7255a Mon Sep 17 00:00:00 2001 From: Kirsty Bayliss Date: Tue, 20 Jan 2026 11:58:27 +0100 Subject: [PATCH 3/4] fixing path --- docsrc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsrc/conf.py b/docsrc/conf.py index 482cea67a..ad070a90a 100644 --- a/docsrc/conf.py +++ b/docsrc/conf.py @@ -15,7 +15,7 @@ import os import sys -sys.path.insert(0, os.path.abspath(os.path.join('..'))) +sys.path.insert(0, os.path.abspath(os.path.join('..', 'openquake'))) # -- Project information ----------------------------------------------------- From a110421407db2433778fa1173e09a8d678fc5b27 Mon Sep 17 00:00:00 2001 From: Kirsty Bayliss Date: Wed, 21 Jan 2026 12:23:02 +0100 Subject: [PATCH 4/4] adding imports --- docsrc/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docsrc/conf.py b/docsrc/conf.py index ad070a90a..df9c2c70b 100644 --- a/docsrc/conf.py +++ b/docsrc/conf.py @@ -15,7 +15,9 @@ import os import sys -sys.path.insert(0, os.path.abspath(os.path.join('..', 'openquake'))) +sys.path.insert(0, os.path.abspath('..')) + +from openquake import cat, wkf, mbt, mbi, aft, fnm, ghm, man # -- Project information -----------------------------------------------------