From 9492b9ff037c5929741d8a816b6f8fa586533c96 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 2 Jun 2016 06:41:25 -0700 Subject: [PATCH] Pass versions from CMake to Sphinx --- doc/CMakeLists.txt | 3 ++- doc/_templates/layout.html | 37 ++++++++++++++++++++++--------------- doc/build.py | 6 ++++-- doc/conf.py | 7 +++---- 4 files changed, 31 insertions(+), 22 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 10e566aa..df3e9b1e 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -5,7 +5,8 @@ if (NOT DOXYGEN) endif () add_custom_target(doc - COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.py ${FMT_VERSION} SOURCES build.py) + COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/build.py ${FMT_VERSION} + SOURCES build.py conf.py _templates/layout.html) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION share/doc/fmt OPTIONAL) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 261e2eb4..6f331368 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -8,8 +8,9 @@ {# Google Analytics #}