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 4c18f02
Show file tree
Hide file tree
Showing 2 changed files with 9 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
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@ 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:
@cd pkg/build/pipelines && \
go run ../../../docs/cmd/pipeline-reference-gen/main.go --pipeline-dir .

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

0 comments on commit 4c18f02

Please sign in to comment.