mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 05:43:40 +01:00
doc: fix the MathJax option
- if Mathjax is detected, use it by default, it not do not use it by default but allow the user to provide the path.
This commit is contained in:
parent
37f861b0b5
commit
54f12f9fc0
@ -3,16 +3,20 @@
|
||||
find_package(MathJax)
|
||||
if (MATHJAX_PATH)
|
||||
message(STATUS "Detected MathJax at ${MATHJAX_PATH}")
|
||||
option(Sphinx_Math_Generator_MathJax " " ON)
|
||||
else()
|
||||
message(STATUS "MathJax not found automatically")
|
||||
option(Sphinx_Math_Generator_MathJax " " OFF)
|
||||
set(MATHJAX_PATH "MathJax" CACHE STRING "Path to the MathJax directory")
|
||||
endif()
|
||||
|
||||
if (Sphinx_Math_Generator_MathJax)
|
||||
set(SPHINX_MATH_GENERATOR "mathjax")
|
||||
set(MATHJAX_PATH "MathJax" CACHE STRING "Path to the MathJax directory")
|
||||
message(STATUS "Using MathJax")
|
||||
else (Sphinx_Math_Generator_MathJax)
|
||||
set(SPHINX_MATH_GENERATOR "pngmath")
|
||||
message(STATUS "Not using MathJax")
|
||||
endif (Sphinx_Math_Generator_MathJax)
|
||||
endif()
|
||||
|
||||
# the local extensions....
|
||||
file(COPY ../foreignlibs/breathe ../foreignlibs/doxylink ../foreignlibs/mpl ../foreignlibs/autocompile DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
Loading…
Reference in New Issue
Block a user