sapling/doc
FUJIWARA Katsunori 138416bff7 doc: show short description of each commands in generated documents
Before this patch, short description of each commands is not shown in
generated documents (HTML file and UNIX man page). This omitting may
prevent users from understanding about commands.

This patch show it as the 1st paragraph in the help section of each
commands. This style is chosen because:

  - showing it as the section title in "command - short desc" style
    disallows referencing by "#command" in HTML file: in "en" locale,
    hyphen concatenated title is used as the section ID in HTML file
    for this style

  - showing it as the 1st paragraph in "command - short desc" style
    seems to be redundant: "command" appears also just before as the
    section title

  - showing it just after synopsis like "hg help command" seems not to
    be reasonable in UNIX man page

This patch just writes short description ("d['desc'][0]") before "::",
because it should be already "strip()"-ed in "get_desc()", or empty
string for the command without description.
2014-03-11 14:36:40 +09:00
..
check-seclevel.py doc: add the tool to check section marks in help documents 2012-08-13 21:25:48 +09:00
gendoc.py doc: show short description of each commands in generated documents 2014-03-11 14:36:40 +09:00
hgmanpage.py cleanup: drop unused variables and an unused import 2013-07-01 20:48:56 +02:00
Makefile doc: make i18n man and html 2013-07-03 21:50:20 +09:00
README doc/README: simplify instructions 2009-09-03 21:40:45 +02:00
runrst runrst: improve error message when Docutils is missing 2011-10-20 17:47:33 +02:00
style.css codingstyle: remove trailing spaces in various text files 2013-04-17 03:40:18 +02:00

Mercurial's documentation is kept in reStructuredText format, which is
a simple plain text format that's easy to read and edit:

  http://docutils.sourceforge.net/rst.html

It's also convertible to a variety of other formats including standard
UNIX man page format and HTML. You'll need to install Docutils:

  http://docutils.sourceforge.net/

Use the Makefile in this directory to generate the man and HTML pages.