Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy-docs-cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ jobs:
cat > mkdocs-ci.yml <<WRAP
INHERIT: ${REPO_DIR}/mkdocs.yml
docs_dir: ${REPO_DIR}
theme:
custom_dir: ${REPO_DIR}/overrides
site_dir: _ci_site
WRAP
python -m mkdocs build --config-file mkdocs-ci.yml
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs-quality-gates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
cat > mkdocs-ci.yml <<WRAP
INHERIT: ${REPO_DIR}/mkdocs.yml
docs_dir: ${REPO_DIR}
theme:
custom_dir: ${REPO_DIR}/overrides
site_dir: _ci_site
WRAP
python -m mkdocs build --config-file mkdocs-ci.yml
Expand Down
11 changes: 10 additions & 1 deletion check_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
import yaml
from pathlib import Path
import json
from datetime import date, datetime


def json_safe(value):
if isinstance(value, (date, datetime)):
return value.isoformat()
if isinstance(value, Path):
return str(value)
return str(value)

root_dir = Path(r"d:\source\SkyCMS.Docs\for-developers")
results = []
Expand Down Expand Up @@ -41,5 +50,5 @@
})

with open('d:\\source\\SkyCMS.Docs\\check_results.json', 'w', encoding='utf-8') as f:
json.dump(results, f, indent=2)
json.dump(results, f, indent=2, default=json_safe)
print("Saved to check_results.json")
Loading
Loading