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:
Steve Borho 2010-08-19 11:56:44 -05:00
parent 99a545536b
commit 1507169887

View File

@ -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'):