Skip to content

Commit 4390ef4

Browse files
authored
Merge pull request #1142 from JuliaLang/changelog
Documentation fixes and a changelog
2 parents 855eba2 + 0db2726 commit 4390ef4

File tree

19 files changed

+214
-33
lines changed

19 files changed

+214
-33
lines changed

.github/workflows/Docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
- uses: julia-actions/setup-julia@v2
18+
with:
19+
version: '1'
20+
- uses: julia-actions/cache@v2
1721
- uses: julia-actions/julia-buildpkg@v1
1822
- uses: julia-actions/julia-docdeploy@v1
1923
env:

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66
/deps/JUPYTER
77
/deps/julia-*
88
*.jl.*.cov
9-
/docs/src/assets/logo.svg
10-
/docs/src/assets/favicon.ico
119
Manifest*.toml

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
build/
2+
src/changelog.md

docs/Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[deps]
2+
Changelog = "5217a498-cd5d-4ec6-b8c2-9b85a09b6e3e"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
45

56
[compat]
67
Documenter = "1"
8+
9+
[sources]
10+
IJulia = {path = ".."}

docs/make.jl

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
import Changelog
12
using Documenter, IJulia
23

3-
# Copy assets from `deps` directory
4-
path_assets = joinpath(@__DIR__, "src/assets")
5-
path_deps = joinpath(@__DIR__, "../deps")
6-
mkpath(path_assets)
7-
cp(joinpath(path_deps, "ijuliafavicon.ico"), joinpath(path_assets, "favicon.ico"), force=true)
8-
cp(joinpath(path_deps, "ijulialogo.svg"), joinpath(path_assets, "logo.svg"), force=true)
4+
# Build the changelog
5+
Changelog.generate(
6+
Changelog.Documenter(),
7+
joinpath(@__DIR__, "src/_changelog.md"),
8+
joinpath(@__DIR__, "src/changelog.md"),
9+
repo="JuliaLang/IJulia.jl"
10+
)
911

1012
# Make docs to `docs/build` directory
11-
makedocs(
13+
makedocs(;
14+
repo=Remotes.GitHub("JuliaLang", "IJulia.jl"),
1215
modules=[IJulia],
1316
sitename="IJulia",
1417
format=Documenter.HTML(;
@@ -27,8 +30,8 @@ makedocs(
2730
"library/public.md",
2831
"library/internals.md",
2932
],
30-
],
31-
warnonly=true,
33+
"changelog.md"
34+
]
3235
)
3336

3437
# Deploy docs

docs/src/_changelog.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
```@meta
2+
CurrentModule = IJulia
3+
```
4+
5+
# Changelog
6+
7+
This documents notable changes in IJulia.jl. The format is based on [Keep a
8+
Changelog](https://keepachangelog.com).
9+
10+
## Unreleased
11+
12+
### Added
13+
- [`installkernel()`](@ref) now supports a `displayname` argument to customize
14+
the kernel display name ([#1137]).
15+
16+
### Fixed
17+
- The internal heartbeat thread will now shut down cleanly ([#1135],
18+
[#1144]). This should prevent segfaults upon exit.
19+
- Various fixes to the messaging code to be compliant with Jupyter ([#1138]).
File renamed without changes.
File renamed without changes.

docs/src/library/internals.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ IJulia.send_status
3535
## Request handlers
3636

3737
```@docs
38-
IJulia.handlers
3938
IJulia.connect_request
4039
IJulia.execute_request
4140
IJulia.shutdown_request

src/IJulia.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,19 @@ whether you are in an IJulia notebook, therefore, you can check
7575
"""
7676
inited = false
7777

78-
# set this to false for debugging, to disable stderr redirection
79-
"""
78+
const _capture_docstring = """
8079
The IJulia kernel captures all [stdout and stderr](https://en.wikipedia.org/wiki/Standard_streams)
8180
output and redirects it to the notebook. When debugging IJulia problems,
8281
however, it can be more convenient to *not* capture stdout and stderr output
8382
(since the notebook may not be functioning). This can be done by editing
8483
`IJulia.jl` to set `capture_stderr` and/or `capture_stdout` to `false`.
8584
"""
85+
86+
@doc _capture_docstring
8687
const capture_stdout = true
88+
89+
# set this to false for debugging, to disable stderr redirection
90+
@doc _capture_docstring
8791
const capture_stderr = !IJULIA_DEBUG
8892

8993
set_current_module(m::Module) = current_module[] = m

0 commit comments

Comments
 (0)