--- 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
--- 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
--------
--- 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
--------