summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-02-28 08:58:58 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-03-01 10:35:20 -0800
commit4897a3ac2ed3b5fc0c7547dd2419261e06e2d956 (patch)
treebe5fa186fa0431cc14dfb3430187d4a985dd2d1c /docs
parent6dd7e001ff256042e3ef625eff8a919eaa10b13f (diff)
docs: sort modes in generate_commands
otherwise the output is non-deterministic and the order will change with different versions of python.
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/source/generate_commands.py2
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')