Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 24, 2023
1 parent e2e7259 commit bb3753a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
import MathOptInterface
Pkg.develop(path=pkgdir(MathOptInterface))
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
Expand Down
11 changes: 7 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,12 @@ Documenter.DocMeta.setdocmeta!(
# link checking. Inn production we replace this by running the LaTeX build.
write(joinpath(@__DIR__, "src", "JuMP.pdf"), "")

# Create remotes for Documenter
status = sprint(io -> Pkg.status("MathOptInterface"; io = io))
version = match(r"(v[0-9].[0-9]+.[0-9]+)", status)[1]
gh_moi = Documenter.Remotes.GitHub("jump-dev", "MathOptInterface.jl")
remotes = Dict(pkgdir(MOI) => (gh_moi, version))

@time Documenter.makedocs(
sitename = "JuMP",
authors = "The JuMP core developers and contributors",
Expand Down Expand Up @@ -572,10 +578,7 @@ write(joinpath(@__DIR__, "src", "JuMP.pdf"), "")
# Skip doctests if --fast provided.
doctest = _FIX ? :fix : !_FAST,
pages = vcat(_PAGES, "release_notes.md"),
remotes = Dict(
dirname(dirname(pathof(MOI))) =>
Documenter.Remotes.GitHub("jump-dev", "MathOptInterface.jl"),
),
remotes = remotes,
)

# ==============================================================================
Expand Down

0 comments on commit bb3753a

Please sign in to comment.