Skip to content

Commit

Permalink
docs: include release notes in the manual
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi committed Jun 27, 2024
1 parent 9859579 commit bb29df5
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/Manifest.toml
/docs/src/release-notes.md
/docs/build/
/docs/Manifest.toml
/test/testdata/large.dat
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
## Version v0.1.0 - 2023-06-20

Initial package release.


<!-- Links generated by Changelog.jl -->

[#1]: https://github.com/JuliaComputing/JuliaHub.jl/issues/1
[#2]: https://github.com/JuliaComputing/JuliaHub.jl/issues/2
[#3]: https://github.com/JuliaComputing/JuliaHub.jl/issues/3
[#7]: https://github.com/JuliaComputing/JuliaHub.jl/issues/7
[#9]: https://github.com/JuliaComputing/JuliaHub.jl/issues/9
[#11]: https://github.com/JuliaComputing/JuliaHub.jl/issues/11
[#12]: https://github.com/JuliaComputing/JuliaHub.jl/issues/12
[#13]: https://github.com/JuliaComputing/JuliaHub.jl/issues/13
[#14]: https://github.com/JuliaComputing/JuliaHub.jl/issues/14
[#18]: https://github.com/JuliaComputing/JuliaHub.jl/issues/18
[#28]: https://github.com/JuliaComputing/JuliaHub.jl/issues/28
[#31]: https://github.com/JuliaComputing/JuliaHub.jl/issues/31
[#32]: https://github.com/JuliaComputing/JuliaHub.jl/issues/32
[#33]: https://github.com/JuliaComputing/JuliaHub.jl/issues/33
[#34]: https://github.com/JuliaComputing/JuliaHub.jl/issues/34
[#35]: https://github.com/JuliaComputing/JuliaHub.jl/issues/35
[#37]: https://github.com/JuliaComputing/JuliaHub.jl/issues/37
[#44]: https://github.com/JuliaComputing/JuliaHub.jl/issues/44
[#46]: https://github.com/JuliaComputing/JuliaHub.jl/issues/46
[#48]: https://github.com/JuliaComputing/JuliaHub.jl/issues/48
[#49]: https://github.com/JuliaComputing/JuliaHub.jl/issues/49
[#52]: https://github.com/JuliaComputing/JuliaHub.jl/issues/52
[#53]: https://github.com/JuliaComputing/JuliaHub.jl/issues/53
[#58]: https://github.com/JuliaComputing/JuliaHub.jl/issues/58
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ help:

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

docs-manifest:
rm -f docs/Manifest.toml
$(MAKE) docs/Manifest.toml

docs: docs/Manifest.toml
$(JULIA) --project=docs/ docs/make.jl
${JULIA} --project=docs/ docs/make.jl

changelog:
${JULIA} --project=docs/ docs/changelog.jl

test:
${JULIA} --project -e 'using Pkg; Pkg.test()'
Expand Down
2 changes: 2 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Changelog = "5217a498-cd5d-4ec6-b8c2-9b85a09b6e3e"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterMermaid = "a078cd44-4d9c-4618-b545-3ab9d77f9177"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
Expand All @@ -8,5 +9,6 @@ TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"
URIs = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4"

[compat]
Changelog = "1"
Documenter = "1"
DocumenterMermaid = "0.1"
7 changes: 7 additions & 0 deletions docs/changelog.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Changelog

Changelog.generate(
Changelog.CommonMark(),
joinpath(@__DIR__, "..", "CHANGELOG.md");
repo="JuliaComputing/JuliaHub.jl",
)
13 changes: 12 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using JuliaHub
using Documenter, DocumenterMermaid
using Documenter
using DocumenterMermaid
using Changelog
import TimeZones

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

# Generate a Documenter-friendly changelog from CHANGELOG.md
Changelog.generate(
Changelog.Documenter(),
joinpath(@__DIR__, "..", "CHANGELOG.md"),
joinpath(@__DIR__, "src", "release-notes.md");
repo="JuliaComputing/JuliaHub.jl",
)

# These lists are reused in the makedocs, but also in the at-contents
# blocks on the src/index.md page.
const PAGES_GUIDES = [
Expand Down Expand Up @@ -72,6 +82,7 @@ Mocking.apply(mocking_patch) do
"Guides" => PAGES_GUIDES,
"Reference" => PAGES_REFERENCE,
Documenter.hide("internal.md"),
"release-notes.md",
],
doctest=if in("--fix-doctests", ARGS)
:fix
Expand Down

0 comments on commit bb29df5

Please sign in to comment.