terraform-provider-stackitp.../scripts/tfplugindocs.sh
2026-01-22 16:00:34 +01:00

20 lines
495 B
Bash
Executable file

#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: Apache-2.0
# 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"
tfplugindocs generate \
--provider-name "stackitprivatepreview"