mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
Utilities/Sphinx: Port qthelp css workaround to Sphinx 1.4
The `default.css` static content is no longer placed in the qthelp `_static` directory. If it does not exist, skip over it and insert the content of `basic.css` directly into `cmake.css`.
This commit is contained in:
parent
971384c287
commit
97917900d1
@ -1,11 +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}"
|
||||
)
|
||||
if(EXISTS "${CSS_DIR}/default.css")
|
||||
file(READ "${CSS_DIR}/default.css" DefaultCssContent)
|
||||
string(REPLACE
|
||||
"@import url(\"basic.css\")" "${BasicCssContent}"
|
||||
DefaultCssContent "${DefaultCssContent}"
|
||||
)
|
||||
else()
|
||||
set(DefaultCssContent "${BasicCssContent}")
|
||||
endif()
|
||||
|
||||
file(READ "${CSS_DIR}/cmake.css" CMakeCssContent)
|
||||
string(REPLACE
|
||||
|
Loading…
Reference in New Issue
Block a user