Skip to content

Commit

Permalink
don't include rst sources in html output
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 14, 2022
1 parent 47dc8c6 commit f1f207b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,9 @@ if(BUILD_DOCS)
COMMAND ${CMAKE_COMMAND} -E touch ${SPHINX_OUTPUT})

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/
DESTINATION ${DFHACK_USERDOC_DESTINATION}/docs)
install(FILES docs/changelogs/news.rst docs/changelogs/news-dev.rst DESTINATION ${DFHACK_USERDOC_DESTINATION})
Expand Down
3 changes: 3 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ def get_version():
# If false, no genindex.html is generated.
html_use_index = True

# don't link to rst sources in the generated pages
html_show_sourcelink = False

html_css_files = [
'dfhack.css',
]
Expand Down

0 comments on commit f1f207b

Please sign in to comment.