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/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- main
paths:
- 'docs/**'
# the examples gallery embeds these files at build time
- 'examples/*.yaml'
- 'mkdocs.yaml'
- '.github/workflows/docs.yaml'
workflow_dispatch:
Expand Down
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ lint:
docs-serve:
uv run --group docs mkdocs serve

# docs/reference/*.md are generated from the click commands, the manifest models and examples/.
docs-generate:
uv run python scripts/docs.py generate

# Fails when the generated pages are stale or a manifest in docs/snippets does not pass its tests.
docs-check:
uv run python scripts/docs.py check

docs-build: docs-check
uv run --group docs mkdocs build --strict

# The example manifests declare requirements that are not cliffy dependencies. They have to be
# installed into the project environment (not a `uv run --with` overlay), because cliffy validates
# `requires` against `pip freeze`. `uv sync` in generate-cleanup removes them again.
Expand All @@ -57,5 +68,6 @@ generate-cleanup:
generate-schema:
uv run python -m cliffy.manifest --json-schema > examples/cliffy_schema.json

.PHONY: check install sync test test-cov clean package publish format lint docs-serve \
.PHONY: check install sync test test-cov clean package publish format lint \
docs-serve docs-generate docs-check docs-build \
generate-clis generate-all generate-cleanup generate-schema
Loading
Loading