ensure all files are reread on every docs build

this fixes the issue where the Stonesense docs were getting ignored
develop
myk002 2022-07-09 23:58:11 -07:00
parent 12557f8dc1
commit fdd406b722
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
3 changed files with 5 additions and 5 deletions

@ -478,13 +478,13 @@ if(BUILD_DOCS)
set_source_files_properties(${SPHINX_OUTPUT} PROPERTIES GENERATED TRUE) set_source_files_properties(${SPHINX_OUTPUT} PROPERTIES GENERATED TRUE)
add_custom_command(OUTPUT ${SPHINX_OUTPUT} add_custom_command(OUTPUT ${SPHINX_OUTPUT}
COMMAND ${SPHINX_EXECUTABLE} COMMAND ${SPHINX_EXECUTABLE}
-q -b html -d "${CMAKE_BINARY_DIR}/docs/html" -E -q -b html -d "${CMAKE_BINARY_DIR}/docs/html"
"${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/docs/html" "${CMAKE_CURRENT_SOURCE_DIR}/docs/html"
-w "${CMAKE_BINARY_DIR}/docs/html/_sphinx-warnings.txt" -w "${CMAKE_BINARY_DIR}/docs/html/_sphinx-warnings.txt"
-j auto -j auto
COMMAND ${SPHINX_EXECUTABLE} COMMAND ${SPHINX_EXECUTABLE}
-q -b text -d "${CMAKE_BINARY_DIR}/docs/text" -E -q -b text -d "${CMAKE_BINARY_DIR}/docs/text"
"${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/docs/text" "${CMAKE_CURRENT_SOURCE_DIR}/docs/text"
-w "${CMAKE_BINARY_DIR}/docs/text/_sphinx-warnings.txt" -w "${CMAKE_BINARY_DIR}/docs/text/_sphinx-warnings.txt"

@ -140,7 +140,7 @@ def write_tool_docs():
os.makedirs(os.path.join('docs/tools', os.path.dirname(k[0])), os.makedirs(os.path.join('docs/tools', os.path.dirname(k[0])),
mode=0o755, exist_ok=True) mode=0o755, exist_ok=True)
with open('docs/tools/{}.rst'.format(k[0]), mode) as outfile: with open('docs/tools/{}.rst'.format(k[0]), mode) as outfile:
if k[0] != 'search': if k[0] != 'search' and k[0] != 'stonesense':
outfile.write(label) outfile.write(label)
outfile.write(include) outfile.write(include)

@ -11,5 +11,5 @@
cd $(dirname "$0") cd $(dirname "$0")
cd .. cd ..
"${SPHINX:-sphinx-build}" -b html -d build/docs/html . docs/html -w build/docs/html/_sphinx-warnings.txt -j "${JOBS:-auto}" "$@" "${SPHINX:-sphinx-build}" -E -b html -d build/docs/html . docs/html -w build/docs/html/_sphinx-warnings.txt -j "${JOBS:-auto}" "$@"
"${SPHINX:-sphinx-build}" -b text -d build/docs/text . docs/text -w build/docs/text/_sphinx-warnings.txt -j "${JOBS:-auto}" "$@" "${SPHINX:-sphinx-build}" -E -b text -d build/docs/text . docs/text -w build/docs/text/_sphinx-warnings.txt -j "${JOBS:-auto}" "$@"