mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 05:20:50 +00:00
docs/sphinx: add templates files to generated depfile
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
905655ea6a
commit
0dd35c1629
@ -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:
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user