don't include rst sources in html output

develop
myk002 2022-08-13 21:51:36 -07:00
parent 47dc8c6c11
commit f1f207b45b
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
2 changed files with 6 additions and 1 deletions

@ -506,7 +506,9 @@ if(BUILD_DOCS)
COMMAND ${CMAKE_COMMAND} -E touch ${SPHINX_OUTPUT}) COMMAND ${CMAKE_COMMAND} -E touch ${SPHINX_OUTPUT})
install(DIRECTORY ${dfhack_SOURCE_DIR}/docs/html/ install(DIRECTORY ${dfhack_SOURCE_DIR}/docs/html/
DESTINATION ${DFHACK_USERDOC_DESTINATION}/docs) DESTINATION ${DFHACK_USERDOC_DESTINATION}/docs
FILES_MATCHING PATTERN "*"
PATTERN html/_sources EXCLUDE)
install(DIRECTORY ${dfhack_SOURCE_DIR}/docs/text/ install(DIRECTORY ${dfhack_SOURCE_DIR}/docs/text/
DESTINATION ${DFHACK_USERDOC_DESTINATION}/docs) DESTINATION ${DFHACK_USERDOC_DESTINATION}/docs)
install(FILES docs/changelogs/news.rst docs/changelogs/news-dev.rst DESTINATION ${DFHACK_USERDOC_DESTINATION}) install(FILES docs/changelogs/news.rst docs/changelogs/news-dev.rst DESTINATION ${DFHACK_USERDOC_DESTINATION})

@ -316,6 +316,9 @@ html_domain_indices = False
# If false, no genindex.html is generated. # If false, no genindex.html is generated.
html_use_index = True html_use_index = True
# don't link to rst sources in the generated pages
html_show_sourcelink = False
html_css_files = [ html_css_files = [
'dfhack.css', 'dfhack.css',
] ]