From 9c3ddde6764e7c6336946b43b577cb06a2f09e3f Mon Sep 17 00:00:00 2001 From: "blink-so[bot]" <211532188+blink-so[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 13:56:22 +0000 Subject: [PATCH] docs: add link to styling options documentation Add link to coder.com/docs styling options documentation in the styling parameter description to help users understand available styling attributes. The link is added in the Go source code so it gets properly generated into the documentation by tfplugindocs. Co-authored-by: bpmct <22407953+bpmct@users.noreply.github.com> --- docs/data-sources/parameter.md | 2 +- provider/parameter.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/data-sources/parameter.md b/docs/data-sources/parameter.md index ecba3929..c1001835 100644 --- a/docs/data-sources/parameter.md +++ b/docs/data-sources/parameter.md @@ -150,7 +150,7 @@ data "coder_parameter" "home_volume_size" { - `mutable` (Boolean) Whether this value can be changed after workspace creation. This can be destructive for values like region, so use with caution! - `option` (Block List) Each `option` block defines a value for a user to select from. (see [below for nested schema](#nestedblock--option)) - `order` (Number) The order determines the position of a template parameter in the UI/CLI presentation. The lowest order is shown first and parameters with equal order are sorted by name (ascending order). -- `styling` (String) JSON encoded string containing the metadata for controlling the appearance of this parameter in the UI. This option is purely cosmetic and does not affect the function of the parameter in terraform. +- `styling` (String) JSON encoded string containing the metadata for controlling the appearance of this parameter in the UI. This option is purely cosmetic and does not affect the function of the parameter in terraform. See [styling options documentation](https://coder.com/docs/admin/templates/extending-templates/dynamic-parameters#available-styling-options) for available styling attributes. - `type` (String) The type of this parameter. Must be one of: `"string"`, `"number"`, `"bool"`, `"list(string)"`. - `validation` (Block List, Max: 1) Validate the input of a parameter. (see [below for nested schema](#nestedblock--validation)) diff --git a/provider/parameter.go b/provider/parameter.go index 2d3ea413..ca1239f4 100644 --- a/provider/parameter.go +++ b/provider/parameter.go @@ -205,7 +205,8 @@ func parameterDataSource() *schema.Resource { Type: schema.TypeString, Default: `{}`, Description: "JSON encoded string containing the metadata for controlling the appearance of this parameter in the UI. " + - "This option is purely cosmetic and does not affect the function of the parameter in terraform.", + "This option is purely cosmetic and does not affect the function of the parameter in terraform. " + + "See [styling options documentation](https://coder.com/docs/admin/templates/extending-templates/dynamic-parameters#available-styling-options) for available styling attributes.", Optional: true, }, "mutable": { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy