From 15fcf15517ee1d3d623298c148b576140e2dc4f2 Mon Sep 17 00:00:00 2001 From: Chris B Date: Thu, 2 May 2024 12:41:48 -0500 Subject: [PATCH] Add table of contents to HTML generation (#226) This adds a trivial table of contents to the HTML spec build. It isn't pretty but it works. --- specs/language/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/language/CMakeLists.txt b/specs/language/CMakeLists.txt index f04bacec..ba69479f 100644 --- a/specs/language/CMakeLists.txt +++ b/specs/language/CMakeLists.txt @@ -48,7 +48,7 @@ add_custom_target(pdf DEPENDS ${main_file} ${PROJECT_NAME}-prebuild ${PROJECT_NAME}-glossaries) add_custom_target(html - COMMAND ${PANDOC_COMPILER} ${main_file} -f latex -t html -s -o ${CMAKE_BINARY_DIR}/html/hlsl.html + COMMAND ${PANDOC_COMPILER} ${main_file} -f latex -t html --table-of-contents=true -s -o ${CMAKE_BINARY_DIR}/html/hlsl.html COMMENT "Generating HTML" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${main_file} ${PROJECT_NAME}-prebuild ${PROJECT_NAME}-glossaries ${PROJECT_NAME}-dirs)