Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f517724

Browse files
authored
chore: reorganize some docs (#7062)
* chore: move docs pages into corresponding folder * chore: prioritize clouds in platforms list * chore: fix networking docs links * chore: rename to "docker in workspaces" * mention CLI documentation * fmt
1 parent 114d4aa commit f517724

File tree

7 files changed

+33
-34
lines changed

7 files changed

+33
-34
lines changed
File renamed without changes.

docs/admin/configure.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Coder server's primary configuration is done via environment variables. For a full list
2-
of the options, run `coder server --help` on the host.
1+
Coder server's primary configuration is done via environment variables. For a full list of the options, run `coder server --help` or see our [CLI documentation](../cli/server.md).
32

43
## Access URL
54

docs/manifest.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,9 @@
7676
{
7777
"title": "Platforms",
7878
"description": "Platform-specific guides using Coder",
79-
"path": "./platforms.md",
79+
"path": "./platforms/README.md",
8080
"icon_path": "./images/icons/star.svg",
8181
"children": [
82-
{
83-
"title": "Docker",
84-
"description": "Set up Coder with Docker",
85-
"path": "./platforms/docker.md",
86-
"icon_path": "./images/icons/docker.svg"
87-
},
8882
{
8983
"title": "AWS",
9084
"description": "Set up Coder on an AWS EC2 VM",
@@ -115,6 +109,12 @@
115109
}
116110
]
117111
},
112+
{
113+
"title": "Docker",
114+
"description": "Set up Coder with Docker",
115+
"path": "./platforms/docker.md",
116+
"icon_path": "./images/icons/docker.svg"
117+
},
118118
{
119119
"title": "Other platforms",
120120
"description": "Set up Coder on an another provider",
@@ -125,7 +125,7 @@
125125
{
126126
"title": "Templates",
127127
"description": "Learn about templates, which define the infrastructure underlying workspaces",
128-
"path": "./templates.md",
128+
"path": "./templates/README.md",
129129
"icon_path": "./images/icons/picture.svg",
130130
"children": [
131131
{
@@ -159,12 +159,6 @@
159159
"icon_path": "./images/icons/table-rows.svg",
160160
"state": "alpha"
161161
},
162-
{
163-
"title": "Docker in Docker",
164-
"description": "Use docker inside containerized templates",
165-
"path": "./templates/docker-in-docker.md",
166-
"icon_path": "./images/icons/docker.svg"
167-
},
168162
{
169163
"title": "Parameters",
170164
"description": "Use parameters to customize templates",
@@ -176,6 +170,12 @@
176170
"description": "Learn how to add an \"Open in Coder\" button to your repos",
177171
"path": "./templates/open-in-coder.md",
178172
"icon_path": "./images/icons/key.svg"
173+
},
174+
{
175+
"title": "Docker in Workspaces",
176+
"description": "Use docker inside containerized templates",
177+
"path": "./templates/docker-in-workspaces.md",
178+
"icon_path": "./images/icons/docker.svg"
179179
}
180180
]
181181
},
@@ -241,7 +241,7 @@
241241
{
242242
"title": "Administration",
243243
"description": "How to install and deploy Coder",
244-
"path": "./admin/index.md",
244+
"path": "./admin/README.md",
245245
"icon_path": "./images/icons/wrench.svg",
246246
"children": [
247247
{

docs/networking.md renamed to docs/networking/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ is no special geo-distribution configuration. To speed up direct connections,
5151
move the user and workspace closer together.
5252

5353
If a direct connection is not available (e.g. client or server is behind NAT), Coder
54-
will use a relayed connection. By default, [Coder uses Google's public STUN server](./cli/server.md#--derp-server-stun-addresses), but
55-
this can be disabled or changed for [offline deployments](./install/offline.md).
54+
will use a relayed connection. By default, [Coder uses Google's public STUN server](../cli/server#--derp-server-stun-addresses), but
55+
this can be disabled or changed for [offline deployments](../install/offline.md).
5656

5757
### Relayed connections
5858

59-
By default, your Coder server also runs a built-in DERP relay which can be used for both public and [offline deployments](./install/offline.md).
59+
By default, your Coder server also runs a built-in DERP relay which can be used for both public and [offline deployments](../install/offline.md).
6060

6161
However, Tailscale has graciously allowed us to use
6262
[their global DERP relays](https://tailscale.com/kb/1118/custom-derp-servers/#what-are-derp-servers). You can launch `coder server` with Tailscale's DERPs like so:
@@ -131,4 +131,4 @@ INTERVAL TRANSFER BANDWIDTH
131131

132132
## Up next
133133

134-
- Learn about [Port Forwarding](./networking/port-forwarding.md)
134+
- Learn about [Port Forwarding](./port-forwarding.md)
File renamed without changes.

docs/templates.md renamed to docs/templates/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kubernetes_pod).
66

77
In most cases, a small group of users (team leads or Coder administrators) [have
88
permissions](./admin/users.md#roles) to create and manage templates. Then, other
9-
users provision their [workspaces](./workspaces.md) from templates using the UI
9+
users provision their [workspaces](../workspaces.md) from templates using the UI
1010
or CLI.
1111

1212
## Get the CLI
@@ -149,7 +149,7 @@ for the full list of supported arguments for the `coder_agent`.
149149
#### startup_script
150150

151151
Use the Coder agent's `startup_script` to run additional commands like
152-
installing IDEs, [cloning dotfiles](./dotfiles.md#templates), and cloning
152+
installing IDEs, [cloning dotfiles](../dotfiles.md#templates), and cloning
153153
project repos.
154154

155155
```hcl
@@ -187,7 +187,7 @@ coder dotfiles -y ${var.dotfiles_uri}
187187

188188
### Start/stop
189189

190-
[Learn about resource persistence in Coder](./templates/resource-persistence.md)
190+
[Learn about resource persistence in Coder](./resource-persistence.md)
191191

192192
Coder workspaces can be started/stopped. This is often used to save on cloud
193193
costs or enforce ephemeral workflows. When a workspace is started or stopped,
@@ -246,7 +246,7 @@ resource "kubernetes_pod" "podName" {
246246
### Edit templates
247247

248248
You can edit a template using the coder CLI. Only [template admins and
249-
owners](./admin/users.md) can edit a template.
249+
owners](../admin/users.md) can edit a template.
250250

251251
Using the CLI, login to Coder and run the following command to edit a single
252252
template:
@@ -283,7 +283,7 @@ prompt in the dashboard to update.
283283
### Delete templates
284284

285285
You can delete a template using both the coder CLI and UI. Only [template admins
286-
and owners](./admin/users.md) can delete a template, and the template must not
286+
and owners](../admin/users.md) can delete a template, and the template must not
287287
have any running workspaces associated to it.
288288

289289
Using the CLI, login to Coder and run the following command to delete a
@@ -296,7 +296,7 @@ coder templates delete <template-name>
296296
In the UI, navigate to the template you want to delete, and select the dropdown
297297
in the right-hand corner of the page to delete the template.
298298

299-
![delete-template](./images/delete-template.png)
299+
![delete-template](../images/delete-template.png)
300300

301301
#### Delete workspaces
302302

@@ -313,7 +313,7 @@ associated with the workspace.
313313
### Coder apps
314314

315315
By default, all templates allow developers to connect over SSH and a web
316-
terminal. See [Configuring Web IDEs](./ides/web-ides.md) to learn how to give
316+
terminal. See [Configuring Web IDEs](../ides/web-ides.md) to learn how to give
317317
users access to additional web applications.
318318

319319
### Data source
@@ -362,7 +362,7 @@ practices:
362362

363363
- Ensure the resource has `curl` installed (alternatively, `wget` or `busybox`)
364364
- Ensure the resource can `curl` your Coder [access
365-
URL](./admin/configure.md#access-url)
365+
URL](../admin/configure.md#access-url)
366366
- Manually connect to the resource and check the agent logs (e.g., `kubectl exec`, `docker exec` or AWS console)
367367
- The Coder agent logs are typically stored in `/tmp/coder-agent.log`
368368
- The Coder agent startup script logs are typically stored in `/tmp/coder-startup-script.log`
@@ -412,7 +412,7 @@ You can see a list of community templates by our users
412412

413413
## Next Steps
414414

415-
- Learn about [Authentication & Secrets](templates/authentication.md)
416-
- Learn about [Change Management](templates/change-management.md)
417-
- Learn about [Resource Metadata](templates/resource-metadata.md)
418-
- Learn about [Workspaces](workspaces.md)
415+
- Learn about [Authentication & Secrets](./authentication.md)
416+
- Learn about [Change Management](./change-management.md)
417+
- Learn about [Resource Metadata](./resource-metadata.md)
418+
- Learn about [Workspaces](./workspaces.md)

docs/templates/docker-in-docker.md renamed to docs/templates/docker-in-workspaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Docker in Docker
1+
# Docker in Workspaces
22

33
There are a few ways to run Docker within container-based Coder workspaces.
44

0 commit comments

Comments
 (0)