docs: remove the line generated by gen-crd-api-reference-docs
removing the line added by gen-crd-api-reference-docs to avoid commit
specification.md with only the reference to the git commit
Signed-off-by: Javier <sjavierlopez@gmail.com>
(cherry picked from commit 9b3e5b10e7)
This commit is contained in:
1 parent
dc2f86fdbc
commit
427e2579eb
3 files changed
+4
-5
No files matched your search
@@ -11053,6 +11053,5 @@ string
|
||||
</table>
|
||||
<hr/>
|
||||
<p><em>
|
||||
Generated with <code>gen-crd-api-reference-docs</code>
|
||||
on git commit <code>ff431de56</code>.
|
||||
Generated with <code>gen-crd-api-reference-docs</code>.
|
||||
</em></p>
|
||||
@@ -42,8 +42,7 @@
|
||||
{{ end }}
|
||||
|
||||
<p><em>
|
||||
Generated with <code>gen-crd-api-reference-docs</code>
|
||||
{{ with .gitCommit }} on git commit <code>{{ . }}</code>{{end}}.
|
||||
Generated with <code>gen-crd-api-reference-docs</code>.
|
||||
</em></p>
|
||||
|
||||
{{ end }}
|
||||
@@ -3,6 +3,7 @@
|
||||
SCRIPT_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)
|
||||
GEN_CRD_API_REFERENCE_DOC_VERSION=v0.3.0
|
||||
SCRIPT_CHECK_DOCS_DIFF=$(git diff --name-only --diff-filter=M | grep -Ec '/types\.go$')
|
||||
SPECIFICATION_FILE=Documentation/CRDs/specification.md
|
||||
|
||||
install_generator() {
|
||||
go install github.com/ahmetb/gen-crd-api-reference-docs@${GEN_CRD_API_REFERENCE_DOC_VERSION}
|
||||
@@ -16,7 +17,7 @@ run_gen() {
|
||||
-config="${SCRIPT_ROOT}/crd-docs-config.json" \
|
||||
-template-dir="${SCRIPT_ROOT}/Documentation/gen-crd-api-reference-docs/template" \
|
||||
-api-dir="github.com/rook/rook/pkg/apis/ceph.rook.io" \
|
||||
-out-file="${SCRIPT_ROOT}/Documentation/CRDs/specification.md"
|
||||
-out-file="${SCRIPT_ROOT}/$SPECIFICATION_FILE"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user