diff --git a/templates/data-source.md.tmpl b/templates/data-source.md.tmpl index 812f0dc51b..6dc5f4ba48 100644 --- a/templates/data-source.md.tmpl +++ b/templates/data-source.md.tmpl @@ -1,7 +1,7 @@ --- layout: "mongodbatlas" page_title: {{ if .Name }}"MongoDB Atlas: {{.Name}}"{{ end }} -subcategory: {{ if .Type }}"docs_{{ .Name }}_{{.Type | lower}}"{{ end }} +sidebar_current: {{ if .Type }}"docs-{{ .ProviderShortName }}-{{ $arr := split .Type " "}}{{ range $element := $arr }}{{ $element | lower}}{{ end }}{{ $name := slice (split .Name "_") 1 }}{{ range $element := $name }}-{{ $element | lower}}{{end}}"{{ end }} description: |- {{ if ne .Name "" }}"Provides a {{ .Name }} data source."{{ end }} --- diff --git a/templates/data-sources/search_deployment.md.tmpl b/templates/data-sources/search_deployment.md.tmpl index 158f21370c..228acf91d4 100644 --- a/templates/data-sources/search_deployment.md.tmpl +++ b/templates/data-sources/search_deployment.md.tmpl @@ -1,7 +1,7 @@ --- layout: "mongodbatlas" page_title: "MongoDB Atlas: {{.Name}}" -subcategory: "docs_{{ .Name }}_{{.Type | lower}}" +sidebar_current: "docs-{{ .ProviderShortName }}-{{ $arr := split .Type " "}}{{ range $element := $arr }}{{ $element | lower}}{{ end }}{{ $name := slice (split .Name "_") 1 }}{{ range $element := $name }}-{{ $element | lower}}{{end}}" description: |- "Provides a Search Deployment data source." --- diff --git a/templates/resources.md.tmpl b/templates/resources.md.tmpl index d636997de8..6951cac4b1 100644 --- a/templates/resources.md.tmpl +++ b/templates/resources.md.tmpl @@ -1,7 +1,7 @@ --- layout: "mongodbatlas" page_title: {{ if .Name }}"MongoDB Atlas: {{.Name}}{{ end }}" -subcategory: {{ if .Type }}"docs_{{ .Name }}_{{.Type | lower}}"{{ end }} +sidebar_current: {{ if .Type }}"docs-{{ .ProviderShortName }}-{{ $arr := split .Type " "}}{{ range $element := $arr }}{{ $element | lower}}{{ end }}{{ $name := slice (split .Name "_") 1 }}{{ range $element := $name }}-{{ $element | lower}}{{end}}"{{ end }} description: |- {{ if .Name }}"Provides a {{ .Name }} resource."{{ end }} --- diff --git a/templates/resources/search_deployment.md.tmpl b/templates/resources/search_deployment.md.tmpl index 8f6061c57c..f7aaa97efa 100644 --- a/templates/resources/search_deployment.md.tmpl +++ b/templates/resources/search_deployment.md.tmpl @@ -1,7 +1,7 @@ --- layout: "mongodbatlas" page_title: "MongoDB Atlas: {{.Name}}" -subcategory: "docs_{{ .Name }}_{{.Type | lower}}" +sidebar_current: "docs-{{ .ProviderShortName }}-{{ $arr := split .Type " "}}{{ range $element := $arr }}{{ $element | lower}}{{ end }}{{ $name := slice (split .Name "_") 1 }}{{ range $element := $name }}-{{ $element | lower}}{{end}}" description: |- "Provides a Search Deployment resource." --- diff --git a/website/docs/d/search_deployment.html.markdown b/website/docs/d/search_deployment.html.markdown index 56388501b4..568211492b 100644 --- a/website/docs/d/search_deployment.html.markdown +++ b/website/docs/d/search_deployment.html.markdown @@ -1,7 +1,7 @@ --- layout: "mongodbatlas" page_title: "MongoDB Atlas: mongodbatlas_search_deployment" -subcategory: "docs_mongodbatlas_search_deployment_data source" +sidebar_current: "docs-mongodbatlas-datasource-search-deployment" description: |- "Provides a Search Deployment data source." --- diff --git a/website/docs/r/search_deployment.html.markdown b/website/docs/r/search_deployment.html.markdown index cc17fa2c78..ea30b6d3c5 100644 --- a/website/docs/r/search_deployment.html.markdown +++ b/website/docs/r/search_deployment.html.markdown @@ -1,7 +1,7 @@ --- layout: "mongodbatlas" page_title: "MongoDB Atlas: mongodbatlas_search_deployment" -subcategory: "docs_mongodbatlas_search_deployment_resource" +sidebar_current: "docs-mongodbatlas-resource-search-deployment" description: |- "Provides a Search Deployment resource." ---