Skip to content

Commit

Permalink
Add link to the pdf version of the documentation to the html pages, fix
Browse files Browse the repository at this point in the history
#28604. (#30449)

(cherry picked from commit 21f7a1e)
  • Loading branch information
fredrikekre authored and KristofferC committed Dec 20, 2018
1 parent 3c086d6 commit 235bdc7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ Markdown.parse(String(take!(io)))
```
Please read the [release notes](NEWS.md) to see what has changed since the last release.

```@eval
release = isempty(VERSION.prerelease)
file = release ? "julia-$(VERSION).pdf" :
"julia-$(VERSION.major).$(VERSION.minor).$(VERSION.patch)-$(first(VERSION.prerelease)).pdf"
url = "https://raw.githubusercontent.com/JuliaLang/docs.julialang.org/assets/$(file)"
import Markdown
Markdown.parse("""
!!! note
The documentation is also available in PDF format: [$file]($url).
""")
```

### [Introduction](@id man-introduction)

Scientific computing has traditionally required the highest performance, yet domain experts have
Expand Down

0 comments on commit 235bdc7

Please sign in to comment.