Skip to content

Commit e24c30a

Browse files
authored
Add a new make -C doc alldeps target to install Documenter (#58504)
This adds a new `alldeps` target to `make -C doc` that also downloads the Documenter.jl dependency. The motivation here is to make sure to have all dependencies necessary for running the doctests in an environment that may not have network connectivity (e.g. the OpenAI Codex sandbox).
1 parent c5df018 commit e24c30a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ deps: $(SRCCACHE)/UnicodeData-$(UNICODE_DATA_VERSION).txt
3434
$(JLCHECKSUM) "$<"
3535
cp "$<" UnicodeData.txt
3636

37+
alldeps: deps
38+
$(JULIA_EXECUTABLE) --color=yes $(call cygpath_w,$(SRCDIR)/make.jl) deps
39+
3740
checksum-unicodedata: $(SRCCACHE)/UnicodeData-$(UNICODE_DATA_VERSION).txt
3841
$(JLCHECKSUM) "$<"
3942

doc/make.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ push!(DEPOT_PATH, abspath(Sys.BINDIR, "..", "share", "julia"))
88
using Pkg
99
Pkg.instantiate()
1010

11+
if "deps" in ARGS
12+
exit()
13+
end
14+
1115
using Documenter
1216
import LibGit2
1317

0 commit comments

Comments
 (0)