Skip to content

Commit

Permalink
[docs] use tectonic_jll for PDF build (#3914)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Jan 15, 2025
1 parent b88dac4 commit 99cdc4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Wavelets = "29a6e085-ba6d-5f35-a997-948ac2efa89a"
tectonic_jll = "d7dd28d6-a5e6-559c-9131-7eb760cdacc5"

[compat]
CDDLib = "=0.9.4"
Expand Down
13 changes: 11 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import MathOptInterface
import Pkg
import Test
import TOML
import tectonic_jll

using JuMP
using JuMP.Containers
Expand Down Expand Up @@ -669,11 +670,19 @@ if _PDF
# `contents` is a big list of docstrings. By default, they'll
# show up at the `\chapter` level. That's too high.
_PAGES[4] = section_title => ["Docstrings" => contents]
latex_platform = _IS_GITHUB_ACTIONS ? "docker" : "native"
latex_platform = if _IS_GITHUB_ACTIONS
Documenter.LaTeX(;
platform = "tectonic",
tectonic = tectonic_jll.tectonic(),
)
else
Documenter.LaTeX(; platform = "native")
end

@time Documenter.makedocs(
sitename = "JuMP",
authors = "The JuMP core developers and contributors",
format = Documenter.LaTeX(; platform = latex_platform),
format = latex_platform,
build = "latex_build",
pages = _PAGES,
debug = true,
Expand Down

0 comments on commit 99cdc4c

Please sign in to comment.