sphinx/doc/markup
Antoine Beaupré 90f7c7ef3f
add link to manpages in HTML builder
It is useful to have the HTML documentation builder actually link to
real rendered versions of HTML manpages in its output. That way people
can click on manpages to get the full documentation. There are a few
services offering this online, so we do not explicitly enable one by
default, but the Debian manpages repository has a lot of the manpages
pre-rendered, so it is used as an example in the documentation.

The parsing work is done by a transformer class that parses manpage
objects and extract name/section elements. Those then can be used by
writers to cross-reference to actual sites. An implementation is done
in the two HTML writers, but could also apply to ePUB/PDF writers as
well in the future.

This is not enabled by default: the `manpages_url` configuration item
needs to be enabled to point to the chosen site. The `page`, `section`
and `path` parameters are expanded through Python string formatting in
the URL on output.

Unit tests are fairly limited, but should cover most common use-cases.
2018-01-11 13:20:34 -05:00
..
code.rst Merge branch 'stable' 2017-12-11 22:54:34 +01:00
index.rst Add link to standard markup description. 2010-09-10 09:05:00 +02:00
inline.rst add link to manpages in HTML builder 2018-01-11 13:20:34 -05:00
misc.rst Improve access to table and math markup info in docs 2017-06-20 15:57:32 +02:00
para.rst classifier of glossary terms can be used for index entries grouping key. The classifier also be used for translation. See also :ref:glossary-directive. 2016-02-14 19:28:58 +09:00
toctree.rst Update toctree.rst 2017-01-31 01:29:18 +01:00