Skip to content

Commit 3d7c21c

Browse files
committed
non-executed blocks
1 parent aee793e commit 3d7c21c

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

pages/writing/writing.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -332,17 +332,13 @@ The only remaining question is: in which environment should you work?
332332
In general, you can work within the environment defined by your package, and add all the dependencies you need there.
333333
To summarize, this is how you get started:
334334

335-
```>dev_workflow1
335+
```julia
336336
using Revise, Pkg
337-
Pkg.activate(sitepath("MyPackage")) # ignore sitepath
337+
Pkg.activate("./MyPackage")
338338
using MyPackage
339339
MyPackage.greet()
340340
```
341341

342-
```!revert1
343-
Pkg.activate(folderpath("pages/writing")) # hide
344-
```
345-
346342
\advanced{
347343

348344
There are situations where the previous method does not work:
@@ -354,20 +350,14 @@ Then, you will need to use another environment as a playground, and `]develop` (
354350
Note the new Pkg.jl keyword: `]add PackageName` is used to download a fixed version of a registered package, while `]develop path` links to the current state of the code in a local folder.
355351
To summarize, this is how you get started:
356352

357-
```>dev_workflow2
353+
```julia
358354
using Revise, Pkg
359-
Pkg.activate(sitepath("MyPlayground")) # ignore sitepath
360-
Pkg.develop(path=sitepath("MyPackage")) # ignore sitepath
355+
Pkg.activate("./MyPlayground")
356+
Pkg.develop(path="./MyPackage")
361357
using MyPackage
362358
MyPackage.greet()
363359
```
364360

365-
```!revert2
366-
# hideall
367-
Pkg.rm("MyPackage")
368-
Pkg.activate(folderpath("pages/writing"))
369-
```
370-
371361
}
372362

373363
## Configuration

0 commit comments

Comments
 (0)