summaryrefslogtreecommitdiffstats
path: root/Utilities/Sphinx/apply_qthelp_css_workaround.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-24 19:31:45 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-24 19:31:45 (GMT)
commitaaa6c8a6cefff2fc8938453f09fb91523b9e87e4 (patch)
treefd186e3ee9ba0c4d514baa27d78b8553bcedcb70 /Utilities/Sphinx/apply_qthelp_css_workaround.cmake
parentfaf291a9c41cc2a4ffa6797c1d35c7863118a4c4 (diff)
parentd64ee80d6bfb97a63953796074e792f4883e5fb2 (diff)
downloadCMake-aaa6c8a6cefff2fc8938453f09fb91523b9e87e4.zip
CMake-aaa6c8a6cefff2fc8938453f09fb91523b9e87e4.tar.gz
CMake-aaa6c8a6cefff2fc8938453f09fb91523b9e87e4.tar.bz2
Merge branch 'master' into doc-singlehtml
Resolve conflicts in Utilities/Sphinx/CMakeLists.txt by adding the help options from both sides.
Diffstat (limited to 'Utilities/Sphinx/apply_qthelp_css_workaround.cmake')
-rw-r--r--Utilities/Sphinx/apply_qthelp_css_workaround.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Utilities/Sphinx/apply_qthelp_css_workaround.cmake b/Utilities/Sphinx/apply_qthelp_css_workaround.cmake
new file mode 100644
index 0000000..8b74d12
--- /dev/null
+++ b/Utilities/Sphinx/apply_qthelp_css_workaround.cmake
@@ -0,0 +1,15 @@
+
+file(READ "${CSS_DIR}/basic.css" BasicCssContent)
+
+file(READ "${CSS_DIR}/default.css" DefaultCssContent)
+string(REPLACE
+ "@import url(\"basic.css\")" "${BasicCssContent}"
+ DefaultCssContent "${DefaultCssContent}"
+)
+
+file(READ "${CSS_DIR}/cmake.css" CMakeCssContent)
+string(REPLACE
+ "@import url(\"default.css\")" "${DefaultCssContent}"
+ CMakeCssContent "${CMakeCssContent}"
+)
+file(WRITE "${CSS_DIR}/cmake.css" "${CMakeCssContent}")