summaryrefslogtreecommitdiff
path: root/sphinx/builders/htmlhelp.py
diff options
context:
space:
mode:
authorSteve Borho <steve@borho.org>2010-08-19 11:56:44 -0500
committerSteve Borho <steve@borho.org>2010-08-19 11:56:44 -0500
commiteea97eb04e01db60e54e54f60595da0ddcc6e9a9 (patch)
tree3b6bf891f6b6bdb409020cf2d01399dc7d100b03 /sphinx/builders/htmlhelp.py
parente39404f7a0e21e4d4ee2140edb4bf13f951e310e (diff)
downloadsphinx-eea97eb04e01db60e54e54f60595da0ddcc6e9a9.tar.gz
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.
Diffstat (limited to 'sphinx/builders/htmlhelp.py')
-rw-r--r--sphinx/builders/htmlhelp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/htmlhelp.py b/sphinx/builders/htmlhelp.py
index 538f4c84..848068e5 100644
--- a/sphinx/builders/htmlhelp.py
+++ b/sphinx/builders/htmlhelp.py
@@ -200,7 +200,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
outdir += os.sep
olen = len(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:
if (staticdir and not fn.endswith('.js')) or \
fn.endswith('.html'):