Skip to content

Commit

Permalink
Add table of contents to HTML generation (#226)
Browse files Browse the repository at this point in the history
This adds a trivial table of contents to the HTML spec build. It isn't pretty but it works.
  • Loading branch information
llvm-beanz authored May 2, 2024
1 parent d15b754 commit 15fcf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/language/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 15fcf15

Please sign in to comment.