Skip to content

Commit

Permalink
add link to release notes on first page of manual (#25476)
Browse files Browse the repository at this point in the history
* add link to release notes on first page of manual

* Update make.jl

* change wording
  • Loading branch information
KristofferC authored Jan 12, 2018
1 parent ec9e92e commit 899fde0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ deps/
_build/
UnicodeData.txt
src/stdlib/
src/NEWS.md

8 changes: 8 additions & 0 deletions doc/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,16 @@ for dir in readdir(STDLIB_DIR)
end
end

# Generate a suitable markdown file from NEWS.md and put it in src
str = read(joinpath(@__DIR__, "..", "NEWS.md"), String)
splitted = split(str, "<!--- generated by NEWS-update.jl: -->")
@assert length(splitted) == 2
replaced_links = replace(splitted[1], r"\[\#([0-9]*?)\]" => s"[#\g<1>](https://github.com/JuliaLang/julia/issues/\g<1>)")
write(joinpath(@__DIR__, "src", "NEWS.md"), replaced_links)

const PAGES = [
"Home" => "index.md",
hide("NEWS.md"),
"Manual" => [
"manual/introduction.md",
"manual/getting-started.md",
Expand Down
6 changes: 5 additions & 1 deletion doc/src/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Julia Documentation
# Julia 0.7 Documentation

Welcome to the documentation for Julia 0.7.

Please read the [release notes](NEWS.md) to see what has changed since the last release.

* [Manual](#Manual-1)
* [Base](#Base-1)
Expand Down

0 comments on commit 899fde0

Please sign in to comment.