Commit Graph

9 Commits

Author SHA1 Message Date
Matt Mackall
d5c6f31ce5 doc: handle shortened command synopses 2008-11-14 14:12:16 -06:00
Martin Geisler
090a14a77f i18n: use gettext instead of _
Both gettext and _ trigger a translation at runtime, but _ can only be
used with a string argument since it also triggers string extraction.
2008-09-09 21:32:39 +02:00
Martin Geisler
66070424fd restructure helptable
When looking up a help topic, the key is now only matched against the
short names for each topic, and not the header. So

  hg help 'Environment Variables'

must be replaced with

  hg help env
2008-09-09 21:32:39 +02:00
Johannes Stezenbach
2a7f0686c0 help: helptable is an ordered collection
The helptable is used for helptopics listed in the manual
page, so the order of topics should not be random.
Convert it from a dictionary into a tuple of tuples.
Also reorder helptable entries to keep previous manual
page order.
2008-06-03 21:03:51 +02:00
Adrian Buehlmann
855a483848 gendoc: add anchors for commands
Enables links into hg.1.html of the form: hg.1.html#command
2008-04-23 19:40:15 +02:00
Christian Ebert
3247bd3127 gendoc: fix indentation 2008-04-06 13:13:31 +02:00
Matt Mackall
73411dd185 gendoc: use demandimport 2007-08-20 21:10:45 -05:00
Matt Mackall
027172c8e1 Generate docs for help topics 2006-12-05 16:28:59 -06:00
Benoit Boissinot
f1aae6bd52 generate hg manpage from commands.py docstring
gendoc.py is a script generating a part of the manpage (the commands
help and options) from the docstring in commands.py.
It avoids duplicating the doc between the doc/ directory and the docstrings.
To generate the manpage, 'make doc' will create all the necessary intermediate
files.
2006-02-28 00:48:49 +01:00