- Deprecation warnings for
format
now get printed correctly when multiple formats are passed as aVector
. (#967)
- A bug in
jldoctest
-blocks that, in rare cases, resulted in wrong output has been fixed. (#959, #960)
- The lunr.js and lodash JavaScript dependencies have been updated to their latest patch versions (from 2.3.1 to 2.3.5 and 4.17.4 to 4.17.11, respectively). This is in response to a vulnerability in lodash <4.17.11 (CVE-2018-16487). (#946)
-
linkcheck
now handles servers that do not supportHEAD
requests and properly checks for status codes of FTP responses. (#934)
-
@repl
blocks now work correctly together with quoted expressions. (#923, #926) -
@example
,@repl
and@eval
blocks now handle reserved words, e.g.try
/catch
, correctly. (#886, #927)
-
The symbol values to the
format
argument ofmakedocs
(:html
,:markdown
,:latex
) have been deprecated in favor of theDocumenter.HTML
,Markdown
andLaTeX
objects. TheMarkdown
andLaTeX
types are exported from the DocumenterMarkdown and DocumenterLaTeX packages, respectively. HTML output is still the default. (#891)For upgrading: If you don't specify
format
(i.e. you rely on the default) you don't have to do anything. Otherwise update calls tomakedocs
to use struct instances instead of symbols, e.g.makedocs( format = :markdown )
should be changed to
using DocumenterMarkdown makedocs( format = Markdown() )
-
The
html_prettyurls
,html_canonical
,html_disable_git
andhtml_edit_branch
arguments tomakedocs
have been deprecated in favor of the corresponding arguments of theDocumenter.HTML
format plugin. (#864, #891)For upgrading: pass the corresponding arguments with the
Documenter.HTML
plugin instead. E.g. instead ofmakedocs( html_prettyurls = ..., html_canonical = ..., ... )
you should have
makedocs( format = Documenter.HTML(prettyurls = ..., canonical = ...), ... )
Note: It is technically possible to specify the same argument twice with different values by passing both variants. In that case the value to the deprecated
html_*
variant takes precedence. -
Packages extending Documenter can now define subtypes of
Documenter.Plugin
, which can be passed tomakedocs
as positional arguments to pass options to the extensions. (#864) -
@autodocs
blocks now support theFilter
keyword, which allows passing a user-defined function that will filter the methods spliced in by the at-autodocs block. (#885) -
linkcheck
now supports checking URLs using the FTP protocol. (#879) -
Build output logging has been improved and switched to the logging macros from
Base
. (#876) -
The default
documenter.sty
LaTeX preamble now include\usepackage{graphicx}
. (#898) -
deploydocs
is now more helpful when it fails to interpretDOCUMENTER_KEY
. It now also uses theBatchMode
SSH option and throws an error instead of asking for a passphrase and timing out the Travis build whenDOCUMENTER_KEY
is broken. (#697, #907) -
deploydocs
now have aforcepush
keyword argument that can be used to force-push the built documentation instead of adding a new commit. (#905)
-
Documenter v0.20 requires at least Julia v0.7. (#795)
-
Documentation deployment via the
deploydocs
function has changed considerably.-
The user-facing directories (URLs) of different versions and what gets displayed in the version selector have changed. By default, Documenter now creates the
stable/
directory (as before) and a directory for every minor version (vX.Y/
). Therelease-X.Y
directories are no longer created. (#706, #813, #817)Technically, Documenter now deploys actual files only to
dev/
andvX.Y.Z/
directories. The directories (URLs) that change from version to version (e.g.latest/
,vX.Y
) are implemented as symlinks on thegh-pages
branch.The version selector will only display
vX.Y/
,stable/
anddev/
directories by default. This behavior can be customized with theversions
keyword ofdeploydocs
. -
Documentation from the development branch (e.g.
master
) now deploys todev/
by default (instead oflatest/
). This can be customized with thedevurl
keyword. (#802) -
The
latest
keyword todeploydocs
has been deprecated and renamed todevbranch
. (#802) -
The
julia
andosname
keywords todeploydocs
are now deprecated. (#816) -
The default values of the
target
,deps
andmake
keywords todeploydocs
have been changed. See the default format change below for more information. (#826)
For upgrading:
-
If you are using the
latest
keyword, then just usedevbranch
with the same value instead. -
Update links that point to
latest/
to point todev/
instead (e.g. in the README). -
Remove any links to the
release-X.Y
branches and remove the directories from yourgh-pages
branch. -
The operating system and Julia version should be specified in the Travis build stage configuration (via
julia:
andos:
options, see "Hosting Documentation" in the manual for more details) or by checking theTRAVIS_JULIA_VERSION
andTRAVIS_OS_NAME
environment variables inmake.jl
yourself.
-
-
makedocs
will now build Documenter's native HTML output by default anddeploydocs
' defaults now assume the HTML output. (#826)-
The default value of the
format
keyword ofmakedocs
has been changed to:html
. -
The default value of the
target
keyword todeploydocs
has been changed to"build"
. -
The default value of the
make
anddeps
keywords todeploydocs
have been changed tonothing
.
For upgrading: If you are relying on the Markdown/MkDocs output, you now need to:
-
In
makedocs
, explicitly setformat = :markdown
-
In
deploydocs
, explicitly settarget = "site" deps = Deps.pip("pygments", "mkdocs") make = () -> run(`mkdocs build`)
-
Explicitly import
DocumenterMarkdown
inmake.jl
. See theMarkdownWriter
deprecation below.
If you already specify any of the changed keywords, then you do not need to make any changes to those keywords you already set.
However, if you are setting any of the values to the new defaults (e.g. when you are already using the HTML output), you may now rely on the new defaults.
-
-
The Markdown/MkDocs (
format = :markdown
) and PDF/LaTeX (format = :latex
) outputs now require an external package to be loaded (DocumenterMarkdown and DocumenterLaTeX, respectively). (#833)For upgrading: Make sure that the respective extra package is installed and then just add
using DocumenterMarkdown
orusing DocumenterLaTeX
tomake.jl
. -
"Pretty URLs" are enabled by default now for the HTML output. The default value of the
html_prettyurls
has been changed totrue
.For a page
foo/page.md
Documenter now generatesfoo/page/index.html
, instead offoo/page.html
. On GitHub pages deployments it means that your URLs look likefoo/page/
instead offoo/page.html
.For local builds you should explicitly set
html_prettyurls = false
.For upgrading: If you wish to retain the old behavior, set
html_prettyurls = false
inmakedocs
. If you already sethtml_prettyurls
, you do not need to change anything. -
The
Travis.genkeys
andDocumenter.generate
functions have been moved to a separate DocumenterTools.jl package. (#789) -
If Documenter is not able to determine which Git hosting service is being used to host the source, the "Edit on XXX" links become "Edit source" with a generic icon. (#804)
-
The at-blocks now support
MIME"text/html"
rendering of objects (e.g. for interactive plots). I.e. if a type hasshow(io, ::MIME"text/html", x)
defined, Documenter now uses that when rendering the objects in the document. (#764) -
Enhancements to the sidebar. When loading a page, the sidebar will jump to the current page now. Also, the scrollbar in WebKit-based browsers look less intrusive now. (#792, #854, #863)
-
Minor style enhancements to admonitions. (#841)
-
The at-blocks that execute code can now handle
include
statements. (#793, #794) -
At-docs blocks no longer give an error when containing empty lines. (#823, #824)