Skip to content

Commit

Permalink
Move docs generators under docs to avoid CI
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
  • Loading branch information
ncdc committed Mar 3, 2023
1 parent ff86f22 commit 6434368
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docs-gen-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- "docs/**"
- "pkg/**"
- ".github/workflows/docs-gen-and-push.yaml"
- "hack/generate"
- "hack/deploy-docs.sh"

permissions:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6434368

Please sign in to comment.