Merge pull request #4838 from bmwiedemann/hhp

Sort .hhp file list
This commit is contained in:
Takeshi KOMIYA 2018-04-15 13:36:38 +09:00 committed by GitHub
commit 4a3b4a90da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,6 +247,8 @@ 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):
dirs.sort()
files.sort()
staticdir = root.startswith(path.join(outdir, '_static')) staticdir = root.startswith(path.join(outdir, '_static'))
for fn in sorted(files): for fn in sorted(files):
if (staticdir and not fn.endswith('.js')) or \ if (staticdir and not fn.endswith('.js')) or \