From 4140e6c18f1ce3288b938f5898a40e3272a8b131 Mon Sep 17 00:00:00 2001 From: Olivier Cots Date: Tue, 1 Sep 2026 23:22:35 +0200 Subject: [PATCH] Standardize documentation plotting output as SVG Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- docs/make.jl | 6 +++++- docs/src/guide/plotting.md | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index 4ab9a33e..dfcef941 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -19,7 +19,11 @@ using Test using Coverage using DifferentiationInterface using Plots -using CairoMakie +import CairoMakie + +Base.showable(::MIME"image/png", ::Plots.Plot) = false +CairoMakie.activate!(; type="svg") +Base.showable(::MIME"image/png", ::CairoMakie.Makie.Figure) = false # Make extension modules available in Main so that @docs blocks can resolve # qualified bindings like CTFlowsSciMLIntegrator.SciMLIntegrationResult. diff --git a/docs/src/guide/plotting.md b/docs/src/guide/plotting.md index 41f04cd2..e7f78e15 100644 --- a/docs/src/guide/plotting.md +++ b/docs/src/guide/plotting.md @@ -6,7 +6,6 @@ CurrentModule = CTBase ```@setup plot using Plots -Base.showable(::MIME"image/png", ::Plots.Plot) = false ``` The [`CTBase.Plotting`](@ref) submodule is a generic, domain-free plotting engine.