diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-02-28 09:20:27 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-01 10:35:20 -0800 |
commit | 4405696c67ca0f5d6d9249744eb0e34059a6f774 (patch) | |
tree | b63e40749d8946a32a230b2a14ed6cf0aa2c8650 /docs | |
parent | 6017b6fca59efaa0caeaadc275fec08696930ead (diff) |
generate_commands: sort modecommands too
Diffstat (limited to 'docs')
-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 b7ce501b..4ead8c11 100755 --- a/docs/source/generate_commands.py +++ b/docs/source/generate_commands.py @@ -115,7 +115,7 @@ if __name__ == "__main__": header = 'Global Commands' modefile.write('%s\n%s\n' % (header, '-' * len(header))) modefile.write('The following commands are available globally\n\n') - for cmdstring, struct in modecommands.items(): + for cmdstring, struct in sorted(modecommands.items()): cls, parser, forced_args = struct labelline = '.. _cmd.%s.%s:\n\n' % (mode, cmdstring.replace('_', '-')) |