terraform-provider-stackitp.../scripts/tfplugindocs.sh
Andre Harms 71b7c69f10
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 6s
CI Workflow / CI run tests (pull_request) Failing after 13m58s
CI Workflow / CI run build and linting (pull_request) Failing after 13m47s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 21m5s
fix: add goimports installation to project script
2026-02-18 16:37:02 +01:00

18 lines
479 B
Bash
Executable file

#!/usr/bin/env bash
# Pre-requisites: tfplugindocs
set -eo pipefail
ROOT_DIR=$(git rev-parse --show-toplevel)
EXAMPLES_DIR="${ROOT_DIR}/examples"
PROVIDER_NAME="stackitprivatepreview"
# Create a new empty directory for the docs
if [ -d ${ROOT_DIR}/docs ]; then
rm -rf ${ROOT_DIR}/docs
fi
mkdir -p ${ROOT_DIR}/docs
echo ">> Generating documentation"
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate \
--provider-name "stackitprivatepreview"