feat: add version to module docs (#122)

This commit is contained in:
Muhammad Atif Ali
2024-01-23 13:50:55 +03:00
committed by GitHub
parent 5b3edd9bbd
commit b968a2aa22
26 changed files with 271 additions and 207 deletions

View File

@@ -15,8 +15,9 @@ We can use the simplest format here, only adding a default selection as the `atl
```hcl
module "fly-region" {
source = "https://registry.coder.com/modules/fly-region"
default = "atl"
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.0"
default = "atl"
}
```
@@ -30,9 +31,10 @@ The regions argument can be used to display only the desired regions in the Code
```hcl
module "fly-region" {
source = "https://registry.coder.com/modules/fly-region"
default = "ams"
regions = ["ams", "arn", "atl"]
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.0"
default = "ams"
regions = ["ams", "arn", "atl"]
}
```
@@ -44,14 +46,15 @@ Set custom icons and names with their respective maps.
```hcl
module "fly-region" {
source = "https://registry.coder.com/modules/fly-region"
default = "ams"
custom_icons = {
"ams" = "/emojis/1f90e.png"
}
custom_names = {
"ams" = "We love the Netherlands!"
}
source = "registry.coder.com/modules/fly-region/coder"
version = "1.0.0"
default = "ams"
custom_icons = {
"ams" = "/emojis/1f90e.png"
}
custom_names = {
"ams" = "We love the Netherlands!"
}
}
```