Skip to content

Commit

Permalink
Add make autobuild-ru command
Browse files Browse the repository at this point in the history
  • Loading branch information
NickVolynkin committed Oct 19, 2021
1 parent b660cb5 commit da3e129
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ set(SPHINX_BUILD_JSON_RU_DIR "${SPHINX_OUTPUT_DIR}/doctrees/json/ru")

set(SPHINX_EN_HTML_DIR "${SPHINX_OUTPUT_DIR}/html/en/")
set(SPHINX_EN_AUTOBUILD_DIR "${SPHINX_OUTPUT_DIR}/html_auto/en/")
set(SPHINX_RU_AUTOBUILD_DIR "${SPHINX_OUTPUT_DIR}/html_auto/ru/")
set(SPHINX_RU_HTML_DIR "${SPHINX_OUTPUT_DIR}/html/ru/")
set(SPHINX_EN_HTML_OLD_DIR "${SPHINX_OUTPUT_DIR}/html_old/en/")
set(SPHINX_RU_HTML_OLD_DIR "${SPHINX_OUTPUT_DIR}/html_old/ru/")
Expand Down Expand Up @@ -145,6 +146,20 @@ add_custom_target(autobuild
COMMENT "Build & Live-reload on http://127.0.0.1:8000"
)

add_custom_target(autobuild-ru
COMMAND sphinx-autobuild
-b html
-d "${SPHINX_BUILD_HTML_DIR}"
-c html/
--host 0.0.0.0
--port 8000
-D language=ru
-A nolang_path=true
"${CMAKE_CURRENT_SOURCE_DIR}/doc"
"${SPHINX_RU_AUTOBUILD_DIR}"
COMMENT "Build & Live-reload on http://127.0.0.1:8000"
)

add_custom_target(html-ru ALL
COMMAND "${SPHINX_EXECUTABLE}"
-b html
Expand Down

0 comments on commit da3e129

Please sign in to comment.