File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,15 +44,11 @@ jobs:
4444 - name : Install dependencies
4545 run : |
4646 python3 -m pip install -r docs/requirements.txt
47- python3 -m pip install graphviz pyyaml
4847 - name : Download artifact
4948 uses : actions/download-artifact@v8
5049 with :
5150 name : doxygen-documentation-xml
5251 path : xml
53- - name : Generate CI jobs graph
54- run : |
55- python3 scripts/jobs_graph.py --out docs/_static/ci_graph --format svg
5652 - name : Configure project
5753 run : >
5854 cmake -S . -B build -D USE_DOCS=ON -D PPC_BUILD_COMPONENTS=OFF
Original file line number Diff line number Diff line change 55set (SOURCEDIR "${CMAKE_CURRENT_SOURCE_DIR } " )
66set (BUILDDIR "${CMAKE_CURRENT_BINARY_DIR } /_build/html" )
77set (GETTEXTDIR "${CMAKE_CURRENT_BINARY_DIR } /_build/gettext" )
8+ set (CI_GRAPH_SOURCE "${CMAKE_SOURCE_DIR } /.github/workflows/main.yml" )
9+ set (CI_GRAPH_OUTPUT "${SOURCEDIR} /_static/ci_graph.svg" )
810
911find_package (Python REQUIRED COMPONENTS Interpreter )
1012
13+ add_custom_command (
14+ OUTPUT "${CI_GRAPH_OUTPUT} "
15+ COMMAND
16+ ${Python_EXECUTABLE} "${CMAKE_SOURCE_DIR } /scripts/jobs_graph.py" --workflow
17+ "${CI_GRAPH_SOURCE} " --out "${SOURCEDIR} /_static/ci_graph" --format svg
18+ DEPENDS "${CMAKE_SOURCE_DIR } /scripts/jobs_graph.py" "${CI_GRAPH_SOURCE} "
19+ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR } "
20+ COMMENT "Generating CI jobs graph" )
21+
22+ add_custom_target (docs_ci_graph DEPENDS "${CI_GRAPH_OUTPUT} " )
23+
1124add_custom_target (
1225 docs_help
1326 COMMAND ${SPHINXBUILD} -M help "${SOURCEDIR} " "${BUILDDIR} /en" ${SPHINXOPTS}
@@ -52,3 +65,4 @@ add_custom_target(
5265 ${SPHINXOPTS}
5366 WORKING_DIRECTORY "${SOURCEDIR} "
5467 COMMENT "Building HTML documentation for English and Russian" )
68+ add_dependencies (docs_html docs_ci_graph )
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ Sphinx==9.1.0
22sphinx-rtd-theme == 3.1.0
33sphinx-intl == 2.3.2
44breathe == 4.36.0
5+ PyYAML == 6.0.3
You can’t perform that action at this time.
0 commit comments