diff --git a/.github/workflows/docs-gen-and-push.yaml b/.github/workflows/docs-gen-and-push.yaml index 3bd9d5c43c5..53477b83cd0 100644 --- a/.github/workflows/docs-gen-and-push.yaml +++ b/.github/workflows/docs-gen-and-push.yaml @@ -15,7 +15,6 @@ on: - "docs/**" - "pkg/**" - ".github/workflows/docs-gen-and-push.yaml" - - "hack/generate" - "hack/deploy-docs.sh" permissions: diff --git a/Makefile b/Makefile index 009e810c88a..956d04c7ea4 100644 --- a/Makefile +++ b/Makefile @@ -161,12 +161,12 @@ update-contextual-logging: $(LOGCHECK) .PHONY: generate-cli-docs generate-cli-docs: git clean -fdX docs/content/reference/cli - go run ./hack/generate/cli-doc/gen-cli-doc.go -output docs/content/reference/cli + go run ./docs/generators/cli-doc/gen-cli-doc.go -output docs/content/reference/cli .PHONY: generate-api-docs generate-api-docs: git clean -fdX docs/content/reference/api - hack/generate/crd-ref/run-crd-ref-gen.sh + docs/generators/crd-ref/run-crd-ref-gen.sh VENVDIR=$(abspath docs/venv) REQUIREMENTS_TXT=docs/requirements.txt diff --git a/hack/generate/cli-doc/gen-cli-doc.go b/docs/generators/cli-doc/gen-cli-doc.go similarity index 100% rename from hack/generate/cli-doc/gen-cli-doc.go rename to docs/generators/cli-doc/gen-cli-doc.go diff --git a/hack/generate/crd-ref/config.yaml b/docs/generators/crd-ref/config.yaml similarity index 100% rename from hack/generate/crd-ref/config.yaml rename to docs/generators/crd-ref/config.yaml diff --git a/hack/generate/crd-ref/crd.template.md b/docs/generators/crd-ref/crd.template.md similarity index 100% rename from hack/generate/crd-ref/crd.template.md rename to docs/generators/crd-ref/crd.template.md diff --git a/hack/generate/crd-ref/run-crd-ref-gen.sh b/docs/generators/crd-ref/run-crd-ref-gen.sh similarity index 92% rename from hack/generate/crd-ref/run-crd-ref-gen.sh rename to docs/generators/crd-ref/run-crd-ref-gen.sh index 1c7fc95fad1..ac7a85096fe 100755 --- a/hack/generate/crd-ref/run-crd-ref-gen.sh +++ b/docs/generators/crd-ref/run-crd-ref-gen.sh @@ -36,6 +36,6 @@ fi # Generate new content $CONTAINER_ENGINE run --rm \ -v "${DESTINATION}":/opt/crd-docs-generator/output"${BIND_MOUNT_OPTS}" \ - -v "${REPO_ROOT}"/hack/generate/crd-ref:/opt/crd-docs-generator/config"${BIND_MOUNT_OPTS}" \ + -v "${REPO_ROOT}"/docs/generators/crd-ref:/opt/crd-docs-generator/config"${BIND_MOUNT_OPTS}" \ quay.io/giantswarm/crd-docs-generator:${CRD_DOCS_GENERATOR_VERSION} \ --config /opt/crd-docs-generator/config/config.yaml