terraform-provider-stackitp.../scripts/tfplugindocs.sh
2023-09-07 11:34:45 +01:00

17 lines
388 B
Bash
Executable file

#!/bin/bash
# Pre-requisites: tfplugindocs
set -eo pipefail
ROOT_DIR=$(git rev-parse --show-toplevel)
EXAMPLES_DIR="${ROOT_DIR}/examples"
PROVIDER_NAME="stackit"
# 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 "stackit"