From: Marc-André Lureau Date: Fri, 8 Oct 2021 21:57:51 +0000 (+0400) Subject: docs/sphinx: add templates files to generated depfile X-Git-Tag: v6.2.0-rc0~8^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0dd35c16297a365bc99115284ab3e77da9986368;p=thirdparty%2Fqemu.git docs/sphinx: add templates files to generated depfile Signed-off-by: Marc-André Lureau Reviewed-by: John Snow Reviewed-by: Paolo Bonzini --- diff --git a/docs/conf.py b/docs/conf.py index ff6e92c6e2e..edc2bf8fcba 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -74,7 +74,7 @@ needs_sphinx = '1.6' extensions = ['kerneldoc', 'qmp_lexer', 'hxtool', 'depfile', 'qapidoc'] # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = [os.path.join(qemu_docdir, '_templates')] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: diff --git a/docs/sphinx/depfile.py b/docs/sphinx/depfile.py index 99539adb489..afdcbcec6e7 100644 --- a/docs/sphinx/depfile.py +++ b/docs/sphinx/depfile.py @@ -27,7 +27,7 @@ def get_infiles(env): if mod.__file__: yield mod.__file__ # this is perhaps going to include unused files: - for static_path in env.config.html_static_path: + for static_path in env.config.html_static_path + env.config.templates_path: for path in Path(static_path).rglob('*'): yield str(path)