From 03a60f91a336a654b786402537a3406914fbd66b Mon Sep 17 00:00:00 2001 From: odow Date: Mon, 18 Sep 2023 10:06:12 +1200 Subject: [PATCH] Update --- .gitignore | 1 + docs/make.jl | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index 1da8dace7b..dba455fa46 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ test/Benchmarks/*.json Manifest.toml *.swp docs/src/release_notes.md +docs/src/MathOptInterface.pdf diff --git a/docs/make.jl b/docs/make.jl index 32f95cbbd1..05921c293c 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -120,6 +120,10 @@ end # Build the HTML docs # ============================================================================== +# Needed to make Documenter think that there is a PDF in the right place when +# link checking. Inn production we replace this by running the LaTeX build. +write(joinpath(@__DIR__, "src", "MathOptInterface.pdf"), "") + @time Documenter.makedocs( sitename = "MathOptInterface", authors = "The JuMP core developers and contributors", @@ -128,6 +132,16 @@ end prettyurls = get(ENV, "CI", nothing) == "true", mathengine = Documenter.MathJax2(), collapselevel = 1, + # Do no check for large pages. + size_threshold_ignore = [ + "changelog.md", + "release_notes.md", + "reference/models.md", + "reference/standard_form.md", + "submodules/Bridges/list_of_bridges.md", + "submodules/Bridges/reference.md", + "submodules/Utilities/reference.md", + ], ), clean = true, linkcheck = true,