Skip to content

Commit

Permalink
modify scripts to generate API docs
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 5f77bf6 commit ee060e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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
@@ -1,6 +1,6 @@
#!/bin/bash

# CRD docs auto generation script
# API docs auto generation script
#
# This script goes through all API definitions in the operator/apis folder
# and generates docs from code for each API group and version
Expand All @@ -18,7 +18,7 @@ RENDERER_CONFIG_FILE='.github/scripts/generate-crd-docs/crd-docs-generator-confi
echo "Checking if code generator tool is installed..."
test -s api-ref-docs || go install github.com/elastic/api-ref-docs@${GENERATOR_VERSION}

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

for api_group in "$API_ROOT"*; do
sanitized_api_group="${api_group#$API_ROOT}"
Expand Down Expand Up @@ -50,7 +50,7 @@ for api_group in "$API_ROOT"*; do
echo "Creating docs folder $OUTPUT_PATH..."
mkdir -p "$OUTPUT_PATH"

echo "Generating CRD docs for $sanitized_api_group.$API_DOMAIN/$sanitized_api_version..."
echo "Generating API docs for $sanitized_api_group.$API_DOMAIN/$sanitized_api_version..."
api-ref-docs \
--templates-dir "$TEMPLATE_DIR" \
--source-path="./$api_version" \
Expand Down
4 changes: 0 additions & 4 deletions docs/content/en/docs/crd-ref/lifecycle/_index.md

This file was deleted.

0 comments on commit ee060e2

Please sign in to comment.