|
25 | 25 | package_directory = dirname(dirname(pathof(Turing)))
|
26 | 26 | source_path = joinpath(package_directory, "docs", "src")
|
27 | 27 |
|
| 28 | +# Need to copy all the Turing data into a temp folder |
| 29 | +# NOTE: This is where all the built documents will go, |
| 30 | +# and it's where the site should ultimately be |
| 31 | +# built from. |
| 32 | +tmp_path = mktempdir() |
| 33 | + |
28 | 34 | # Paths.
|
29 |
| -build_path = joinpath(package_directory, "_docs") |
| 35 | +build_path = joinpath(tmp_path, "_docs") |
30 | 36 |
|
31 | 37 | # Build docs
|
32 | 38 | with_clean_docs(source_path, build_path) do source, build
|
|
41 | 47 |
|
42 | 48 | # You can skip this part if you are on a metered
|
43 | 49 | # connection by calling `julia make.jl no-tutorials`
|
44 |
| -tutorial_path = joinpath(package_directory, "docs", "_tutorials") |
| 50 | +tutorial_path = joinpath(tmp_path, "_tutorials") |
45 | 51 | in("no-tutorials", ARGS) || copy_tutorial(tutorial_path)
|
46 | 52 |
|
47 | 53 | # set default baseurl for the master branch
|
48 |
| -baseurl = "/" * version |
| 54 | +baseurl = "/turing.ml/" * version |
49 | 55 |
|
50 | 56 | @info "" baseurl
|
51 | 57 |
|
52 | 58 | # deploy
|
53 | 59 | jekyll_build = joinpath(@__DIR__, "jekyll-build")
|
54 |
| -with_baseurl(() -> run(`$jekyll_build`), baseurl) |
55 |
| -repo = "github.com:TuringLang/turing.ml.git" |
| 60 | +with_baseurl(() -> run(`$jekyll_build`), baseurl, joinpath(package_directory, "_config.yml")) |
| 61 | +repo = "github.com:cpfiffer/turing.ml.git" |
56 | 62 |
|
57 | 63 | deploy_config = GitHubActions(
|
58 |
| - "TuringLang/turing.ml", #github_repository::String |
| 64 | + "cpfiffer/turing.ml", #github_repository::String |
59 | 65 | "push", #github_event_name::String
|
60 | 66 | is_dev ? "refs/branch/master" : "refs/tags/$(ARGS[1])" #github_ref::String
|
61 | 67 | )
|
|
0 commit comments