doc: add TOC to hg.1.html and hgrc.5.html
authorMartin Geisler <mg@lazybytes.net>
Fri, 04 Sep 2009 22:26:57 +0200
changeset 9422 ec26d6986d85
parent 9421 c8e4dc218aaf
child 9425 6cfea6e4c892
doc: add TOC to hg.1.html and hgrc.5.html
doc/Makefile
doc/hg.1.txt
doc/hgrc.5.txt
--- 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
 --------