Skip to content

Commit 388e8e1

Browse files
nlohmannslowriot
authored andcommitted
Add step to build the documentation (nlohmann#4549)
* 💚 add step to build the documentation * 💚 add step to build the documentation
1 parent d318d8b commit 388e8e1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ jobs:
290290
runs-on: ubuntu-latest
291291
strategy:
292292
matrix:
293-
target: [ci_test_examples, ci_test_api_documentation]
293+
target: [ci_test_examples, ci_test_build_documentation]
294294
steps:
295295
- name: Harden Runner
296296
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2

cmake/ci.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,10 +1023,12 @@ add_custom_target(ci_test_examples
10231023
COMMENT "Check that all examples compile and create the desired output"
10241024
)
10251025

1026-
add_custom_target(ci_test_api_documentation
1027-
COMMAND ${Python3_EXECUTABLE} ../scripts/check_structure.py
1028-
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/docs/mkdocs/docs
1029-
COMMENT "Lint the API documentation"
1026+
add_custom_target(ci_test_build_documentation
1027+
COMMAND ${Python3_EXECUTABLE} -mvenv venv
1028+
COMMAND venv/bin/pip3 install -r requirements.txt
1029+
COMMAND make build
1030+
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/docs/mkdocs
1031+
COMMENT "Build the documentation"
10301032
)
10311033

10321034
###############################################################################

0 commit comments

Comments
 (0)