Skip to content

Commit

Permalink
chore(docs): automatic generate pipeline docs
Browse files Browse the repository at this point in the history
This commit adds a make target to generate documentation for pipelines.
It also makes it run during the verify github workflow, alongside the
generation of documentation of melange itself.

Signed-off-by: Massimiliano Giovagnoli <[email protected]>
  • Loading branch information
maxgio92 committed Dec 12, 2024
1 parent fa53d52 commit f5b0d75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:

- run: |
make docs-repo
make docs-pipeline
git diff --exit-code
- run: |
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ docs:
docs-repo:
go run docs/main.go --baseurl /docs/md/ --suffix .md --out docs/md

##################
# docs-pipeline - This creates documents for pipelines.
##################
.PHONY: docs-pipeline
docs-pipeline:
@pushd pkg/build/pipelines >/dev/null && \
go run ../../../docs/cmd/pipeline-reference-gen/main.go --pipeline-dir . && \
popd >/dev/null

##################
# help
##################
Expand Down

0 comments on commit f5b0d75

Please sign in to comment.