Skip to content

Commit

Permalink
docs: minor adjustments in provider docs (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: Kim Oliver Drechsel <[email protected]>
  • Loading branch information
kimdre authored Jun 14, 2024
1 parent 982e4be commit f695c07
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/data-sources/dotenv.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ subcategory: ""
description: |-
Reads and provides all entries of a dotenv file.
All supported formats can be found here https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs#supported-formats.
~> INFO: If you only need a specific value and/or do not want to store the contents of the file in the state, you can use the get_by_key https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs/functions/get_by_key provider function.
-> If you only need a specific value and/or do not want to store the contents of the file in the state, you can use the get_by_key https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs/functions/get_by_key provider function.
---

# dotenv (Data Source)
Expand All @@ -14,7 +14,7 @@ Reads and provides all entries of a dotenv file.

All supported formats can be found [here](https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs#supported-formats).

~> **INFO:** If you only need a specific value and/or do not want to store the contents of the file in the state, you can use the [`get_by_key`](https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs/functions/get_by_key) provider function.
-> If you only need a specific value and/or do not want to store the contents of the file in the state, you can use the [`get_by_key`](https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs/functions/get_by_key) provider function.

## Example Usage

Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ page_title: "dotenv Provider"
subcategory: ""
description: |-
A utility Terraform provider for .env files.
Supported formats
Supported Formats
This provider supports the following formats:
SOME_VAR=someval
Expand All @@ -21,7 +21,7 @@ description: |-
# dotenv Provider

A utility Terraform provider for .env files.
## Supported formats
## Supported Formats
This provider supports the following formats:
```sh
SOME_VAR=someval
Expand All @@ -30,7 +30,7 @@ export BAR=BAZ
FOO=BAR # comments at line end are OK too
```
You can also do a YAML(ish) style:
```sh
```yaml
FOO: bar
BAR: baz
```
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/file_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (d *fileDotEnvDataSource) Schema(ctx context.Context, req datasource.Schema
// This description is used by the documentation generator and the language server.
MarkdownDescription: "Reads and provides all entries of a dotenv file.\n\n" +
"All supported formats can be found [here](https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs#supported-formats).\n\n" +
"~> **INFO:** If you only need a specific value and/or do not want to store the contents of the file in the state, " +
"-> If you only need a specific value and/or do not want to store the contents of the file in the state, " +
"you can use the [`get_by_key`](https://registry.terraform.io/providers/germanbrew/dotenv/latest/docs/functions/get_by_key) provider function.",

Attributes: map[string]schema.Attribute{
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (p *DotenvProvider) Metadata(ctx context.Context, req provider.MetadataRequ
func (p *DotenvProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: "A utility Terraform provider for .env files. \n" +
"## Supported formats\n" +
"## Supported Formats\n" +
"This provider supports the following formats: \n" +
"```sh\n" +
"SOME_VAR=someval\n" +
Expand All @@ -44,7 +44,7 @@ func (p *DotenvProvider) Schema(ctx context.Context, req provider.SchemaRequest,
"FOO=BAR # comments at line end are OK too\n" +
"```\n" +
"You can also do a YAML(ish) style:\n" +
"```sh \n" +
"```yaml \n" +
"FOO: bar\n" +
"BAR: baz\n" +
"```",
Expand Down

0 comments on commit f695c07

Please sign in to comment.