From 86c3ef2de8b0b4e2af246410c42cbf03788dd589 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 21 Feb 2024 01:01:00 +0100 Subject: docs: Use README.md to generate mainpage with doxygen Actually we are using a slightly modified one that removes the `Table of Contents` section and replaces it with the doxygen-compatible `[TOC]` to auto-generate a TOC that has working links. --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7da967d..f44a6bc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,4 +25,7 @@ docs/html: $(top_builddir)/doxygen.cfg $(top_srcdir)/include/plist/*.h rm -rf docs/html doxygen doxygen.cfg -docs: doxygen.cfg docs/html +docs/README.doxygen.md: README.md + awk '/\#\# Table of Contents/{while(getline && $$0 != ""){}{print "[TOC]"}}1' README.md > $@ + +docs: doxygen.cfg docs/README.doxygen.md docs/html -- cgit v1.1-32-gdbae