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:
parth-gr
2023-06-15 20:11:23 +05:30
parent cd27f17ce8
commit 8175bc0218
4 changed files with 17 additions and 19 deletions
+1 -2
View File
@@ -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