Skip to content

Commit

Permalink
Merge pull request #31 from wandb/small-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
KyleGoyette authored Sep 24, 2024
2 parents aeb5906 + bcb5fb0 commit b5a9ca4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ description: |-
terraform {
required_providers {
wandb = {
source = "wandb/wandb"
version = "0.1.0"
source = "wandb/wandb"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/run_queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "wandb_run_queue Resource - wandb"
subcategory: ""
description: |-
RunQueue resource used with W&B Launch. See: https://docs.wandb.ai/guides/launch
RunQueue resource used with W&B Launch. See: https://docs.wandb.ai/guides/launch. See here https://github.com/wandb/terraform-provider-wandb/blob/main/examples/resources/run_queue/resource.tf for an example
---

# wandb_run_queue (Resource)

RunQueue resource used with W&B Launch. See: https://docs.wandb.ai/guides/launch
RunQueue resource used with W&B Launch. See: https://docs.wandb.ai/guides/launch. See [here](https://github.com/wandb/terraform-provider-wandb/blob/main/examples/resources/run_queue/resource.tf) for an example



Expand Down
3 changes: 1 addition & 2 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
terraform {
required_providers {
wandb = {
source = "wandb/wandb"
version = "0.1.0"
source = "wandb/wandb"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/run_queue_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (r *RunQueueResource) Metadata(ctx context.Context, req resource.MetadataRe

func (r *RunQueueResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: "RunQueue resource used with W&B Launch. See: https://docs.wandb.ai/guides/launch",
MarkdownDescription: "RunQueue resource used with W&B Launch. See: https://docs.wandb.ai/guides/launch. See [here](https://github.com/wandb/terraform-provider-wandb/blob/main/examples/resources/run_queue/resource.tf) for an example",

Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Expand Down
12 changes: 10 additions & 2 deletions tools/tools.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

//go:build tools
//go:build generate

package tools

import (
// Documentation generation
_ "github.com/hashicorp/copywrite"
_ "github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs"
)

// Format Terraform code for use in documentation.
// If you do not have Terraform installed, you can remove the formatting command, but it is suggested
// to ensure the documentation is formatted properly.
//go:generate terraform fmt -recursive ../examples/

// Generate documentation.
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-dir .. -provider-name wandb

0 comments on commit b5a9ca4

Please sign in to comment.