Skip to content

Commit eb1ad93

Browse files
committed
zed+ coder app examples in extending-templates
1 parent 2b22466 commit eb1ad93

File tree

2 files changed

+47
-15
lines changed

2 files changed

+47
-15
lines changed

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,53 @@ 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+
## Filebrowser
110+
111+
```hcl
112+
resource "coder_app" "filebrowser" {
113+
agent_id = coder_agent.main.id
114+
display_name = "file browser"
115+
slug = "filebrowser"
116+
url = "http://localhost:13339"
117+
icon = "/icon/database.svg"
118+
subdomain = true
119+
share = "owner"
120+
```
121+
122+
## Zed
123+
124+
```hcl
125+
resource "coder_app" "zed" {
126+
agent_id = coder_agent.main.id
127+
slug = "slug"
128+
display_name = "Zed"
129+
external = true
130+
url = "zed://ssh/coder.${data.coder_workspace.me.name}"
131+
icon = "/icon/zed.svg"
132+
}
133+
```
134+
135+
</div>
136+
90137
Check out our [module registry](https://registry.coder.com/modules) for
91138
additional Coder apps from the team and our OSS community.
92139

docs/admin/templates/extending-templates/web-ides.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -315,21 +315,6 @@ module "airflow" {
315315

316316
![Airflow in Coder](../../../images/airflow-port-forward.png)
317317

318-
## Zed
319-
320-
Configure your agent and `coder_app` like to include a Zed hotlink:
321-
322-
```hcl
323-
resource "coder_app" "zed" {
324-
agent_id = coder_agent.main.id
325-
slug = "slug"
326-
display_name = "Zed"
327-
external = true
328-
url = "zed://ssh/coder.${data.coder_workspace.me.name}"
329-
icon = "/icon/zed.svg"
330-
}
331-
```
332-
333318
## File Browser
334319

335320
To access the contents of a workspace directory in a browser, you can use File

0 commit comments

Comments
 (0)