-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Documentation (take two) (#266)
* moving work to main repo * Change repo url in docs/make.jl * Small typo and fix of structure Co-authored-by: Fabian Gans <[email protected]>
- Loading branch information
1 parent
bfc872e
commit b299cba
Showing
14 changed files
with
81 additions
and
347 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,9 +1,2 @@ | ||
[deps] | ||
ESDLPlots = "d555b242-3f29-57aa-84ea-3df92a135dfd" | ||
Cairo = "159f3aea-2a34-519c-b102-8c37f9878175" | ||
ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f" | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
Fontconfig = "186bb1d3-e1f7-5a2c-a377-96d770f13627" | ||
ImageMagick = "6218d12a-5da1-5696-b52f-db25d2ecc6d1" | ||
Polynomials = "f27b6e38-b328-58d1-80ce-0feddd5e7a45" | ||
WeightedOnlineStats = "bbac0a1f-7c9d-5672-960b-c6ca726e5d5d" |
This file was deleted.
Oops, something went wrong.
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,47 +1,29 @@ | ||
using ImageMagick, Documenter, ESDL, ESDLPlots, Cairo | ||
|
||
|
||
newcubedir = mktempdir() | ||
ESDLdir(newcubedir) | ||
# Download Cube subset | ||
if !isempty(ESDL.ESDLDefaults.cubedir[]) | ||
c = S3Cube() | ||
csa = c[ | ||
region = "South America", | ||
var = ["country_mask","c_emissions","gross", "net_ecosystem", "air_temperature_2m", "terrestrial_ecosystem", "land_surface_temperature"], | ||
time = 2003:2006 | ||
] | ||
saveCube(csa,"southamericacube", chunksize=(90,90,92,1)) | ||
ESDL.ESDLDefaults.cubedir[] = joinpath(newcubedir,"southamericacube") | ||
end | ||
|
||
exampledir = joinpath(@__DIR__,"src","examples") | ||
allex = map(readdir(exampledir)) do fname | ||
n = splitext(fname)[1] | ||
n => joinpath("examples",fname) | ||
end | ||
|
||
using Documenter, ESDL | ||
|
||
makedocs( | ||
modules = [ESDL, ESDLPlots], | ||
clean = true, | ||
modules = [ESDL], | ||
clean = true, | ||
doctest = false, | ||
format = Documenter.HTML(), | ||
sitename = "ESDL.jl", | ||
authors = "Fabian Gans", | ||
pages = [ # Compat: `Any` for 0.4 compat | ||
authors = "Fabian Gans", | ||
pages = [ | ||
"Home" => "index.md", | ||
"Examples" => allex, | ||
"Manual" => Any[ | ||
"cube_access.md", | ||
"analysis.md", | ||
"plotting.md", | ||
"iotools.md" | ||
"Examples" => Any[ | ||
"Time Mean" => "examples/time_mean.md", | ||
"Distributed Computations" => "examples/distributed.md", | ||
], | ||
"API Documentation" => Any[ | ||
"Index" => "API/api_index.md", | ||
"Accessing the Data Cube" => "API/cube_access.md", | ||
"Analysis" => "API/analysis.md", | ||
"Loading and Saving Results" => "API/iotools.md" | ||
], | ||
"Other functions" => "./lib/misc.md" | ||
"Other functions" => "lib/misc.md" | ||
] | ||
) | ||
|
||
deploydocs( | ||
#deps = Deps.pip("mkdocs", "python-markdown-math"), | ||
repo = "github.com/esa-esdl/ESDL.jl.git", | ||
repo = "github.com/JuliaDataCubes/ESDL.jl.git", | ||
push_preview = true | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Index | ||
|
||
```@index | ||
``` |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Loading and saving results | ||
|
||
ESDL.ESDLTools.@loadOrGenerate |
9 changes: 0 additions & 9 deletions
9
docs/src/examples/Time Mean.md → docs/src/examples/distributed.md
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## How to calculate a time mean | ||
|
||
````@jldoctest | ||
using ESDL | ||
c = Cube() | ||
citaly = c[var = ["air_temperature_2m", "evaporation"], region="Italy", time=2001:2003] | ||
mapslices(mean ∘ skipmissing, c, dims="Time") | ||
```` | ||
|
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
This file was deleted.
Oops, something went wrong.
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,7 +1,5 @@ | ||
# Other functions | ||
|
||
```@docs | ||
getAxis | ||
caxes | ||
getNpY | ||
getNpY | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.