mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
commit
b5a84054ea
@ -246,7 +246,7 @@ class HTMLHelpBuilder(StandaloneHTMLBuilder):
|
||||
olen = len(outdir)
|
||||
for root, dirs, files in os.walk(outdir):
|
||||
staticdir = root.startswith(path.join(outdir, '_static'))
|
||||
for fn in files:
|
||||
for fn in sorted(files):
|
||||
if (staticdir and not fn.endswith('.js')) or \
|
||||
fn.endswith('.html'):
|
||||
print(path.join(root, fn)[olen:].replace(os.sep, '\\'),
|
||||
|
@ -188,7 +188,7 @@ class QtHelpBuilder(StandaloneHTMLBuilder):
|
||||
for root, dirs, files in os.walk(outdir):
|
||||
resourcedir = root.startswith(staticdir) or \
|
||||
root.startswith(imagesdir)
|
||||
for fn in files:
|
||||
for fn in sorted(files):
|
||||
if (resourcedir and not fn.endswith('.js')) or \
|
||||
fn.endswith('.html'):
|
||||
filename = path.join(root, fn)[olen:]
|
||||
|
Loading…
Reference in New Issue
Block a user