File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 paths :
1515 - " docs/**"
1616 - " mkdocs.yml"
17+ - " .github/workflows/build-docs.yml"
1718
1819jobs :
1920 build :
3334 run : uv sync --group doc
3435
3536 - name : Build docs
36- run : uv run zensical build -f mkdocs.yml --clean
37+ run : |
38+ set -euo pipefail
39+ # Run zensical and capture output, fail if command exits non-zero
40+ uv run zensical build -f mkdocs.yml --clean 2>&1 | tee docs_build.log
41+ # If output contains common error indicators, fail the step.
42+ if grep -Ei "\b(error|failed|traceback|exception)\b" docs_build.log >/dev/null; then
43+ echo "Documentation build produced errors; failing workflow."
44+ exit 1
45+ fi
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ All parameters are documented below:
1919
2020::: codecarbon.emissions_tracker.BaseEmissionsTracker
2121 options:
22- members: __ init__
22+ members:
23+ - __ init__
2324 merge_init_into_class: true
2425 show_root_heading: true
2526 show_signature: false
@@ -30,7 +31,8 @@ All parameters are documented below:
3031
3132::: codecarbon.emissions_tracker.OfflineEmissionsTracker
3233 options:
33- members: __ init__
34+ members:
35+ - __ init__
3436 merge_init_into_class: true
3537 show_root_heading: true
3638 show_signature: false
You can’t perform that action at this time.
0 commit comments