From cd0f2b84518dbd7c89c2432e7d960fc2135141ce Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Sat, 16 Sep 2023 21:43:17 +0200 Subject: [PATCH] docs 1.0 upgrade --- docs/Project.toml | 2 +- docs/make.jl | 10 +--------- docs/src/index.md | 10 ++++++---- src/exp.jl | 4 +++- test/gpu/gputests.jl | 2 +- 5 files changed, 12 insertions(+), 16 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index 3710564..4ea033e 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -3,5 +3,5 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" ExponentialUtilities = "d4d017d3-3776-5f7e-afef-a10c40355c18" [compat] -Documenter = "0.27" +Documenter = "1" ExponentialUtilities = "1" diff --git a/docs/make.jl b/docs/make.jl index de45b83..ee233c9 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -9,15 +9,7 @@ makedocs(sitename = "ExponentialUtilities.jl", authors = "Chris Rackauckas", modules = [ExponentialUtilities], clean = true, doctest = false, linkcheck = true, - strict = [ - :doctest, - :linkcheck, - :parse_error, - :example_block, - :cross_references, - # Other available options are - # :autodocs_block, :cross_references, :docs_block, :eval_block, :example_block, :footnote, :meta_block, :missing_docs, :setup_block - ], + warnonly = [:missing_docs, :docs_block], format = Documenter.HTML(analytics = "UA-90474609-3", assets = ["assets/favicon.ico"], canonical = "https://docs.sciml.ai/ExponentialUtilities/stable/"), diff --git a/docs/src/index.md b/docs/src/index.md index 12ba490..c557e85 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -112,10 +112,11 @@ You can also download the ```@eval using TOML +using Markdown version = TOML.parse(read("../../Project.toml", String))["version"] name = TOML.parse(read("../../Project.toml", String))["name"] -link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version * - "/assets/Manifest.toml" +link = Markdown.MD("https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version * + "/assets/Manifest.toml") ``` ```@raw html @@ -125,10 +126,11 @@ link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version * ```@eval using TOML +using Markdown version = TOML.parse(read("../../Project.toml", String))["version"] name = TOML.parse(read("../../Project.toml", String))["name"] -link = "https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version * - "/assets/Project.toml" +link = Markdown.MD("https://github.com/SciML/" * name * ".jl/tree/gh-pages/v" * version * + "/assets/Project.toml") ``` ```@raw html diff --git a/src/exp.jl b/src/exp.jl index 6dad01d..ff86613 100644 --- a/src/exp.jl +++ b/src/exp.jl @@ -13,7 +13,9 @@ end @deprecate _exp! exponential! @deprecate exp_generic exponential! exponential!(A) = exponential!(A, ExpMethodHigham2005(A)); -exponential!(A::GPUArraysCore.AbstractGPUArray) = exponential!(A, ExpMethodHigham2005(false)); +function exponential!(A::GPUArraysCore.AbstractGPUArray) + exponential!(A, ExpMethodHigham2005(false)) +end; ## The diagonalization based """ diff --git a/test/gpu/gputests.jl b/test/gpu/gputests.jl index 347abd9..3150018 100644 --- a/test/gpu/gputests.jl +++ b/test/gpu/gputests.jl @@ -26,7 +26,7 @@ end A_d = cu(A) exponential!(copy(A_d)) # Make sure simple command works - + # Iterate over GPU-compatible methods for m in (ExpMethodHigham2005(false),) @testset "GPU Exponential, $(string(m))" begin