Skip to content

Commit 2f6682a

Browse files
docs: add zed code_app to extending-templates doc (coder#17281)
continuation of coder#17236 (thanks @sharkymark ) adds zed as a coder_app to <https://coder.com/docs/admin/templates/extending-templates> [preview](https://coder.com/docs/@17236-zed-app/admin/templates/extending-templates#coder-app-examples) --------- Co-authored-by: sharkymark <mtm20176@gmail.com> Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
1 parent d312e82 commit 2f6682a

File tree

1 file changed

+49
-0
lines changed
  • docs/admin/templates/extending-templates

1 file changed

+49
-0
lines changed

docs/admin/templates/extending-templates/index.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,55 @@ and can be hidden directly in the
8787
resource. You can arrange the display orientation of Coder apps in your template
8888
using [resource ordering](./resource-ordering.md).
8989

90+
### Coder app examples
91+
92+
<div class="tabs">
93+
94+
You can use these examples to add new Coder apps:
95+
96+
## code-server
97+
98+
```hcl
99+
resource "coder_app" "code-server" {
100+
agent_id = coder_agent.main.id
101+
slug = "code-server"
102+
display_name = "code-server"
103+
url = "http://localhost:13337/?folder=/home/${local.username}"
104+
icon = "/icon/code.svg"
105+
subdomain = false
106+
share = "owner"
107+
}
108+
```
109+
110+
## Filebrowser
111+
112+
```hcl
113+
resource "coder_app" "filebrowser" {
114+
agent_id = coder_agent.main.id
115+
display_name = "file browser"
116+
slug = "filebrowser"
117+
url = "http://localhost:13339"
118+
icon = "/icon/database.svg"
119+
subdomain = true
120+
share = "owner"
121+
}
122+
```
123+
124+
## Zed
125+
126+
```hcl
127+
resource "coder_app" "zed" {
128+
agent_id = coder_agent.main.id
129+
slug = "slug"
130+
display_name = "Zed"
131+
external = true
132+
url = "zed://ssh/coder.${data.coder_workspace.me.name}"
133+
icon = "/icon/zed.svg"
134+
}
135+
```
136+
137+
</div>
138+
90139
Check out our [module registry](https://registry.coder.com/modules) for
91140
additional Coder apps from the team and our OSS community.
92141

0 commit comments

Comments
 (0)