Skip to content

Commit e8f4e3b

Browse files
authored
Documentation fixes and upgrade to Documenter v1 (#1104)
1 parent f443f0c commit e8f4e3b

File tree

12 files changed

+49
-52
lines changed

12 files changed

+49
-52
lines changed

.github/workflows/Docs.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Documenter
2+
on:
3+
push:
4+
branches: [master]
5+
tags: [v*]
6+
pull_request:
7+
8+
jobs:
9+
Documenter:
10+
permissions:
11+
contents: write
12+
statuses: write
13+
name: Documentation
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: julia-actions/julia-buildpkg@v1
18+
- uses: julia-actions/julia-docdeploy@v1
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/documentation-workflow.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
*.jl.*.cov
99
/docs/src/assets/logo.svg
1010
/docs/src/assets/favicon.ico
11+
Manifest*.toml

README.md

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

33
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaLang.github.io/IJulia.jl/stable)
44
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaLang.github.io/IJulia.jl/dev)
5-
[![Build Status](https://github.com/JuliaLang/IJulia.jl/workflows/CI/badge.svg)](https://github.com/JuliaLang/IJulia.jl/actions?query=workflow%3ACI+branch%3Amaster)
5+
[![Run tests](https://github.com/JuliaLang/IJulia.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/JuliaLang/IJulia.jl/actions/workflows/CI.yml)
66

77
# IJulia
88

deps/kspec.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ executable, the user-visible kernel name is given by `name` followed by the
6565
Julia version, and the `env` dictionary is added to the environment.
6666
6767
The new kernel name is returned by `installkernel`. For example:
68-
```
68+
```julia
6969
kernelpath = installkernel("Julia O3", "-O3", env=Dict("FOO"=>"yes"))
7070
```
7171
creates a new Julia kernel in which `julia` is launched with the `-O3`
@@ -84,7 +84,7 @@ You can specify a custom command to execute Julia via keyword argument
8484
in a Docker container (but Jupyter will run outside of it), by calling
8585
`installkernel` from within such a container instance like this (or similar):
8686
87-
```
87+
```julia
8888
installkernel(
8989
"Julia via Docker",
9090
julia = `docker run --rm --net=host

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
4+
5+
[compat]
6+
Documenter = "1"

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ makedocs(
2828
"library/internals.md",
2929
],
3030
],
31+
warnonly=true,
3132
)
3233

3334
# Deploy docs

docs/src/manual/installation.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33

44
## Installing IJulia
55

6-
First, [download Julia](http://julialang.org/downloads/) *version 0.7
7-
or later* and run the installer. Then run the Julia application
8-
(double-click on it); a window with a `julia>` prompt will appear. After ensuring that you have activated the default Julia environment, at
9-
the prompt, type:
6+
First, install Julia from [Download Julia page](http://julialang.org/downloads/).
7+
Then run the Julia application (double-click on it); a window with a `julia>` prompt will appear.
8+
After ensuring that you have activated the default Julia environment, at the prompt, type:
109
```julia
1110
using Pkg
1211
Pkg.add("IJulia")
@@ -67,7 +66,7 @@ lets you open notebooks with this flag.
6766

6867
You can also install kernels to run Julia with different environment
6968
variables, for example to set [`JULIA_NUM_THREADS`](https://docs.julialang.org/en/v1/manual/environment-variables/index.html#JULIA_NUM_THREADS-1) for use with Julia [multithreading](https://docs.julialang.org/en/v1/manual/parallel-computing/#Multi-Threading-(Experimental)-1):
70-
```
69+
```julia
7170
using IJulia
7271
installkernel("Julia (4 threads)", env=Dict("JULIA_NUM_THREADS"=>"4"))
7372
```

docs/src/manual/running.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ in the background that will persist even when you quit Julia.
2626
This is also useful if you want to keep using the current Julia
2727
session instead of opening a new one.
2828

29-
```julia
30-
julia> using IJulia; notebook(detached=true)
31-
Process(`'C:\Users\JuliaUser\.julia\v0.7\Conda\deps\usr\Scripts\jupyter' notebook`, ProcessRunning)
32-
33-
julia>
29+
```@repl
30+
using IJulia; notebook(detached=true)
3431
```
3532

3633
By default, the notebook "dashboard" opens in your
@@ -67,7 +64,7 @@ other Julia file (including another notebook) via the [NBInclude](https://github
6764

6865
Instead of running the classic notebook interface, you can use the IDE-like JupyterLab. If you are comfortable managing your own JupyterLab installation, you can just run `jupyter lab` yourself in a terminal. To simplify installation, however, you can alternatively type the following in Julia, at the `julia>` prompt:
6966

70-
```jl
67+
```julia
7168
using IJulia
7269
jupyterlab()
7370
```

docs/src/manual/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If IJulia is crashing (e.g. it gives you a "kernel appears to have
2121
died" message), you can modify it to print more descriptive error
2222
messages to the terminal by doing:
2323

24-
```jl
24+
```julia
2525
ENV["IJULIA_DEBUG"]=true
2626
Pkg.build("IJulia")
2727
```

0 commit comments

Comments
 (0)