From 74412d694a0a01a00afc6ba2b74f54c0c9f0ffbe Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Sun, 30 Dec 2012 16:19:47 +0100
Subject: [PATCH] Enable a table of contents for the html version of man pages

This makes the (very dull) html version of the man pages a bit more
readable, until such a time that we can switch over to sphinx fully.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
---
 Makefile.am | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index fd0bd99f9..41968d23f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1220,12 +1220,11 @@ man/%.7.in man/%.8.in man/%.1.in: man/%.gen
 	$(CHECK_MAN_DASHES) $@; \
 	trap - EXIT
 
-
 man/%.html.in: man/%.gen
 	@test -n "$(PANDOC)" || \
 	  { echo 'pandoc' not found during configure; exit 1; }
 	set -o pipefail ; \
-	$(PANDOC) -s -f rst -t html $< man/footer.rst | \
+	$(PANDOC) --toc -s -f rst -t html $< man/footer.rst | \
 	  sed -e 's/\\@/@/g' > $@
 
 man/%: man/%.in  $(REPLACE_VARS_SED)
-- 
GitLab