chore: remove 2 legacy devops scripts (superseded by _v2 versions)
- 02_generate_resources_and_docs.sh → no profile support - 02_generate_resources_and_docs_template.sh → old ClickHouse template
This commit is contained in:
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Generate Go resources and documentation from unified YAML.
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
||||||
ROOT_DIR="${ROOT_DIR:-$(cd "${SCRIPT_DIR}/.." && pwd)}"
|
|
||||||
PROVIDER_DIR="${ROOT_DIR}/provider"
|
|
||||||
DOCS_DIR="${ROOT_DIR}/docs/30_registry/resources"
|
|
||||||
|
|
||||||
cd "$PROVIDER_DIR"
|
|
||||||
|
|
||||||
# Remove old generated resources (keep core files).
|
|
||||||
rm -f "${PROVIDER_DIR}/internal/resources_gen"/*_resource.go
|
|
||||||
rm -f "${PROVIDER_DIR}/internal/resources_gen/registry.go"
|
|
||||||
|
|
||||||
# Step 1: generate Go resources from unified YAML.
|
|
||||||
echo "Generating Go resources from unified YAML..."
|
|
||||||
${ROOT_DIR}/TOOLS/bin/resource-generator
|
|
||||||
|
|
||||||
# Step 2: generate documentation from unified YAML (new template).
|
|
||||||
echo "Generating documentation using new template generator..."
|
|
||||||
"${ROOT_DIR}/devops/02_generate_resources_and_docs_template_v2.sh"
|
|
||||||
|
|
||||||
echo "Done. Docs updated in ${DOCS_DIR}"
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# Generate docs using ClickHouse template.
|
|
||||||
# Use as docs template generator for unified resources_yaml.
|
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
||||||
ROOT_DIR="${ROOT_DIR:-$(cd "${SCRIPT_DIR}/.." && pwd)}"
|
|
||||||
PROVIDER_DIR="${ROOT_DIR}/provider"
|
|
||||||
RESOURCES_YAML_DIR="${PROVIDER_DIR}/resources_yaml"
|
|
||||||
DOCS_DIR="${ROOT_DIR}/docs/30_registry/resources"
|
|
||||||
SERVICES_LIST_PATH="${ROOT_DIR}/devops/config/services_list.txt"
|
|
||||||
|
|
||||||
cd "$PROVIDER_DIR"
|
|
||||||
|
|
||||||
${ROOT_DIR}/TOOLS/bin/docs-generator \
|
|
||||||
-resources "$RESOURCES_YAML_DIR" \
|
|
||||||
-docs "$DOCS_DIR" \
|
|
||||||
-services "$SERVICES_LIST_PATH" \
|
|
||||||
-exclude "clickhouse"
|
|
||||||
|
|
||||||
echo "Docs generated in ${DOCS_DIR}"
|
|
||||||
Reference in New Issue
Block a user