summaryrefslogtreecommitdiffstats
path: root/Utilities/Sphinx/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-30 13:58:25 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-30 13:58:25 (GMT)
commitf88332f5b7e325d9ee6d43b54aa3dc8f78b2dc72 (patch)
tree3162566d4a1207b677b8f3ee5f20e20aabe6db26 /Utilities/Sphinx/CMakeLists.txt
parenta1254ddd742ad01158f8655f0c9c1b674b590e87 (diff)
downloadCMake-f88332f5b7e325d9ee6d43b54aa3dc8f78b2dc72.zip
CMake-f88332f5b7e325d9ee6d43b54aa3dc8f78b2dc72.tar.gz
CMake-f88332f5b7e325d9ee6d43b54aa3dc8f78b2dc72.tar.bz2
Help: Glob manual/*.rst in Sphinx configuration
Add the man page description line as explicit markup at the top of each Help/manual/*.rst file and scan it from conf.py to automatically generate the man_pages Sphinx configuration value. This reduces the number of places that need to be changed when a new manual is added.
Diffstat (limited to 'Utilities/Sphinx/CMakeLists.txt')
-rw-r--r--Utilities/Sphinx/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt
index 16d9aac..2ecd7ed 100644
--- a/Utilities/Sphinx/CMakeLists.txt
+++ b/Utilities/Sphinx/CMakeLists.txt
@@ -35,6 +35,7 @@ elseif(NOT SPHINX_EXECUTABLE)
message(FATAL_ERROR "SPHINX_EXECUTABLE (sphinx-build) is not found!")
endif()
+set(conf_docs "${CMake_SOURCE_DIR}/Help")
set(conf_path "${CMAKE_CURRENT_SOURCE_DIR}")
set(conf_copyright "2000-2013 Kitware, Inc.")
set(conf_version "${CMake_MAJOR_VERSION}.${CMake_MINOR_VERSION}.${CMake_PATCH_VERSION}")