From 4d29bdc85ef9f3a26d2adb3455605e1e377b9212 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Mon, 13 Feb 2017 21:53:53 +0100 Subject: [PATCH] make source documentation great again --- docs/source/conf.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index c530c27d5..6916a1551 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -50,12 +50,15 @@ except ImportError: print("WARNING: Unable to import breathe, code documentation won't be generated.") # Where breathe can find the source files +openmw_path = os.path.join(project_root, "apps", "openmw") +openmw_headers = insensitive_glob(os.path.join(openmw_path, "*.hpp")) + \ + insensitive_glob(os.path.join(openmw_path, "mwbase", "*.hpp")) + \ + insensitive_glob(os.path.join(openmw_path, "mwclass", "*.hpp")) + +openmw_headers = [os.path.relpath(x, openmw_path) for x in openmw_headers] + breathe_projects_source = { - "openmw": (os.path.join(project_root, "apps", "openmw"), - insensitive_glob(os.path.join(project_root, "apps", "openmw", "*.hpp")) + - insensitive_glob(os.path.join(project_root, "apps", "openmw", "mwbase", "*.hpp")) + - insensitive_glob(os.path.join(project_root, "apps", "openmw", "mwclass", "*.hpp")) - ) + "openmw": (openmw_path, openmw_headers) } # Add any paths that contain templates here, relative to this directory.