Skip to content

Commit

Permalink
Use cmakedomain
Browse files Browse the repository at this point in the history
  • Loading branch information
flagarde committed Aug 11, 2023
1 parent ed6a71d commit 9374947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ jobs:
post-cleanup: 'all'
environment-name: docs
- name: Install python packages
run: pip install -U CMinx myst-parser
run: pip install -U sphinxcontrib-moderncmakedomain
- name: ⬇️ Setup CMake
uses: lukka/get-cmake@latest
with:
cmakeVersion: ^3
- name: Run CMake
run: cmake -S ${{ github.workspace }} -B ${{ github.workspace }}/build -G "Ninja Multi-Config" -Werror=dev -Werror=deprecated -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install
- name: Generate docs
run: cmake --build ${{ github.workspace }}/build --target docs-all --config Build
run: cmake --build ${{ github.workspace }}/build --target docs-all --config Release
- name: Install docs
run: cmake --install ${{ github.workspace }}/build --config Build
run: cmake --install ${{ github.workspace }}/build --config Release
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
2 changes: 0 additions & 2 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/conf.py.in" "${CMAKE_CURRENT_BINARY_
file(COPY "${CMAKE_SOURCE_DIR}/cmake/Changelog.cmake" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/html/latest")
file(COPY "${CMAKE_SOURCE_DIR}/cmake/CMakeMM.cmake" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/html/latest")

message(STATUS "${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}")

add_custom_target(docs-all ALL sphinx-build "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/html" -b html -c "${CMAKE_CURRENT_BINARY_DIR}" DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/conf.py"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Generating doc using Sphinx")
Expand Down

0 comments on commit 9374947

Please sign in to comment.