diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-02-28 08:58:58 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-01 10:35:20 -0800 |
commit | 4897a3ac2ed3b5fc0c7547dd2419261e06e2d956 (patch) | |
tree | be5fa186fa0431cc14dfb3430187d4a985dd2d1c | |
parent | 6dd7e001ff256042e3ef625eff8a919eaa10b13f (diff) |
docs: sort modes in generate_commands
otherwise the output is non-deterministic and the order will change with
different versions of python.
-rwxr-xr-x | docs/source/generate_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/source/generate_commands.py b/docs/source/generate_commands.py index c3db693f..b7ce501b 100755 --- a/docs/source/generate_commands.py +++ b/docs/source/generate_commands.py @@ -100,7 +100,7 @@ def get_mode_docs(): if __name__ == "__main__": modes = [] - for mode, modecommands in COMMANDS.items(): + for mode, modecommands in sorted(COMMANDS.items()): modefilename = mode+'.rst' modefile = open(os.path.join(HERE, 'usage', 'modes', modefilename), 'w') |