Skip to content

Commit a775fe5

Browse files
authored
Add Documenter key and warinng about SSH setup (#460)
1 parent 6f6c392 commit a775fe5

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/plugins/documenter.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ Sets up documentation generation via [Documenter.jl](https://github.com/JuliaDoc
3737
Documentation deployment depends on `T`, where `T` is some supported CI plugin,
3838
or `Nothing` to only support local documentation builds.
3939
40+
!!! note
41+
If you are deploying documentation with GitHub Actions or Travis CI, don't forget to complete
42+
[the required configuration](https://documenter.juliadocs.org/stable/man/hosting/#Hosting-Documentation).
43+
In particular, you may need to run
44+
```julia
45+
using DocumenterTools; DocumenterTools.genkeys(user="MyUser", repo="MyPackage.jl")
46+
```
47+
and follow the instructions there.
48+
4049
## Supported Type Parameters
4150
- `GitHubActions`: Deploys documentation to [GitHub Pages](https://pages.github.com)
4251
with the help of [`GitHubActions`](@ref).
@@ -62,10 +71,6 @@ or `Nothing` to only support local documentation builds.
6271
- `devbranch::Union{AbstractString, Nothing}`: Branch that will trigger docs deployment.
6372
If `nothing`, then the default branch according to the `Template` will be used.
6473
- `makedocs_kwargs::Dict{Symbol,Any}`: Extra keyword arguments to be inserted into `makedocs`.
65-
66-
!!! note
67-
If deploying documentation with Travis CI, don't forget to complete
68-
[the required configuration](https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#SSH-Deploy-Keys-1).
6974
"""
7075
struct Documenter{T} <: Plugin
7176
assets::Vector{String}

templates/github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
- uses: julia-actions/julia-docdeploy@v1
9393
env:
9494
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
9596
- name: Run doctests
9697
shell: julia --project=docs --color=yes {0}
9798
run: |

test/fixtures/DocumenterGitHubActions/.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
- uses: julia-actions/julia-docdeploy@v1
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
6566
- name: Run doctests
6667
shell: julia --project=docs --color=yes {0}
6768
run: |

test/fixtures/WackyOptions/.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
- uses: julia-actions/julia-docdeploy@v1
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
6667
- name: Run doctests
6768
shell: julia --project=docs --color=yes {0}
6869
run: |

0 commit comments

Comments
 (0)