Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Oct 25, 2018
1 parent bcb8c9f commit f58e461
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ JULIAHOME := $(abspath $(SRCDIR)/..)
include $(JULIAHOME)/Make.inc
JULIA_EXECUTABLE := $(call spawn,$(build_bindir)/julia)

DOCBUILDROOT = $(call cygpath_w,$(BUILDROOT))
export DOCBUILDROOT

.PHONY: help clean cleanall html pdf deps deploy

help:
Expand Down
11 changes: 10 additions & 1 deletion doc/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,14 @@ for stdlib in STDLIB_DOCS
end

const render_pdf = "pdf" in ARGS
const buildroot = get(ENV, "BUILDROOT", joinpath(@__DIR__, ".."))
const buildroot = get(ENV, "DOCBUILDROOT", joinpath(@__DIR__, ".."))
@show buildroot

@show haskey(ENV, "DOCBUILDROOT")
haskey(ENV, "DOCBUILDROOT") && (@show ENV["DOCBUILDROOT"])
@show haskey(ENV, "BUILDROOT")
haskey(ENV, "BUILDROOT") && (@show ENV["BUILDROOT"])

makedocs(
build = joinpath(buildroot, "doc", "_build", (render_pdf ? "pdf" : "html"), "en"),
modules = [Base, Core, BuildSysImg, [Base.root_module(Base, stdlib.stdlib) for stdlib in STDLIB_DOCS]...],
Expand All @@ -167,6 +174,8 @@ makedocs(
assets = ["assets/julia-manual.css", ]
)

@show readdir(joinpath(buildroot, "doc", "_build"))

# Only deploy docs from 64bit Linux to avoid committing multiple versions of the same
# docs from different workers.
if "deploy" in ARGS && Sys.ARCH === :x86_64 && Sys.KERNEL === :Linux
Expand Down

0 comments on commit f58e461

Please sign in to comment.