Skip to content

Commit

Permalink
docs: replace pkgdown by altdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
rCarto committed Jan 22, 2025
1 parent e22f11c commit 5006ce0
Show file tree
Hide file tree
Showing 63 changed files with 281 additions and 151 deletions.
6 changes: 5 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
^README\.Rmd$
^test
^\.github$
^vignettes/web_only/*
^CITATION\.cff$
^codecov\.yml$
^map.png
^note.md
^LICENSE\.md$
^CONTRIBUTING\.md$
^altdoc$
^vignettes/how_to*
^vignettes/cheat_sheet.Rmd
^vignettes/fig/wo_*
^vignettes/fig/mapsf_cheatsheet.*
43 changes: 0 additions & 43 deletions .github/workflows/pkgdown.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ docs
/Meta/

note.md
altdoc/freeze.rds
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ Imports:
Suggests:
terra,
Ckmeans.1d.dp,
png,
png,
jpeg,
lwgeom,
knitr,
rmarkdown,
tinytest,
covr
covr,
altdoc
Encoding: UTF-8
RoxygenNote: 7.3.2
VignetteBuilder: knitr
Expand Down
Empty file added altdoc/.nojekyll
Empty file.
47 changes: 47 additions & 0 deletions altdoc/docsify.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<!-- Theme: Simple (light + dark) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css">

</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: '$ALTDOC_PACKAGE_NAME',
repo: '$ALTDOC_PACKAGE_URL_GITHUB',
loadSidebar: true,
subMaxLevel: 1,
search: {
placeholder: 'Search',
depth: 3,
},
auto2top: true,
copyCode: {
buttonText : 'Copy',
errorText : 'Error',
successText: 'Copied'
},
plugins: [
function(hook) {
var footer = ["<a href='$ALTDOC_PACKAGE_URL'> <code> $ALTDOC_PACKAGE_NAME </code> v. $ALTDOC_PACKAGE_VERSION </a> | Documentation made with <a href='https://altdoc.etiennebacher.com/'> <code> altdoc </code> v. $ALTDOC_VERSION</a>"].join('');

hook.afterEach(function(html) {
return html + footer;
});
}
]
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]/components/prism-r.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
</body>
</html>
41 changes: 41 additions & 0 deletions altdoc/docsify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
* [Home](/)
* Vignettes
- [Cheat sheet](vignettes/cheat_sheet)
- [Get started with mapsf](vignettes/mapsf)
- [How to export maps](vignettes/how_to_export_maps)
- [How to use themes](vignettes/how_to_use_themes)
- [How to create faceted maps](vignettes/how_to_create_faceted_maps)
- [How to create inset maps](vignettes/how_to_create_inset_maps)
- [How to use a custom font](vignettes/how_to_use_a_custom_font_family)
* Functions
- Symbology
- [mf_map()](man/mf_map)
- [mf_label()](man/mf_label)
- [mf_raster()](man/mf_raster)
- [mf_graticule()](man/mf_graticule)
- Map layout
- [mf_theme()](man/mf_theme)
- [mf_shadow()](man/mf_shadow)
- [mf_background()](man/mf_background)
- [mf_legend()](man/mf_legend)
- [mf_annotation()](man/mf_annotation)
- [mf_arrow()](man/mf_arrow)
- [mf_credits()](man/mf_credits)
- [mf_layout()](man/mf_layout)
- [mf_title()](man/mf_title)
- [mf_scale()](man/mf_scale)
- [mf_inset_*()](man/mf_inset_on)
- [mf_worldmap()](man/mf_worldmap)
- Utility
- [mf_export()](man/mf_export)
- [mf_distr()](man/mf_distr)
- [mf_get_links()](man/mf_links)
- [mf_get_pal()](man/mf_get_pal)
- [mf_get_breaks()](man/mf_get_breaks)
- [mf_get_mtq()](man/mf_get_mtq)
- [mf_get_ratio()](man/mf_get_ratio)
- [mf_get_pencil()](man/mf_get_pencil)
- [mf_get_borders()](man/mf_get_borders)
* [News]($ALTDOC_NEWS)
* [Licence]($ALTDOC_LICENCE)
* [Citation]($ALTDOC_CITATION)
4 changes: 4 additions & 0 deletions altdoc/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
urls:
reference: https:/riatelab.github.io/mapsf/man
article: https:/riatelab.github.io/mapsf/vignettes

6 changes: 6 additions & 0 deletions altdoc/preamble_man_qmd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
format:
md:
prefer-html: true
---

6 changes: 6 additions & 0 deletions altdoc/preamble_vignettes_qmd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
format:
md:
prefer_html: true
default-image-extension: ""
---
4 changes: 4 additions & 0 deletions altdoc/preamble_vignettes_rmd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
always_allow_html: yes
---

Binary file modified man/figures/example1-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 0 additions & 71 deletions pkgdown/_pkgdown.yml

This file was deleted.

Binary file removed pkgdown/favicon/apple-touch-icon-120x120.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon-152x152.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon-180x180.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon-60x60.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon-76x76.png
Binary file not shown.
Binary file removed pkgdown/favicon/apple-touch-icon.png
Binary file not shown.
Binary file removed pkgdown/favicon/favicon-16x16.png
Binary file not shown.
Binary file removed pkgdown/favicon/favicon-32x32.png
Binary file not shown.
Binary file removed pkgdown/favicon/favicon.ico
Binary file not shown.
2 changes: 0 additions & 2 deletions vignettes/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
*.html
*.R
web_only/*.png
web_only/*.svg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Cheat Sheet"
author: "Ronan Ysebaert"
author: "Ronan Ysebaert & Timothée Giraud"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
Expand All @@ -10,8 +10,7 @@ vignette: >
---


```{r, echo=FALSE, out.width="100%"}
knitr::include_graphics("img/mapsf_cheatsheet.png")
```
![](fig/mapsf_cheatsheet.png)


[Download PDF version](https://raw.githubusercontent.com/riatelab/mapsf/master/vignettes/web_only/img/mapsf_cheatsheet.pdf)
File renamed without changes.
File renamed without changes
File renamed without changes
Binary file added vignettes/fig/wo_export_fixed_height_centered.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vignettes/fig/wo_export_fixed_width.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5006ce0

Please sign in to comment.