diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-05-21 21:51:30 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-05-23 22:26:21 +0100 |
commit | 087e1a35de70a2d92650c0f326785466667d7019 (patch) | |
tree | f59481959984ade2db107e1475970a156616e644 /docs | |
parent | 69c555e00323a12eb4a9c204e0446b9842507ff2 (diff) |
docs generate_commands.py
.. from now on generates *only* the command-sections
in usage/modes/* not commands.rst.
also, this update brings sphinx labels cmd_MODE_CMDNAME
to use throughout the manual source
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/source/generate_commands.py | 16 | ||||
-rw-r--r-- | docs/source/usage/commands.rst | 2 |
2 files changed, 2 insertions, 16 deletions
diff --git a/docs/source/generate_commands.py b/docs/source/generate_commands.py index 9179b952..5e5a40e3 100755 --- a/docs/source/generate_commands.py +++ b/docs/source/generate_commands.py @@ -125,19 +125,7 @@ if __name__ == "__main__": modefile.write('The following commands are available globally\n\n') for cmdstring,struct in modecommands.items(): cls, parser, forced_args = struct + labelline = '.. _cmd_%s_%s:\n' % (mode, cmdstring) + modefile.write(labelline) modefile.write(rstify_parser(parser)) modefile.close() - indexfile = open(os.path.join(HERE, 'usage', 'commands.rst'), 'w') - - mode_docstrings = get_mode_docs() - tbl = ':doc:`modes/global`\n' - tbl += (' ' * 4) + 'globally available commands\n' - for m in modes: - tbl += ':doc:`modes/%s`\n' % m - tbl += (' ' * 4) + mode_docstrings[m] + '\n' - - includes = '\n'.join([':doc:`modes/%s`' % m for m in modes]) - indexfile.write('Commands\n========\n\n') - indexfile.write('\n\n') - indexfile.write(tbl) - indexfile.close() diff --git a/docs/source/usage/commands.rst b/docs/source/usage/commands.rst index 8608bc50..bc93ac1a 100644 --- a/docs/source/usage/commands.rst +++ b/docs/source/usage/commands.rst @@ -1,8 +1,6 @@ Commands ======== - - :doc:`modes/global` globally available commands :doc:`modes/search` |