mirror of
https://github.com/nlohmann/json.git
synced 2026-07-21 19:23:03 +04:00
Add step to build the documentation (#4549)
* 💚 add step to build the documentation * 💚 add step to build the documentation
This commit is contained in:
@@ -290,7 +290,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target: [ci_test_examples, ci_test_api_documentation]
|
target: [ci_test_examples, ci_test_build_documentation]
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
|
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
|
||||||
|
|||||||
+6
-4
@@ -1023,10 +1023,12 @@ add_custom_target(ci_test_examples
|
|||||||
COMMENT "Check that all examples compile and create the desired output"
|
COMMENT "Check that all examples compile and create the desired output"
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(ci_test_api_documentation
|
add_custom_target(ci_test_build_documentation
|
||||||
COMMAND ${Python3_EXECUTABLE} ../scripts/check_structure.py
|
COMMAND ${Python3_EXECUTABLE} -mvenv venv
|
||||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/docs/mkdocs/docs
|
COMMAND venv/bin/pip3 install -r requirements.txt
|
||||||
COMMENT "Lint the API documentation"
|
COMMAND make build
|
||||||
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/docs/mkdocs
|
||||||
|
COMMENT "Build the documentation"
|
||||||
)
|
)
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user