sapling/doc
Simon Heimberg ff9aaaba6b doc: gendoc.py creates valid output for option descriptions with newlines
gendoc.py did not handle the hanging indentation for descriptions. Work around
this by joining all in one single line (same as in minirst since previous
patch).

This problem occurred when translations of option lines were very long. Do not
bother the translators with this detail.

On a long option description, the translator continued on a new line as usual.
gendoc.py created invalid rst syntax like this:

-o, --option
    Description line 1
description line 2

The new output is:

-o, --option
    Description line 1 description line 2

The lines could theoretically become very long, but line breaking is handled
when generating the final documentation.
2014-02-20 09:17:22 +01: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: gendoc.py creates valid output for option descriptions with newlines 2014-02-20 09:17:22 +01: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.