Skip to content
Snippets Groups Projects
Commit 74412d69 authored by Iustin Pop's avatar Iustin Pop
Browse files

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: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 6aff0514
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment