Skip to content

Commit 1f1f77e

Browse files
committed
More documenter backports
1 parent b67c572 commit 1f1f77e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc/make.jl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Base.ACTIVE_PROJECT[] = nothing
33
empty!(LOAD_PATH)
44
push!(LOAD_PATH, @__DIR__, "@stdlib")
55
empty!(DEPOT_PATH)
6-
pushfirst!(DEPOT_PATH, joinpath(@__DIR__, "deps"))
6+
push!(DEPOT_PATH, joinpath(@__DIR__, "deps"))
7+
push!(DEPOT_PATH, abspath(Sys.BINDIR, "..", "share", "julia"))
78
using Pkg
89
Pkg.instantiate()
910

@@ -102,7 +103,14 @@ documenter_stdlib_remotes = let stdlib_dir = realpath(joinpath(@__DIR__, "..", "
102103
isdir(package_root_dir) || mkpath(package_root_dir)
103104
package_root_dir => (remote, package_sha)
104105
end
105-
Dict(remotes_list)
106+
Dict(
107+
# We also add the root of the repository to `remotes`, because we do not always build the docs in a
108+
# checked out JuliaLang/julia repository. In particular, when building Julia from tarballs, there is no
109+
# Git information available. And also the way the BuildKite CI is configured to check out the code means
110+
# that in some circumstances the Git repository information is incorrect / no available via Git.
111+
dirname(@__DIR__) => (Documenter.Remotes.GitHub("JuliaLang", "julia"), Base.GIT_VERSION_INFO.commit),
112+
remotes_list...
113+
)
106114
end
107115

108116
# Check if we are building a PDF
@@ -352,6 +360,7 @@ else
352360
ansicolor = true,
353361
size_threshold = 800 * 2^10, # 800 KiB
354362
size_threshold_warn = 200 * 2^10, # the manual has quite a few large pages, so we warn at 200+ KiB only
363+
inventory_version = VERSION,
355364
)
356365
end
357366

0 commit comments

Comments
 (0)