mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
htmlhelp: pick up all non java script files in _static and its subdirs
"Our" documentation build script copies doxygen generated .html and .gif files into a subdir of _static, which our reST code then links to. This patch allows the nested .gif files to be added to the .hhp project file.
This commit is contained in:
parent
99a545536b
commit
1507169887
@ -200,7 +200,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
|
|||||||
outdir += os.sep
|
outdir += os.sep
|
||||||
olen = len(outdir)
|
olen = len(outdir)
|
||||||
for root, dirs, files in os.walk(outdir):
|
for root, dirs, files in os.walk(outdir):
|
||||||
staticdir = (root == path.join(outdir, '_static'))
|
staticdir = root.startswith(path.join(outdir, '_static'))
|
||||||
for fn in files:
|
for fn in files:
|
||||||
if (staticdir and not fn.endswith('.js')) or \
|
if (staticdir and not fn.endswith('.js')) or \
|
||||||
fn.endswith('.html'):
|
fn.endswith('.html'):
|
||||||
|
Loading…
Reference in New Issue
Block a user