Skip to content

Commit

Permalink
[docs] Suppress "not included in any toctree" warning in CMake build
Browse files Browse the repository at this point in the history
We have lots of documents that are intentionally not in any toctree;
we were just getting a massive pile of useless warnings about them.
Had there been a valid warning in there we'd have missed it anyhow.

Swift SVN r10607
  • Loading branch information
Dave Abrahams committed Nov 20, 2013
1 parent 4208d36 commit 3c10621
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ SET(SPHINX_ARGS
if(SPHINX_EXECUTABLE)
add_custom_target(docs_html ALL
${SPHINX_EXECUTABLE} ${SPHINX_ARGS} -b html
. ${CMAKE_BINARY_DIR}/docs/html
. ${CMAKE_BINARY_DIR}/docs/html
# filter only stderr; see http://stackoverflow.com/a/15936384/125349
# unfortunately I can't get CMake to pass this form through correctly
# 2> >(grep -v "\"WARNING: document isn't included in any toctree\"" 1>&2)
2>&1 | grep -v "\"WARNING: document isn't included in any toctree\""
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Building HTML documentation")

Expand Down

0 comments on commit 3c10621

Please sign in to comment.