Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jun 6, 2020
1 parent ebc8916 commit 411e9a5
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions README.md
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)
```

0 comments on commit 411e9a5

Please sign in to comment.