Skip to content

Commit a500830

Browse files
committed
docs: set up mirroring
1 parent 773ecc7 commit a500830

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
- uses: julia-actions/julia-docdeploy@v1
8383
env:
8484
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
DOCUMENTER_KEY_CAM: ${{ secrets.DAMTP_DEPLOY_KEY }}
8586
- run: |
8687
julia --project=docs -e '
8788
using Documenter: DocMeta, doctest

docs/make.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ makedocs(;
3636
sitename="BorrowChecker.jl",
3737
format=Documenter.HTML(;
3838
prettyurls=get(ENV, "CI", "false") == "true",
39-
canonical="https://astroautomata.com/BorrowChecker.jl",
39+
canonical="https://ai.damtp.cam.ac.uk/borrowcheckerjl",
4040
edit_link="main",
4141
assets=String[],
4242
repolink="https://github.com/mcranmer/BorrowChecker.jl",
@@ -46,3 +46,11 @@ makedocs(;
4646
)
4747

4848
deploydocs(; repo="github.com/MilesCranmer/BorrowChecker.jl", devbranch="main")
49+
50+
# Mirror to DAMTP:
51+
ENV["DOCUMENTER_KEY"] = ENV["DOCUMENTER_KEY_CAM"]
52+
ENV["GITHUB_REPOSITORY"] = "ai-damtp-cam-ac-uk/borrowcheckerjl.git"
53+
deploydocs(;
54+
repo="github.com/ai-damtp-cam-ac-uk/borrowcheckerjl.git",
55+
devbranch="main"
56+
)

0 commit comments

Comments
 (0)