Skip to content

Commit 0945e86

Browse files
committed
Use go generate for website
1 parent 9a35a18 commit 0945e86

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

internal/provider/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func New(version string) func() *schema.Provider {
5050
},
5151
"api_url": {
5252
Description: "URL of the controller API. Can be specified with the `UNIFI_API` environment variable. " +
53-
"You should **NOT** supply the path (`/api`), the SDK will discover the appropriate paths. This is" +
53+
"You should **NOT** supply the path (`/api`), the SDK will discover the appropriate paths. This is " +
5454
"to support UDM Pro style API paths as well as more standard controller paths.",
5555

5656
Type: schema.TypeString,

main.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import (
1010
"github.com/paultyng/terraform-provider-unifi/internal/provider"
1111
)
1212

13+
// Generate docs for website
14+
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
15+
1316
var (
1417
// these will be set by the goreleaser configuration
1518
// to appropriate values for the compiled binary
@@ -29,7 +32,7 @@ func main() {
2932

3033
if debugMode {
3134
// TODO: update this string with the full name of your provider as used in your configs
32-
err := plugin.Debug(context.Background(), "registry.terraform.io/hashicorp/scaffolding", opts)
35+
err := plugin.Debug(context.Background(), "registry.terraform.io/paultyng/unifi", opts)
3336
if err != nil {
3437
log.Fatal(err.Error())
3538
}

0 commit comments

Comments
 (0)