www: new fenced code block design (#1629)

This commit is contained in:
Marvin Hagemeister
2023-08-13 10:52:41 +02:00
committed by GitHub
parent 7679e278cc
commit 6a599dbed5
43 changed files with 363 additions and 342 deletions
@@ -8,7 +8,7 @@ The next step after scaffolding out a new project, is to actually start it. To
do this you can just `deno task start`. Environment variables will be
automatically read from `.env`.
```
```sh Terminal
$ deno task start
Watcher Process started.
🍋 Fresh ready
@@ -38,19 +38,19 @@ you add a new route.
If you want to change the port or host, modify the options bag of the `start()`
call in `main.ts` to include an explicit port number:
```js
```js main.ts
await start(manifest, { port: 3000 });
```
You can also change the port by setting the `PORT` environment variable:
```
```sh Terminal
$ PORT=3000 deno task start
```
Combining all of this we get the following `deno run` command:
```
```sh Terminal
$ deno run --allow-net --allow-read --allow-env --allow-run --watch=static/,routes/ main.ts
Watcher Process started.
🍋 Fresh ready