Skip to content

Commit aee793e

Browse files
authored
Fix pkg (#68)
1 parent 4133e9e commit aee793e

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

pages/writing/Manifest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.10.0-beta2"
44
manifest_format = "2.0"
5-
project_hash = "68f25a553d6f56241713054541abe9b6e08102be"
5+
project_hash = "e3c3580af029b40571034f49b0917efff8f3774e"
66

77
[[deps.ArgTools]]
88
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"

pages/writing/Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[deps]
22
Debugger = "31a5f54b-26ea-5ae9-a837-f05ce5417438"
33
Infiltrator = "5903a43b-9cc3-4c30-8d17-598619ec4e9b"
4-
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
54
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"

pages/writing/writing.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,17 @@ 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-
```>
336-
using Revise
335+
```>dev_workflow1
336+
using Revise, Pkg
337337
Pkg.activate(sitepath("MyPackage")) # ignore sitepath
338338
using MyPackage
339339
MyPackage.greet()
340340
```
341341

342+
```!revert1
343+
Pkg.activate(folderpath("pages/writing")) # hide
344+
```
345+
342346
\advanced{
343347

344348
There are situations where the previous method does not work:
@@ -350,14 +354,20 @@ Then, you will need to use another environment as a playground, and `]develop` (
350354
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.
351355
To summarize, this is how you get started:
352356

353-
```>
357+
```>dev_workflow2
354358
using Revise, Pkg
355359
Pkg.activate(sitepath("MyPlayground")) # ignore sitepath
356360
Pkg.develop(path=sitepath("MyPackage")) # ignore sitepath
357361
using MyPackage
358362
MyPackage.greet()
359363
```
360364

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

363373
## Configuration
@@ -399,13 +409,13 @@ Here are a few more startup packages that can make your life easier once you kno
399409

400410
The Julia REPL comes bundled with [InteractiveUtils.jl](https://docs.julialang.org/en/v1/stdlib/InteractiveUtils/), a bunch of very useful functions for interacting with source code.
401411

402-
```!
412+
```!interactiveutils
403413
using InteractiveUtils # hide
404414
```
405415

406416
Here are a few examples:
407417

408-
```>
418+
```>interactiveutils_examples
409419
supertypes(Int64)
410420
subtypes(Integer)
411421
length(methodswith(Integer))
@@ -637,6 +647,3 @@ The debugger will open a pane showing information about the code such as local v
637647

638648
<!-- Clean up -->
639649

640-
```!cleanup
641-
Pkg.rm("MyPackage") # hide
642-
```

0 commit comments

Comments
 (0)