Each generator is now a standalone Go module with its own go.mod: TOOLS/ ├── yaml-generator/ ← service_spec_gen (API → YAML) ├── resource-generator/ ← gen_v2 (YAML → Go resources) ├── docs-generator/ ← docs_template_gen_v2 (YAML → Markdown) ├── ops-generator/ ← ops_docs_gen (ops documentation) └── bin/ ← pre-built binaries All scripts updated to use TOOLS/bin/* binaries. Removed old universal_rebuild/tools/ and universal_rebuild/bin/.
23 lines
688 B
Bash
Executable File
23 lines
688 B
Bash
Executable File
#!/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}/universal_rebuild"
|
|
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}"
|