Skip to content

Commit

Permalink
fix api reference docs images (#550)
Browse files Browse the repository at this point in the history
* fix api reference docs images

* no strict warning in mkdocs
  • Loading branch information
rafaqz authored Oct 30, 2023
1 parent d8fbd31 commit 8f95f8a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ repo_url: https://github.com/rafaqz/Rasters.jl
repo_name: Rasters
edit_uri: "" # No edit button, as some of our pages are in /docs and some in /examples via symlink, so it's impossible for them all to be accurate

strict: true # Don't allow warnings during the build process
strict: false # Don't allow warnings during the build process
extra_javascript:
# The below three make MathJax work, see https://squidfunk.github.io/mkdocs-material/reference/mathjax/
- _static/mathjax.js
Expand Down Expand Up @@ -111,4 +111,4 @@ nav:
- "Examples and Plotting" : "scripts/generated/basics/plotting.md"
- "A basic species distribution modelling workflow" : "scripts/generated/basics/gbif_wflow.md"
- "Examples with Makie" : "scripts/generated/basics/plot_makie.md"
- "API Reference" : "reference.md"
- "API Reference" : "reference.md"
2 changes: 1 addition & 1 deletion src/methods/aggregate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ savefig("docs/build/aggregate_example.png"); nothing
```
![aggregate](/build/aggregate_example.png)
![aggregate](../build/aggregate_example.png)
Note: currently it is faster to aggregate over memory-backed arrays.
Use [`read`](@ref) on `src` before use where required.
Expand Down
4 changes: 2 additions & 2 deletions src/methods/classify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ savefig("docs/build/classify_example.png"); nothing
# output
```
![classify](/build/classify_example.png)
![classify](../build/classify_example.png)
$EXPERIMENTAL
"""
Expand Down Expand Up @@ -135,7 +135,7 @@ savefig("docs/build/classify_bang_example.png"); nothing
# output
```
![classify!](/build/classify_bang_example.png)
![classify!](../build/classify_bang_example.png)
$EXPERIMENTAL
"""
Expand Down
6 changes: 3 additions & 3 deletions src/methods/crop_extend.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ nothing
# output
```
![new zealand evenness cropped](/build/nz_crop_example.png)
![new zealand evenness cropped](../build/nz_crop_example.png)
Crop to a polygon:
Expand All @@ -61,7 +61,7 @@ savefig("docs/build/argentina_crop_example.png"); nothing
# output
```
![argentina evenness cropped](/build/argentina_crop_example.png)
![argentina evenness cropped](../build/argentina_crop_example.png)
$EXPERIMENTAL
"""
Expand Down Expand Up @@ -146,7 +146,7 @@ nothing
# output
```
![extend](/build/extend_example.png)
![extend](../build/extend_example.png)
$EXPERIMENTAL
"""
Expand Down
12 changes: 6 additions & 6 deletions src/methods/mask.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ savefig(b, "docs/build/mask_example_after.png"); nothing
### Before `mask`:
![before mask](/build/mask_example_before.png)
![before mask](../build/mask_example_before.png)
### After `mask`:
![after mask](/build/mask_example_after.png)
![after mask](../build/mask_example_after.png)
$EXPERIMENTAL
"""
Expand Down Expand Up @@ -143,11 +143,11 @@ savefig(b, "docs/build/mask_bang_example_after.png"); nothing
### Before `mask!`:
![before mask!](/build/mask_bang_example_before.png)
![before mask!](../build/mask_bang_example_before.png)
### After `mask!`:
![after mask!](/build/mask_bang_example_after.png)
![after mask!](../build/mask_bang_example_after.png)
$EXPERIMENTAL
"""
Expand Down Expand Up @@ -239,7 +239,7 @@ savefig("docs/build/boolmask_example.png"); nothing
# output
```
![boolmask](/build/boolmask_example.png)
![boolmask](../build/boolmask_example.png)
$EXPERIMENTAL
"""
Expand Down Expand Up @@ -317,7 +317,7 @@ savefig("docs/build/missingmask_example.png"); nothing
# output
```
![missingmask](/build/missingmask_example.png)
![missingmask](../build/missingmask_example.png)
$EXPERIMENTAL
"""
Expand Down
8 changes: 4 additions & 4 deletions src/methods/mosaic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ nothing
### Individual continents
![arica](/build/mosaic_example_africa.png)
![arica](../build/mosaic_example_africa.png)
![aus](/build/mosaic_example_aus.png)
![aus](../build/mosaic_example_aus.png)
### Mosaic of continents
![mosaic](/build/mosaic_example_combined.png)
![mosaic](../build/mosaic_example_combined.png)
$EXPERIMENTAL
"""
Expand Down Expand Up @@ -131,7 +131,7 @@ nothing
```
![mosaic](/build/mosaic_bang_example.png)
![mosaic](../build/mosaic_bang_example.png)
$EXPERIMENTAL
"""
Expand Down
4 changes: 2 additions & 2 deletions src/methods/rasterize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ savefig("docs/build/china_rasterized.png"); nothing
```
![rasterize](/build/china_rasterized.png)
![rasterize](../build/china_rasterized.png)
$EXPERIMENTAL
"""
Expand Down Expand Up @@ -529,7 +529,7 @@ savefig("docs/build/indonesia_rasterized.png"); nothing
```
![rasterize](/build/indonesia_rasterized.png)
![rasterize](../build/indonesia_rasterized.png)
$EXPERIMENTAL
"""
Expand Down
4 changes: 2 additions & 2 deletions src/methods/trim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ savefig(b, "docs/build/trim_example_after.png"); nothing
### Before `trim`:
![before trim](/build/trim_example_before.png)
![before trim](../build/trim_example_before.png)
### After `trim`:
![after trim](/build/trim_example_after.png)
![after trim](../build/trim_example_after.png)
$EXPERIMENTAL
"""
Expand Down

0 comments on commit 8f95f8a

Please sign in to comment.