-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,51 @@ | ||
# Keygen | ||
|
||
[![Build Status](https://github.com/aminya/Keygen.jl/workflows/CI/badge.svg)](https://github.com/aminya/Keygen.jl/actions) | ||
|
||
|
||
## documenter_keygen | ||
```julia | ||
documenter_keygen() | ||
``` | ||
|
||
Generates the SSH keys that are required for the automatic deployment of documentation with Documenter from a builder to GitHub Pages. | ||
|
||
By default the links in the instructions need to be modified to correspond to actual URLs. | ||
|
||
```julia | ||
julia> using Keygen | ||
julia> documenter_keygen() | ||
``` | ||
------ | ||
|
||
```julia | ||
documenter_keygen(; user="USER", repo="REPO") | ||
``` | ||
|
||
The optional `user` and `repo` keyword arguments can be specified so that the URLs in the printed instructions could be copied directly. They should be the name of the GitHub user or organization where the repository is hosted and the full name of the repository, | ||
respectively. | ||
|
||
```julia | ||
julia> using Keygen | ||
julia> documenter_keygen(user="JuliaDocs", repo="Keygen.jl") | ||
``` | ||
|
||
------- | ||
|
||
```julia | ||
documenter_keygen(package::Module; remote="origin") | ||
``` | ||
|
||
This method attempts to guess the package URLs from the Git remote. | ||
|
||
`package` needs to be the top level module of the package. The `remote` keyword argument can be used to specify which Git remote is used for guessing the repository's GitHub URL. | ||
|
||
This method requires `git` to be available from the command line. | ||
|
||
Note: the package must be in development mode. Make sure you run `pkg> develop pkg` from the Pkg REPL, or `Pkg.develop(\"pkg\")` before generating the SSH keys. | ||
|
||
|
||
```julia | ||
julia> using Keygen, MatLang | ||
julia> documenter_keygen(MatLang) | ||
``` |