From 6bf6f9989c6c95efadd98f1893439d535b06da65 Mon Sep 17 00:00:00 2001 From: Sebastian Stock <42280794+sostock@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:57:23 +0200 Subject: [PATCH] Update to Documenter v1 (#687) * Use Documenter v1 and Latexify v0.16 * Import `InverseFunctions.inverse` in doctest --- docs/Project.toml | 4 ++-- docs/make.jl | 1 + src/utils.jl | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index db359a7e..418f2c7b 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -6,5 +6,5 @@ Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316" Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a" [compat] -Documenter = "0.27" -Latexify = "0.13" +Documenter = "1" +Latexify = "0.16" diff --git a/docs/make.jl b/docs/make.jl index 9bba2d55..e8f865d3 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -5,6 +5,7 @@ DocMeta.setdocmeta!(Unitful, :DocTestSetup, :(using Unitful)) makedocs( sitename = "Unitful.jl", format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true"), + warnonly = [:missing_docs], modules = [Unitful], workdir = joinpath(@__DIR__, ".."), pages = [ diff --git a/src/utils.jl b/src/utils.jl index 2dd03169..5d717015 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -28,6 +28,8 @@ true `ustrip` supports `InverseFunctions.inverse`: ```jldoctest +julia> using InverseFunctions: inverse + julia> inverse(Base.Fix1(ustrip, u"m"))(5) 5 m ```