Commit Graph

61 Commits

Author SHA1 Message Date
Cédric Duval
044fa1649f gendoc: fix localization of help topic
When a topic provides a callable method for its text, most likely
this text will be generated from different parts, so it does not
make sense to apply gettext on the whole result, rather the method
should provide translation by itself.

This is the case with the extensions topic, which triggers a double
gettext call, making the ASCII codec fail when it encounters 8 bit
characters, and prevents the documentation from being built.
2009-07-04 12:12:36 +02:00
Ori Avtalion
c9dc788181 gendoc: add missing space in command synopsis 2009-05-22 20:19:22 +02:00
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