Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
📚 minimal documentation page
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisot committed Nov 13, 2019
1 parent 0dbaf62 commit 6b2bdf6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
push!(LOAD_PATH, joinpath("..", "src"))

using Documenter, SimpleSDMLayers

makedocs(sitename="Simple SDM Layers")
15 changes: 15 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Simple SDM Layers

```@docs
SimpleSDMLayer
SimpleSDMResponse
SimpleSDMPredictor
```

```@docs
worldclim
```
```@docs
latitudes
longitudes
```
3 changes: 3 additions & 0 deletions src/bioclimaticdata/worldclim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,7 @@ Return a single layer from WorldClim 2.0.
"""
worldclim(layer::Int64; x...) = worldclim([layer]; x...)[1]

"""
Return a range of layers from WorldClim 2.0.
"""
worldclim(layers::UnitRange{Int64}; x...) = worldclim(collect(layers); x...)

0 comments on commit 6b2bdf6

Please sign in to comment.