@@ -3,7 +3,8 @@ Base.ACTIVE_PROJECT[] = nothing
33empty! (LOAD_PATH )
44push! (LOAD_PATH , @__DIR__ , " @stdlib" )
55empty! (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" ))
78using Pkg
89Pkg. 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+ )
106114end
107115
108116# Check if we are building a PDF
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 )
356365end
357366
0 commit comments