# HG changeset patch # User Martin Geisler # Date 1252096017 -7200 # Node ID ec26d6986d85f3dd00e4ceb3d9a7d8027f998653 # Parent c8e4dc218aaf94a33a7fd1317785882863bc186b doc: add TOC to hg.1.html and hgrc.5.html diff -r c8e4dc218aaf -r ec26d6986d85 doc/Makefile --- a/doc/Makefile Fri Sep 04 11:51:28 2009 +0200 +++ b/doc/Makefile Fri Sep 04 22:26:57 2009 +0200 @@ -20,7 +20,7 @@ ${PYTHON} gendoc.py > $@ %: %.txt common.txt - $(PYTHON) rst2man.py $*.txt > $* + $(PYTHON) rst2man.py --strip-elements-with-class htmlonly $*.txt > $* %.html: %.txt common.txt $(RST2HTML) $*.txt > $*.html diff -r c8e4dc218aaf -r ec26d6986d85 doc/hg.1.txt --- a/doc/hg.1.txt Fri Sep 04 11:51:28 2009 +0200 +++ b/doc/hg.1.txt Fri Sep 04 22:26:57 2009 +0200 @@ -11,6 +11,10 @@ :Manual section: 1 :Manual group: Mercurial Manual +.. contents:: + :backlinks: top + :class: htmlonly + SYNOPSIS -------- diff -r c8e4dc218aaf -r ec26d6986d85 doc/hgrc.5.txt --- a/doc/hgrc.5.txt Fri Sep 04 11:51:28 2009 +0200 +++ b/doc/hgrc.5.txt Fri Sep 04 22:26:57 2009 +0200 @@ -11,6 +11,10 @@ :Manual section: 5 :Manual group: Mercurial Manual +.. contents:: + :backlinks: top + :class: htmlonly + SYNOPSIS --------