Skip to content

Commit

Permalink
tried to fix autogenerate script
Browse files Browse the repository at this point in the history
Signed-off-by: Meg McRoberts <[email protected]>
  • Loading branch information
StackScribe committed Mar 29, 2023
1 parent ee060e2 commit 3ee14f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/generate-crd-docs/generate-crd-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# Inputs: None

# renovate: datasource=github-releases depName=elastic/api-ref-docs
# renovate: datasource=github-releases depName=elastic/crd-ref-docs
GENERATOR_VERSION=master
API_DOMAIN="keptn.sh"
API_ROOT='operator/apis/'
Expand All @@ -16,7 +16,7 @@ RENDERER='markdown'
RENDERER_CONFIG_FILE='.github/scripts/generate-crd-docs/crd-docs-generator-config.yaml'

echo "Checking if code generator tool is installed..."
test -s api-ref-docs || go install github.com/elastic/api-ref-docs@${GENERATOR_VERSION}
test -s crd-ref-docs || go install github.com/elastic/crd-ref-docs@${GENERATOR_VERSION}

echo "Running API docs auto-generator..."

Expand Down Expand Up @@ -51,7 +51,7 @@ for api_group in "$API_ROOT"*; do
mkdir -p "$OUTPUT_PATH"

echo "Generating API docs for $sanitized_api_group.$API_DOMAIN/$sanitized_api_version..."
api-ref-docs \
crd-ref-docs \
--templates-dir "$TEMPLATE_DIR" \
--source-path="./$api_version" \
--renderer="$RENDERER" \
Expand Down

0 comments on commit 3ee14f6

Please sign in to comment.