Skip to content

Commit 632a51e

Browse files
committed
docs: include release notes in the manual
1 parent 8d9dae4 commit 632a51e

File tree

6 files changed

+55
-3
lines changed

6 files changed

+55
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/Manifest.toml
2+
/docs/src/release-notes.md
23
/docs/build/
34
/docs/Manifest.toml
45
/test/testdata/large.dat

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
9494
## Version v0.1.0 - 2023-06-20
9595

9696
Initial package release.
97+
98+
99+
<!-- Links generated by Changelog.jl -->
100+
101+
[#1]: https://github.com/JuliaComputing/JuliaHub.jl/issues/1
102+
[#2]: https://github.com/JuliaComputing/JuliaHub.jl/issues/2
103+
[#3]: https://github.com/JuliaComputing/JuliaHub.jl/issues/3
104+
[#7]: https://github.com/JuliaComputing/JuliaHub.jl/issues/7
105+
[#9]: https://github.com/JuliaComputing/JuliaHub.jl/issues/9
106+
[#11]: https://github.com/JuliaComputing/JuliaHub.jl/issues/11
107+
[#12]: https://github.com/JuliaComputing/JuliaHub.jl/issues/12
108+
[#13]: https://github.com/JuliaComputing/JuliaHub.jl/issues/13
109+
[#14]: https://github.com/JuliaComputing/JuliaHub.jl/issues/14
110+
[#18]: https://github.com/JuliaComputing/JuliaHub.jl/issues/18
111+
[#28]: https://github.com/JuliaComputing/JuliaHub.jl/issues/28
112+
[#31]: https://github.com/JuliaComputing/JuliaHub.jl/issues/31
113+
[#32]: https://github.com/JuliaComputing/JuliaHub.jl/issues/32
114+
[#33]: https://github.com/JuliaComputing/JuliaHub.jl/issues/33
115+
[#34]: https://github.com/JuliaComputing/JuliaHub.jl/issues/34
116+
[#35]: https://github.com/JuliaComputing/JuliaHub.jl/issues/35
117+
[#37]: https://github.com/JuliaComputing/JuliaHub.jl/issues/37
118+
[#44]: https://github.com/JuliaComputing/JuliaHub.jl/issues/44
119+
[#46]: https://github.com/JuliaComputing/JuliaHub.jl/issues/46
120+
[#48]: https://github.com/JuliaComputing/JuliaHub.jl/issues/48
121+
[#49]: https://github.com/JuliaComputing/JuliaHub.jl/issues/49
122+
[#52]: https://github.com/JuliaComputing/JuliaHub.jl/issues/52
123+
[#53]: https://github.com/JuliaComputing/JuliaHub.jl/issues/53
124+
[#58]: https://github.com/JuliaComputing/JuliaHub.jl/issues/58

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ help:
88

99
docs/Manifest.toml: docs/Project.toml
1010
@echo "Instantiating the docs/ environment:"
11-
$(JULIA) --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
11+
${JULIA} --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
1212

1313
docs-manifest:
1414
rm -f docs/Manifest.toml
1515
$(MAKE) docs/Manifest.toml
1616

1717
docs: docs/Manifest.toml
18-
$(JULIA) --project=docs/ docs/make.jl
18+
${JULIA} --project=docs/ docs/make.jl
19+
20+
changelog:
21+
${JULIA} --project=docs/ docs/changelog.jl
1922

2023
test:
2124
${JULIA} --project -e 'using Pkg; Pkg.test()'

docs/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
Changelog = "5217a498-cd5d-4ec6-b8c2-9b85a09b6e3e"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
DocumenterMermaid = "a078cd44-4d9c-4618-b545-3ab9d77f9177"
45
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
@@ -8,5 +9,6 @@ TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"
89
URIs = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4"
910

1011
[compat]
12+
Changelog = "1"
1113
Documenter = "1"
1214
DocumenterMermaid = "0.1"

docs/changelog.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using Changelog
2+
3+
Changelog.generate(
4+
Changelog.CommonMark(),
5+
joinpath(@__DIR__, "..", "CHANGELOG.md");
6+
repo="JuliaComputing/JuliaHub.jl",
7+
)

docs/make.jl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
using JuliaHub
2-
using Documenter, DocumenterMermaid
2+
using Documenter
3+
using DocumenterMermaid
4+
using Changelog
35
import TimeZones
46

57
# Timestamp printing is dependent on the timezone, so we force a specific (non-UTC)
@@ -43,6 +45,14 @@ function setup_job_results_file!()
4345
)
4446
end
4547

48+
# Generate a Documenter-friendly changelog from CHANGELOG.md
49+
Changelog.generate(
50+
Changelog.Documenter(),
51+
joinpath(@__DIR__, "..", "CHANGELOG.md"),
52+
joinpath(@__DIR__, "src", "release-notes.md");
53+
repo="JuliaComputing/JuliaHub.jl",
54+
)
55+
4656
# These lists are reused in the makedocs, but also in the at-contents
4757
# blocks on the src/index.md page.
4858
const PAGES_GUIDES = [
@@ -72,6 +82,7 @@ Mocking.apply(mocking_patch) do
7282
"Guides" => PAGES_GUIDES,
7383
"Reference" => PAGES_REFERENCE,
7484
Documenter.hide("internal.md"),
85+
"release-notes.md",
7586
],
7687
doctest=if in("--fix-doctests", ARGS)
7788
:fix

0 commit comments

Comments
 (0)