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
  • Loading branch information
fredrikekre authored Dec 19, 2018
1 parent 2c71488 commit 21f7a1e
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)"

This comment has been minimized.

Copy link
@shashi

shashi Aug 27, 2020

Contributor

currently on https://docs.julialang.org/en/v1/, this link seems to be broken.

This comment has been minimized.

Copy link
@fredrikekre

fredrikekre Aug 27, 2020

Author Member

Yea, 1.5.1 is too new... Wait a day or two.
Edit: Until this job is done: https://travis-ci.org/github/JuliaLang/docs.julialang.org/builds/721750758

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 21f7a1e

Please sign in to comment.