From b3ace16bc8b57b17c03bda2fc28494d22a741ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Fuhrmann?= Date: Thu, 12 Oct 2023 17:45:24 +0200 Subject: [PATCH] Fix Documenter v1 issues --- Project.toml | 2 +- docs/Project.toml | 3 +++ docs/make.jl | 2 +- docs/makeplots.jl | 1 + docs/src/privapi.md | 13 +++++++++++++ examples/plotting.jl | 2 +- examples/plutovista.jl | 2 +- 7 files changed, 21 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index beca94e..b3964cf 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "GridVisualize" uuid = "5eed8a63-0fb0-45eb-886d-8d5a387d12b8" authors = ["Juergen Fuhrmann "] -version = "1.1.6" +version = "1.1.7" [deps] ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4" diff --git a/docs/Project.toml b/docs/Project.toml index 9121485..bc2a162 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -8,3 +8,6 @@ Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781" PlutoVista = "646e1f28-b900-46d7-9d87-d554eb38a413" + +[compat] +Documenter = "1" diff --git a/docs/make.jl b/docs/make.jl index 4f599bb..e3fe751 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -15,7 +15,7 @@ function rendernotebook(name) input=joinpath(@__DIR__,"..","examples",name*".jl") output=joinpath(@__DIR__,"src",name*".html") session = Pluto.ServerSession(); - notebook = Pluto.SessionActions.open(session, input; run_async=false) + notebook = Pluto.SessionActions.open(session, input) html_contents = Pluto.generate_html(notebook) write(output, html_contents) end diff --git a/docs/makeplots.jl b/docs/makeplots.jl index fefd1cc..0713171 100644 --- a/docs/makeplots.jl +++ b/docs/makeplots.jl @@ -50,6 +50,7 @@ function makeplots(picdir; Plotter=GLMakie, extension="png") fname=joinpath(picdir,"plotting_vec2d."*extension) save(fname,p,Plotter=Plotter) @test isfile(fname) + println("vec2d") p=plotting_stream2d(Plotter=Plotter) diff --git a/docs/src/privapi.md b/docs/src/privapi.md index 5d52c20..bf54ea1 100644 --- a/docs/src/privapi.md +++ b/docs/src/privapi.md @@ -9,6 +9,15 @@ Public = false Pages = ["dispatch.jl","common.jl"] ``` +```@docs +ispyplot +isplutovista +isplots +ismakie +isvtkview +``` + + ## PyPlot ```@autodocs Modules = [GridVisualize] @@ -25,6 +34,10 @@ Public = false Pages = ["makie.jl", "flippablelayout.jl"] ``` +```@docs +FlippableLayout +``` + ## Plots ```@autodocs Modules = [GridVisualize] diff --git a/examples/plotting.jl b/examples/plotting.jl index 0181be8..72287b3 100644 --- a/examples/plotting.jl +++ b/examples/plotting.jl @@ -134,7 +134,7 @@ function plotting_stream2d(; Plotter = default_plotter(), kwargs...) g, f = vec2d() streamplot(g, f; Plotter = Plotter, spacing = 0.05, kwargs...) end -# ![](plotting_stream2d.svg) + # ### Movie # Movies can contain any of the previous plots. diff --git a/examples/plutovista.jl b/examples/plutovista.jl index b9cd8eb..188031b 100644 --- a/examples/plutovista.jl +++ b/examples/plutovista.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.22 +# v0.19.29 using Markdown using InteractiveUtils