Update docstrings and add docs pages
This commit is contained in:
parent
8434be6bf1
commit
544c75528d
@ -5,6 +5,9 @@ makedocs(
|
|||||||
format=:html,
|
format=:html,
|
||||||
pages=[
|
pages=[
|
||||||
"Home" => "index.md",
|
"Home" => "index.md",
|
||||||
|
"Package Generation" => "pages/package_generation.md",
|
||||||
|
"Plugins" => "pages/plugins.md",
|
||||||
|
"Licenses" => "pages/licenses.md",
|
||||||
],
|
],
|
||||||
repo="https://github.com/christopher-dG/PkgTemplates.jl/blob/{commit}{path}#L{line}",
|
repo="https://github.com/christopher-dG/PkgTemplates.jl/blob/{commit}{path}#L{line}",
|
||||||
sitename="PkgTemplates.jl",
|
sitename="PkgTemplates.jl",
|
||||||
|
4
docs/src/pages/index.md
Normal file
4
docs/src/pages/index.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Index
|
||||||
|
|
||||||
|
```@index
|
||||||
|
```
|
15
docs/src/pages/licenses.md
Normal file
15
docs/src/pages/licenses.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
```@meta
|
||||||
|
CurrentModule = PkgTemplates
|
||||||
|
```
|
||||||
|
|
||||||
|
# Licenses
|
||||||
|
|
||||||
|
[Many open-source licenses](https://github.com/invenia/PkgTemplates.jl/tree/master/licenses)
|
||||||
|
are available for use with `PkgTemplates`, but if you see that one is missing,
|
||||||
|
don't hesitate to open an issue or PR.
|
||||||
|
|
||||||
|
## show_license
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
show_license
|
||||||
|
```
|
20
docs/src/pages/package_generation.md
Normal file
20
docs/src/pages/package_generation.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
```@meta
|
||||||
|
CurrentModule = PkgTemplates
|
||||||
|
```
|
||||||
|
|
||||||
|
# Package Generation
|
||||||
|
|
||||||
|
Creating new packages with `PkgTemplates` revolves around creating a new
|
||||||
|
[`Template`](@ref), then calling [`generate`](@ref) on it.
|
||||||
|
|
||||||
|
## Template
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
Template
|
||||||
|
```
|
||||||
|
|
||||||
|
## generate
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
generate
|
||||||
|
```
|
35
docs/src/pages/plugins.md
Normal file
35
docs/src/pages/plugins.md
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
```@meta
|
||||||
|
CurrentModule = PkgTemplates
|
||||||
|
```
|
||||||
|
|
||||||
|
# Plugins
|
||||||
|
|
||||||
|
## TravisCI
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
TravisCI
|
||||||
|
```
|
||||||
|
|
||||||
|
## AppVeyor
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
AppVeyor
|
||||||
|
```
|
||||||
|
|
||||||
|
## CodeCov
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
CodeCov
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documenter
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
Documenter
|
||||||
|
```
|
||||||
|
|
||||||
|
## GitHubPages
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
GitHubPages
|
||||||
|
```
|
@ -1,10 +1,10 @@
|
|||||||
"""
|
"""
|
||||||
AppVeyor(; config_file::AbstractString="") -> AppVeyor
|
AppVeyor(; config_file::Union{AbstractString, Void}="") -> AppVeyor
|
||||||
|
|
||||||
Add AppVeyor to a template's plugins to add AppVeyor CI support.
|
Add AppVeyor to a template's plugins to add AppVeyor CI support.
|
||||||
|
|
||||||
# Keyword Arguments
|
# Keyword Arguments
|
||||||
* `config_file::Union{AbstractString, Void}`: Path to a custom `.appveyor.yml`.
|
* `config_file::Union{AbstractString, Void}=""`: Path to a custom `.appveyor.yml`.
|
||||||
If `nothing` is supplied, then no file will be generated.
|
If `nothing` is supplied, then no file will be generated.
|
||||||
"""
|
"""
|
||||||
@auto_hash_equals struct AppVeyor <: Plugin
|
@auto_hash_equals struct AppVeyor <: Plugin
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
"""
|
"""
|
||||||
CodeCov(; config_file::AbstractString="") -> CodeCov
|
CodeCov(; config_file::Union{AbstractString, Void}="") -> CodeCov
|
||||||
|
|
||||||
Add CodeCov to a template's plugins to enable CodeCov coverage reports.
|
Add CodeCov to a template's plugins to enable CodeCov coverage reports.
|
||||||
|
|
||||||
# Keyword Arguments:
|
# Keyword Arguments:
|
||||||
* `config_file::AbstractString`: Path to a custom `.codecov.yml`.
|
* `config_file::Union{AbstractString, Void}=""`: Path to a custom `.codecov.yml`.
|
||||||
If `nothing` is supplied, then no file will be generated.
|
If `nothing` is supplied, then no file will be generated.
|
||||||
"""
|
"""
|
||||||
@auto_hash_equals struct CodeCov <: Plugin
|
@auto_hash_equals struct CodeCov <: Plugin
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
"""
|
"""
|
||||||
TravisCI(; config_file::AbstractString="") -> TravisCI
|
TravisCI(; config_file::Union{AbstractString, Void}="") -> TravisCI
|
||||||
|
|
||||||
Add TravisCI to a template's plugins to add Travis CI support.
|
Add TravisCI to a template's plugins to add Travis CI support.
|
||||||
|
|
||||||
# Keyword Arguments:
|
# Keyword Arguments:
|
||||||
* `config_file::AbstractString`: Path to a custom `.travis.yml`.
|
* `config_file::Union{AbstractString, Void}=""`: Path to a custom `.travis.yml`.
|
||||||
If `nothing` is supplied, then no file will be generated.
|
If `nothing` is supplied, then no file will be generated.
|
||||||
"""
|
"""
|
||||||
@auto_hash_equals struct TravisCI <: Plugin
|
@auto_hash_equals struct TravisCI <: Plugin
|
||||||
|
@ -10,8 +10,8 @@ Records common information used to generate a package.
|
|||||||
username. This is case-sensitive for some plugins, so take care to enter it correctly.
|
username. This is case-sensitive for some plugins, so take care to enter it correctly.
|
||||||
* `host::AbstractString="github.com"`: Code hosting service where your package will reside.
|
* `host::AbstractString="github.com"`: Code hosting service where your package will reside.
|
||||||
* `license::Union{AbstractString, Void}=nothing`: Name of the package licsense. If
|
* `license::Union{AbstractString, Void}=nothing`: Name of the package licsense. If
|
||||||
no license is specified, no license is created. `show_license` can be used to list all
|
no license is specified, no license is created. [`show_license`](@ref) can be used to
|
||||||
available licenses, or to print out a particular license's text.
|
list all available licenses, or to print out a particular license's text.
|
||||||
* `authors::Union{AbstractString, Array}=LibGit2.getconfig("user.name", "")`: Names that
|
* `authors::Union{AbstractString, Array}=LibGit2.getconfig("user.name", "")`: Names that
|
||||||
appear on the license. Supply a string for one author, and an array for multiple.
|
appear on the license. Supply a string for one author, and an array for multiple.
|
||||||
* `years::Union{Int, AbstractString}=string(Dates.year(Dates.today()))`: Copyright years
|
* `years::Union{Int, AbstractString}=string(Dates.year(Dates.today()))`: Copyright years
|
||||||
|
Loading…
Reference in New Issue
Block a user