Skip to content

Commit

Permalink
Test new REPL blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Jul 10, 2023
1 parent ada230b commit dfbe672
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 17 deletions.
30 changes: 19 additions & 11 deletions Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.9.1"
julia_version = "1.9.2"
manifest_format = "2.0"
project_hash = "b624ff2117a370fbbc58955a02126cf4545f031e"

Expand Down Expand Up @@ -52,6 +52,12 @@ deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
version = "1.6.0"

[[deps.ExceptionUnwrapping]]
deps = ["Test"]
git-tree-sha1 = "e90caa41f5a86296e014e148ee061bd6c3edec96"
uuid = "460bff9d-24e4-43bc-9d9f-a8973cb893f4"
version = "0.1.9"

[[deps.ExprTools]]
git-tree-sha1 = "c1d06d129da9f55715c6c212866f5b1bddc5fa00"
uuid = "e2ba6199-217a-4e67-a87a-7c52f15ade04"
Expand All @@ -62,9 +68,11 @@ uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"

[[deps.Franklin]]
deps = ["Dates", "DelimitedFiles", "DocStringExtensions", "ExprTools", "FranklinTemplates", "HTTP", "Literate", "LiveServer", "Logging", "Markdown", "NodeJS", "OrderedCollections", "Pkg", "REPL", "Random", "TOML"]
git-tree-sha1 = "cf933084cfae62b47de01ae536920774a54a18a6"
git-tree-sha1 = "b1dd977d8edfa737eb3629097cbc65de8caa1a3d"
repo-rev = "tl/fr818b"
repo-url = "https://github.com/tlienart/Franklin.jl"
uuid = "713c75ef-9fc9-4b05-94a9-213340da978e"
version = "0.10.84"
version = "0.10.85"

[[deps.FranklinTemplates]]
deps = ["LiveServer"]
Expand All @@ -73,10 +81,10 @@ uuid = "3a985190-f512-4703-8d38-2a7944ed5916"
version = "0.9.1"

[[deps.HTTP]]
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]
git-tree-sha1 = "5e77dbf117412d4f164a464d610ee6050cc75272"
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]
git-tree-sha1 = "2150ff91a4b3c566ff020c0c56e3c70d51249a2a"
uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3"
version = "1.9.6"
version = "1.9.9"

[[deps.IOCapture]]
deps = ["Logging", "Random"]
Expand Down Expand Up @@ -130,9 +138,9 @@ version = "2.14.0"

[[deps.LiveServer]]
deps = ["HTTP", "MIMEs", "Pkg", "Sockets"]
git-tree-sha1 = "494010f12dd98fa0d558cb7679b7c21d3a0a430a"
git-tree-sha1 = "8b3ff30e7febb63c6526dd0a2664022cf13d4cf9"
uuid = "16fef848-5104-11e9-1b77-fb7a48bbb589"
version = "1.2.0"
version = "1.2.1"

[[deps.Logging]]
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
Expand Down Expand Up @@ -199,14 +207,14 @@ version = "1.6.0"

[[deps.Parsers]]
deps = ["Dates", "PrecompileTools", "UUIDs"]
git-tree-sha1 = "5a6ab2f64388fd1175effdf73fe5933ef1e0bac0"
git-tree-sha1 = "4b2e829ee66d4218e0cef22c0a64ee37cf258c29"
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
version = "2.7.0"
version = "2.7.1"

[[deps.Pkg]]
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
version = "1.9.0"
version = "1.9.2"

[[deps.PrecompileTools]]
deps = ["Preferences"]
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[deps]
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"
NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"
16 changes: 16 additions & 0 deletions _css/jtd.css
Original file line number Diff line number Diff line change
Expand Up @@ -648,3 +648,19 @@ franklin-toc {
margin: 0.6rem 0;
}
}


/* ==================================================================
REPL BLOCKS
================================================================== */

.julia-help {
background-color: yellow;
padding: 10px;
font-style: italic;
}

.julia-help h1,h2,h3 {
font-size: 1em;
font-weight: 500;
}
5 changes: 3 additions & 2 deletions _layout/pgwrap.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
<li class="menu-list-item {{ispage /pages/writing/*}}active{{end}}"><a href="/pages/writing/" class="menu-list-link {{ispage /pages/writing/}}active{{end}}">Writing</a>
<ol class="menu-list-child-list ">
<li class="menu-list-item "><a href="#installation" class="menu-list-link">Installation</a>
<li class="menu-list-item "><a href="#repl" class="menu-list-link">REPL</a>
<li class="menu-list-item "><a href="#editors" class="menu-list-link">Editors</a>
<li class="menu-list-item "><a href="#running_code" class="menu-list-link">Running code</a>
<li class="menu-list-item "><a href="#development_environments" class="menu-list-link">Development environments</a>
<li class="menu-list-item "><a href="#package_management" class="menu-list-link">Package management</a>
<li class="menu-list-item "><a href="#packages" class="menu-list-link">Packages</a>
<li class="menu-list-item "><a href="#esthetics" class="menu-list-link">Esthetics</a>
<li class="menu-list-item "><a href="#debugging" class="menu-list-link">Debugging</a>
<li class="menu-list-item "><a href="#other_languages" class="menu-list-link">Other languages</a>
Expand Down
50 changes: 47 additions & 3 deletions pages/writing.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,52 @@ If you want an overview of the channels installed on your computer, just use
juliaup status
```

## Development environments
## REPL

Testing the new functionality from <https://github.com/tlienart/Franklin.jl/pull/1035>

Julia mode

```>
a = rand(3, 2)
sum(a)
using LinearAlgebra # this should print a void
1 + 1; # this should print a void
# comment alone # this should print a void
using Flux # this should error
sum(exp(a)) # this should error
```

Shell mode

```;
echo "hello"
echo "goodbye"
echography
```

Pkg mode

```]
st
add Random
st
```

Help mode

```?
Random
Int
```

```?
map
```

* [REPL](https://docs.julialang.org/en/v1/stdlib/REPL/)

## Editors

* [VSCode](https://code.visualstudio.com/) / [VSCodium](https://vscodium.com/) + [Julia VSCode extension](https://www.julia-vscode.org/)
* [emacs](https://www.gnu.org/software/emacs/) / [vim](https://www.vim.org/) / other IDEs + [JuliaEditorSupport](https://github.com/JuliaEditorSupport)
Expand All @@ -52,12 +97,11 @@ juliaup status

## Running code

* [REPL](https://docs.julialang.org/en/v1/stdlib/REPL/)
* [Revise.jl](https://github.com/timholy/Revise.jl)
* [running in VSCode](https://www.julia-vscode.org/docs/stable/userguide/runningcode/)
* startup file

## Package management
## Packages

* [Pkg.jl](https://github.com/JuliaLang/Pkg.jl)
* stacking environments
Expand Down

0 comments on commit dfbe672

Please sign in to comment.