docs/sphinx: add templates files to generated depfile
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 8 Oct 2021 21:57:51 +0000 (01:57 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 8 Nov 2021 08:27:23 +0000 (12:27 +0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
docs/conf.py
docs/sphinx/depfile.py

index ff6e92c6e2e6bc5c1f05fa18d9f000dd060f25e1..edc2bf8fcba7b6c9a1bb5108f7bb965057cd6c66 100644 (file)
@@ -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:
index 99539adb4892b1124263576a0399c73114942a77..afdcbcec6e76b5be3071046cec6006c795fb4ac2 100644 (file)
@@ -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)