mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
bootstrap: Add --sphinx-html-copybutton option
Consistent with the SPHINX_HTML_COPYBUTTON CMake option.
This commit is contained in:
@@ -85,6 +85,7 @@ cmake_bootstrap_debugger=""
|
||||
cmake_sphinx_info=""
|
||||
cmake_sphinx_man=""
|
||||
cmake_sphinx_html=""
|
||||
cmake_sphinx_html_copybutton=""
|
||||
cmake_sphinx_qthelp=""
|
||||
cmake_sphinx_latexpdf=""
|
||||
cmake_sphinx_build=""
|
||||
@@ -739,6 +740,7 @@ Configuration:
|
||||
--sphinx-info build Info manual with Sphinx
|
||||
--sphinx-man build man pages with Sphinx
|
||||
--sphinx-html build html help with Sphinx
|
||||
--sphinx-html-copybutton build html help with the sphinx-copybutton extension
|
||||
--sphinx-qthelp build qch help with Sphinx
|
||||
--sphinx-latexpdf build PDF with Sphinx using LaTeX
|
||||
--sphinx-build=<sb> use <sb> as the sphinx-build executable
|
||||
@@ -1004,6 +1006,7 @@ while test $# != 0; do
|
||||
--sphinx-info) cmake_sphinx_info="1" ;;
|
||||
--sphinx-man) cmake_sphinx_man="1" ;;
|
||||
--sphinx-html) cmake_sphinx_html="1" ;;
|
||||
--sphinx-html-copybutton) cmake_sphinx_html_copybutton="1" ;;
|
||||
--sphinx-qthelp) cmake_sphinx_qthelp="1" ;;
|
||||
--sphinx-latexpdf) cmake_sphinx_latexpdf="1" ;;
|
||||
--sphinx-build=*) cmake_sphinx_build=`cmake_arg "$1"` ;;
|
||||
@@ -2018,6 +2021,11 @@ if test "x${cmake_bootstrap_debugger}" != "x"; then
|
||||
set (CMake_ENABLE_DEBUGGER '"${cmake_bootstrap_debugger}"' CACHE BOOL "Enable CMake debugger support" FORCE)
|
||||
' >> "${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
|
||||
fi
|
||||
if test "x${cmake_sphinx_html_copybutton}" != "x"; then
|
||||
echo '
|
||||
set (SPHINX_HTML_COPYBUTTON "'"${cmake_sphinx_html_copybutton}"'" CACHE BOOL "Build html help with the sphinx-copybutton extension" FORCE)
|
||||
' >> "${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
|
||||
fi
|
||||
if test "x${cmake_sphinx_info}" != "x"; then
|
||||
echo '
|
||||
set (SPHINX_INFO "'"${cmake_sphinx_info}"'" CACHE BOOL "Build Info manual with Sphinx" FORCE)
|
||||
|
||||
Reference in New Issue
Block a user