From 21f7a1ea4c154d501fcd11750bd789d570f057d6 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 19 Dec 2018 22:39:11 +0100 Subject: [PATCH] Add link to the pdf version of the documentation to the html pages, fix #28604. (#30449) --- doc/src/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/src/index.md b/doc/src/index.md index b8fe2dc820fe3..ba11d6a3133c1 100644 --- a/doc/src/index.md +++ b/doc/src/index.md @@ -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