changeset 9422:ec26d6986d85

doc: add TOC to hg.1.html and hgrc.5.html
author Martin Geisler <mg@lazybytes.net>
date Fri, 04 Sep 2009 22:26:57 +0200
parents c8e4dc218aaf
children 6cfea6e4c892
files doc/Makefile doc/hg.1.txt doc/hgrc.5.txt
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
 --------