# HG changeset patch # User Sietse Brouwer # Date 1556198950 -7200 # Thu Apr 25 15:29:10 2019 +0200 # Node ID 58ceea6d08e284ab9c2d07d1c633a5d6a16aa424 # Parent dfc42ddc650c0685671ec1895aba727b3337fd2a SBB: add a table of contents to the hg.1 man page diff --git a/doc/Makefile b/doc/Makefile --- a/doc/Makefile +++ b/doc/Makefile @@ -27,6 +27,7 @@ %.html: %.txt %.gendoc.txt common.txt $(PYTHON) runrst html $(RSTARGS) --halt warning \ + --strip-elements-with-class manonly \ --link-stylesheet --stylesheet-path style.css $*.txt $*.html MANIFEST: man html diff --git a/mercurial/help/hg.1.txt b/mercurial/help/hg.1.txt --- a/mercurial/help/hg.1.txt +++ b/mercurial/help/hg.1.txt @@ -45,6 +45,10 @@ either the pathname of a local repository or the URI of a remote repository. +.. contents:: + :class: manonly + :depth: 1 + .. include:: hg.1.gendoc.txt Files