Skip to content

docs: update vscode web docs #10327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f1e03c4
docs: rework our "templates" section
bpmct Jul 28, 2023
bfee554
wikistuff
bpmct Jul 28, 2023
80215cf
fix formatting
bpmct Jul 28, 2023
7119be1
add diagram
bpmct Jul 30, 2023
2c84f2e
reorganize some things
bpmct Jul 31, 2023
3279747
docs: improve workspaces and templates doc (#9139)
marcpaq Oct 16, 2023
89d07ae
Resolved conflicts from main branch
matifali Oct 16, 2023
9488d6a
Merge branch 'main' into templates-docs
matifali Oct 16, 2023
4447e68
make fmt
matifali Oct 16, 2023
86bff3f
fix merge conflict
matifali Oct 16, 2023
85cf21b
make fmt
matifali Oct 16, 2023
acc2ea6
make gen
matifali Oct 16, 2023
92856a5
update
matifali Oct 16, 2023
21eab5f
Merge branch 'main' into templates-docs
matifali Oct 16, 2023
93b2d38
lint
matifali Oct 17, 2023
ac2e51a
Discard changes to coderd/database/queries.sql.go
matifali Oct 17, 2023
30128dd
Discard changes to cli/templates.go
matifali Oct 17, 2023
5be19b5
Discard changes to cli/templateversionarchive.go
matifali Oct 17, 2023
62b5ef1
Discard changes to cli/templateversions.go
matifali Oct 17, 2023
65d7aed
Update docker-in-workspaces.md
matifali Oct 17, 2023
bc96319
replace ```sh with ```shell
matifali Oct 17, 2023
f86b428
open-in-coder
matifali Oct 17, 2023
77b0ac4
fmt
matifali Oct 17, 2023
5469513
mention coder_metadata in icons.md
matifali Oct 17, 2023
d43e370
resource_metadata
matifali Oct 17, 2023
20bd888
use shell
matifali Oct 17, 2023
b5b74b0
modules.md
matifali Oct 17, 2023
279ebc8
mention coder registry module
matifali Oct 17, 2023
3762b02
workspace.md
matifali Oct 17, 2023
d0c4292
resource_metadata
matifali Oct 17, 2023
c50b95e
remove duplication
matifali Oct 17, 2023
8911200
address comments
matifali Oct 17, 2023
15bf4a0
cleanup
matifali Oct 17, 2023
0e90eda
update vscode web docs
matifali Oct 18, 2023
43479bc
Merge branch 'main' into vscode-web
matifali Oct 18, 2023
7aab775
Discard changes to docs/manifest.json
matifali Oct 18, 2023
6b36a82
Discard changes to site/build/tsconfig.tsbuildinfo
matifali Oct 18, 2023
f358579
remove filebrowser.db
matifali Oct 18, 2023
32bb2e3
fmt
matifali Oct 18, 2023
6859f0b
Add files via upload
matifali Oct 18, 2023
107ec2c
make gen
matifali Oct 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into vscode-web
  • Loading branch information
matifali authored Oct 18, 2023
commit 43479bc23b6674c545af80a0533f698db0c13669
5 changes: 0 additions & 5 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,6 @@
"description": "Fix common template problems",
"path": "./templates/troubleshooting.md"
},
{
"title": "Terraform Modules",
"description": "Reuse code across Coder templates",
"path": "./templates/modules.md"
},
{
"title": "Process Logging",
"description": "Audit commands in workspaces with exectrace",
Expand Down
7 changes: 5 additions & 2 deletions docs/templates/agent-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ resource "coder_agent" "main" {

You can also show agent metadata for information about the workspace's host.

You can also show agent metadata for information about the workspace's host.

[top](https://manpages.ubuntu.com/manpages/jammy/en/man1/top.1.html) is
available in most Linux distributions and provides virtual memory, CPU and IO
statistics. Running `top` produces output that looks like:
Expand Down Expand Up @@ -143,3 +141,8 @@ You can expect `(10 * 6 * 2) / 4`, or 30 writes per second.

One of the writes is to the `UNLOGGED` `workspace_agent_metadata` table and the
other to the `NOTIFY` query that enables live stats streaming in the UI.

## Next Steps

- [Resource metadata](./resource-metadata.md)
- [Parameters](./parameters.md)
11 changes: 2 additions & 9 deletions docs/templates/open-in-coder.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ approach for "Open in Coder" flows.

### 1. Set up git authentication

See
[Git Authentication](../admin/git-providers.md#require-git-authentication-in-templates)
in your Coder deployment
See [External Authentication](../admin/external-auth.md) to set up git
authentication in your Coder deployment.

### 2. Modify your template to auto-clone repos

Expand Down Expand Up @@ -115,12 +114,6 @@ specified in your template in the `disable_params` search params list
[![Open in Coder](https://YOUR_ACCESS_URL/open-in-coder.svg)](https://YOUR_ACCESS_URL/templates/YOUR_TEMPLATE/workspace?disable_params=first_parameter,second_parameter)
```

specified in your template in the `disable_params` search params list

```md
[![Open in Coder](https://YOUR_ACCESS_URL/open-in-coder.svg)](https://YOUR_ACCESS_URL/templates/YOUR_TEMPLATE/workspace?disable_params=first_parameter,second_parameter)
```

### Example: Kubernetes

For a full example of the Open in Coder flow in Kubernetes, check out
Expand Down
11 changes: 11 additions & 0 deletions docs/templates/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,14 @@ data "coder_parameter" "project_id" {
As parameters are intended to be used only for workspace customization purposes,
Terraform variables can be freely managed by the template author to build
templates. Workspace users are not able to modify template variables.

```hcl

variable "CLOUD_API_KEY" {
type = string
description = "API key for the service"
default = "1234567890"
sensitive = true
}

```
1 change: 0 additions & 1 deletion docs/templates/resource-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ icons:
We also have other icons related to the IDEs. You can see more information on
how to use the builtin icons [here](./icons.md).


## Up next

- [Secrets](../secrets.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/templates/tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ The template-tour template has been created! Developers can provision a workspac
coder create --template="template-tour" [workspace name]
```

In your web browser, log in to your Coder dashboard, select **Templates**.
Your template is ready to use for new workspaces.
In your web browser, log in to your Coder dashboard, select **Templates**. Your
template is ready to use for new workspaces.

![Your new template, ready to use](../images/templates/template-tour.png)

Expand Down
4 changes: 2 additions & 2 deletions docs/templates/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ After a few seconds, your workspace is ready to use.

![Workspace is ready](../images/templates/workspace-ready.png)

## 6. Try out your new workspace
## 5. Try out your new workspace

This starter template lets you connect to your workspace in a few ways:

Expand All @@ -81,7 +81,7 @@ This starter template lets you connect to your workspace in a few ways:

When you're done, you can stop the workspace.

## 7. Modify your template
## 6. Modify your template

Now you can modify your template to suit your team's needs.

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.