From 25a5bb49a6069d0e4e1f739bb7a026b72e7e6c74 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 23 Nov 2022 18:00:31 +0100 Subject: [PATCH] Squashed 'src/c-rbtree/' changes from edec411b3c1c..a4144785ab77 a4144785ab77 docs: include ./src in include path efd6619234cd docs: use c-apidocs glob git-subtree-dir: src/c-rbtree git-subtree-split: a4144785ab77ecc0627898c7c60523b2368c6ecb --- src/docs/conf.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/docs/conf.py b/src/docs/conf.py index 4bc8f8612..f804486ce 100644 --- a/src/docs/conf.py +++ b/src/docs/conf.py @@ -30,15 +30,9 @@ extensions = [ # Hawkmoth Options -import pathlib -def _hawkmoth_glob_includes(path, glob): - entries = [] - for entry in pathlib.Path(path).glob(glob): - entries += ["-I" + os.path.abspath(str(entry))] - return entries - cautodoc_clang = capidocs.kerneldoc.hawkmoth_include_args() -cautodoc_clang += _hawkmoth_glob_includes("../../subprojects", "libc*/src") +cautodoc_clang += ["-I" + os.path.abspath("..")] +cautodoc_clang += capidocs.kerneldoc.hawkmoth_glob_includes("../../subprojects", "libc*/src") cautodoc_root = os.path.abspath('..')