Skip to content

Commit 0050565

Browse files
committed
use shell for codeblocks
1 parent 4bbc87f commit 0050565

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docs/CONTRIBUTING.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
We recommend using the [Nix](https://nix.dev/) package manager as it makes any pain related to maintaining dependency versions [just disappear](https://twitter.com/mitchellh/status/1491102567296040961). Once nix [has been installed](https://nixos.org/download.html) the development environment can be _manually instantiated_ through the `nix-shell` command:
66

7-
```
8-
$ cd ~/code/coder
7+
```shell
8+
cd ~/code/coder
99

1010
# https://nix.dev/tutorials/declarative-and-reproducible-developer-environments
11-
$ nix-shell
11+
nix-shell
1212

1313
...
1414
copying path '/nix/store/3ms6cs5210n8vfb5a7jkdvzrzdagqzbp-iana-etc-20210225' from 'https://cache.nixos.org'...
@@ -27,8 +27,8 @@ direnv allow
2727

2828
Now, whenever you enter the project folder, `direnv` will prepare the environment for you:
2929

30-
```
31-
$ cd ~/code/coder
30+
```shell
31+
cd ~/code/coder
3232

3333
# https://direnv.net/docs/hook.html
3434
direnv: loading ~/code/coder/.envrc
@@ -40,9 +40,9 @@ direnv: export +AR +AS +CC +CONFIG_SHELL +CXX +HOST_PATH +IN_NIX_SHELL +LD +NIX_
4040

4141
Alternatively if you do not want to use nix then you'll need to install the need the following tools by hand:
4242

43-
- Go 1.18+
43+
- Go 1.20+
4444
- on macOS, run `brew install go`
45-
- Node 14+
45+
- Node 18+
4646
- on macOS, run `brew install node`
4747
- GNU Make 4.0+
4848
- on macOS, run `brew install make`
@@ -53,15 +53,15 @@ Alternatively if you do not want to use nix then you'll need to install the need
5353
- [`pg_dump`](https://stackoverflow.com/a/49689589)
5454
- on macOS, run `brew install libpq zstd`
5555
- on Linux, install [`zstd`](https://github.com/horta/zstd.install)
56-
- [`pkg-config`]()
56+
- `pkg-config`
5757
- on macOS, run `brew install pkg-config`
58-
- [`pixman`]()
58+
- `pixman`
5959
- on macOS, run `brew install pixman`
60-
- [`cairo`]()
60+
- `cairo`
6161
- on macOS, run `brew install cairo`
62-
- [`pango`]()
62+
- `pango`
6363
- on macOS, run `brew install pango`
64-
- [`pandoc`]()
64+
- `pandoc`
6565
- on macOS, run `brew install pandocomatic`
6666

6767
### Development workflow
@@ -93,7 +93,7 @@ You can test your changes by creating a PR deployment. A PR deployment can be tr
9393

9494
> Note: all flags can be used with both `./scripts/deploy-pr.sh` and `/deploy-pr` comment on the PR.
9595
96-
> Note: You need to be a member or collaborator of the of [coder](github.com/coder) GitHub organization to be able to deploy a PR.
96+
> You need to be a member or collaborator of the of [coder](github.com/coder) GitHub organization to be able to deploy a PR.
9797
9898
Once the deployment is finished, a unique link and credentials will be posted in the [#pr-deployments](https://codercom.slack.com/archives/C05DNE982E8) Slack channel.
9999

@@ -105,12 +105,12 @@ Database migrations are managed with [`migrate`](https://github.com/golang-migra
105105

106106
To add new migrations, use the following command:
107107

108-
```
109-
$ ./coderd/database/migrations/create_fixture.sh my name
108+
```shell
109+
./coderd/database/migrations/create_fixture.sh my name
110110
/home/coder/src/coder/coderd/database/migrations/000070_my_name.up.sql
111111
/home/coder/src/coder/coderd/database/migrations/000070_my_name.down.sql
112-
Run "make gen" to generate models.
113112
```
113+
Run "make gen" to generate models.
114114

115115
Then write queries into the generated `.up.sql` and `.down.sql` files and commit
116116
them into the repository. The down script should make a best-effort to retain as
@@ -137,8 +137,8 @@ migration of multiple features or complex configurations.
137137

138138
To add a new partial fixture, run the following command:
139139

140-
```
141-
$ ./coderd/database/migrations/create_fixture.sh my fixture
140+
```shell
141+
./coderd/database/migrations/create_fixture.sh my fixture
142142
/home/coder/src/coder/coderd/database/migrations/testdata/fixtures/000070_my_fixture.up.sql
143143
```
144144

0 commit comments

Comments
 (0)