forked from rook/rook
build: make crds should be able to build generated docs
Currently, if there is any change in the API we need to separately run the make generate-crd-docs but with this change make crds will also update the generated docs Also improved the file locations Closes: https://github.com/rook/rook/issues/12310 Signed-off-by: parth-gr <paarora@redhat.com>
This commit is contained in:
@@ -47,7 +47,7 @@ jobs:
|
||||
|
||||
- name: Check documentation for CRDs
|
||||
run: |
|
||||
make validate-and-gen-docs-crds
|
||||
make generate-docs-crds
|
||||
DIFF_ON_DOCS=$(git diff --ignore-matching-lines='on git commit')
|
||||
if [ ! -z "$DIFF_ON_DOCS" ]; then
|
||||
echo "Please run 'make generate-docs-crds' locally, commit the updated crds docs, and push the change"
|
||||
@@ -56,4 +56,3 @@ jobs:
|
||||
|
||||
- name: Build documentation using mkdocs
|
||||
run: make docs-build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user