sphinx: honor changes in static html assets

Also fix custom.css.
This commit is contained in:
Johannes Altmanninger 2019-10-15 21:59:37 +02:00
parent e0d623d4b7
commit aa1bf9f277
2 changed files with 4 additions and 2 deletions

View file

@ -16,7 +16,9 @@ SET(SPHINX_MANPAGE_DIR "${SPHINX_ROOT_DIR}/man")
# sphinx-docs uses fish_indent for highlighting.
# Prepend the output dir of fish_indent to PATH.
ADD_CUSTOM_TARGET(sphinx-docs
env PATH="$<TARGET_FILE_DIR:fish_indent>:$$PATH"
${CMAKE_COMMAND} -E copy_if_different ${SPHINX_SRC_DIR}/_static/pygments.css ${SPHINX_HTML_DIR}/_static/
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${SPHINX_SRC_DIR}/_static/custom.css ${SPHINX_HTML_DIR}/_static/
COMMAND env PATH="$<TARGET_FILE_DIR:fish_indent>:$$PATH"
${SPHINX_EXECUTABLE}
-q -b html
-c "${SPHINX_SRC_DIR}"

View file

@ -1 +1 @@
.sphinxsidebar > ul.current > li.current { font-weight: bold }
.sphinxsidebar ul.current > li.current { font-weight: bold }