www: new fenced code block design (#1629)
This commit is contained in:
@@ -16,7 +16,7 @@ How can you modify your project to no longer use the current release, but
|
||||
instead this one particular commit? Just make the following changes to your
|
||||
`deno.json`:
|
||||
|
||||
```diff
|
||||
```diff deno.json
|
||||
"update": "deno run -A -r https://fresh.deno.dev/update ."
|
||||
},
|
||||
"imports": {
|
||||
@@ -34,7 +34,7 @@ worry, you can use the same approach to reference any branch in a fork as well.
|
||||
Here's an example of referencing a feature in a forked repository that hasn't
|
||||
been merged yet (at the time of writing this):
|
||||
|
||||
```diff
|
||||
```diff deno.json
|
||||
"update": "deno run -A -r https://fresh.deno.dev/update ."
|
||||
},
|
||||
"imports": {
|
||||
@@ -55,13 +55,13 @@ create a test project based on your local changes.
|
||||
|
||||
Instead of doing it like this:
|
||||
|
||||
```sh
|
||||
```sh Terminal
|
||||
deno run -A -r https://fresh.deno.dev/
|
||||
```
|
||||
|
||||
do it like this:
|
||||
|
||||
```sh
|
||||
```sh Terminal
|
||||
deno run -A -r path/to/fresh/init.ts
|
||||
```
|
||||
|
||||
@@ -73,6 +73,6 @@ Of course there's no reason why you have to check out the Fresh source. You can
|
||||
create a project from the latest commit by combining the techniques on this page
|
||||
like this:
|
||||
|
||||
```sh
|
||||
```sh Terminal
|
||||
deno run -A -r https://raw.githubusercontent.com/denoland/fresh/main/init.ts
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user