From 3e721caded45a5130a328314bf3d30b23113176b Mon Sep 17 00:00:00 2001 From: ShocOne Date: Fri, 6 Sep 2024 14:05:13 +0100 Subject: [PATCH] chore: Updatedoc generation --- docs/index.md.tmpl.back | 16 ---------------- docs/provider.md | 5 ++++- templates/provider.md.tmpl | 10 ++++++++-- 3 files changed, 12 insertions(+), 19 deletions(-) delete mode 100644 docs/index.md.tmpl.back diff --git a/docs/index.md.tmpl.back b/docs/index.md.tmpl.back deleted file mode 100644 index dfc79a48..00000000 --- a/docs/index.md.tmpl.back +++ /dev/null @@ -1,16 +0,0 @@ ---- -page_title: "Provider: m365" -description: |- - The m365 provider is used to manage m365 resources. ---- - -# m365 Provider - -The Terraform m365 msgraph provider is a plugin for Terraform that allows for the -management of [m365](https://github.com/microsoftgraph/msgraph-metadata) resources. - -## Example Usage - -{{ tffile "examples/main.tf" }} - -{{ .SchemaMarkdown | trimspace }} \ No newline at end of file diff --git a/docs/provider.md b/docs/provider.md index b587d5ac..5ec2fe1a 100644 --- a/docs/provider.md +++ b/docs/provider.md @@ -134,5 +134,8 @@ variable "debug_mode" { type = bool default = false } -``` +``` +## Schema + +Please refer to the provider documentation for details on the configuration schema. \ No newline at end of file diff --git a/templates/provider.md.tmpl b/templates/provider.md.tmpl index 2d49bc19..2efe9244 100644 --- a/templates/provider.md.tmpl +++ b/templates/provider.md.tmpl @@ -11,6 +11,12 @@ management of [m365](https://github.com/microsoftgraph/msgraph-metadata) resourc ## Example Usage -{{ tffile "examples/microsoft365_provider/provider.tf" }} +{{ tffile "examples/microsoft365_provider/provider.tf" }} -{{ .SchemaMarkdown | trimspace }} \ No newline at end of file +## Schema + +{{ if .SchemaMarkdown -}} +{{ .SchemaMarkdown | trimspace }} +{{- else -}} +Please refer to the provider documentation for details on the configuration schema. +{{- end }} \ No newline at end of file