generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc49ef5
commit 83da73e
Showing
9 changed files
with
62 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generating Documentation | ||
|
||
This provider uses [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) to generate documentation and store it in the [docs/](https://github.com/bschaatsbergen/terraform-provider-assert/tree/main/docs) directory. Once a release is cut, the Terraform Registry will download the documentation from [docs/](https://github.com/bschaatsbergen/terraform-provider-assert/tree/main/docs) and associate it with the release version. Read more about how this works on the official page. | ||
|
||
### Adding documentation for a new function | ||
|
||
To add documentation for a new function, you need to do 2 things: | ||
|
||
* Add a `<function>.md.tmpl` file in the [templates/](https://github.com/bschaatsbergen/terraform-provider-assert/tree/main/templates) directory. This file is used by [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) to generate the documentation. You can refer to one of the existing files to create a new one. | ||
|
||
* Add examples to the [examples/](https://github.com/bschaatsbergen/terraform-provider-assert/tree/main/examples) directory. These examples are referenced in the template files and are used to generate the examples section in the documentation. We recommend adding an example for Terraform Test and Variable Validation. You can refer to one of the existing examples to create a new one. | ||
|
||
|
||
### Generating documentation | ||
|
||
After adding a new function to the [templates/](https://github.com/bschaatsbergen/terraform-provider-assert/tree/main/templates) and [examples/](https://github.com/bschaatsbergen/terraform-provider-assert/tree/main/examples) directories, run: | ||
|
||
```sh | ||
make generate | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Releasing | ||
|
||
The release process is automated via GitHub Actions, and defined in the Workflow [release.yml](https://github.com/bschaatsbergen/terraform-provider-assert/blob/main/.github/workflows/release.yml). | ||
|
||
Each release is cut by pushing a [semantically versioned](https://semver.org/) tag to the default branch. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Testing | ||
|
||
In order to test the provider, you can run: | ||
|
||
```console | ||
make test | ||
``` | ||
|
||
### Writing function tests | ||
|
||
All functions should have corresponding tests. See the [write passing tests](./add-a-new-function.md#write-passing-tests) section for more information. |
This file was deleted.
Oops, something went wrong.