-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathREADME.Rmd
98 lines (74 loc) · 2.51 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# tidytemplate <img src="man/figures/logo.png" align="right" />
<!-- badges: start -->
[](https://github.com/tidyverse/tidytemplate/actions)
[](http://wave.webaim.org/report#/http://tidytemplate.tidyverse.org)
<!-- badges: end -->
## Overview
tidytemplate provides a custom [pkgdown](https://pkgdown.r-lib.org) template for tidyverse, r-lib, tidymodels, and rmarkdown packages. Please don't use it for your own package.
## Templates
For all sites, ensure that `DESCRIPTION` contains:
```
Config/Needs/website: tidyverse/tidytemplate
```
### tidyverse and r-lib
```yaml
template:
package: tidytemplate
bootstrap: 5
includes:
in_header: |
<script defer data-domain="{YOUR DOMAIN},all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
development:
mode: auto
```
Ping Hadley on slack to get your site added to plausible.
### tidymodels
```yaml
template:
package: tidytemplate
bootstrap: 5
bslib:
primary: "#CA225E"
includes:
in_header: |
<script defer data-domain="{YOUR DOMAIN},all.tidymodels.org" src="https://plausible.io/js/plausible.js"></script>
development:
mode: auto
```
Ping Hadley on slack to get your site added to plausible.
### rmarkdown / quillt
```yaml
template:
package: tidytemplate
bootstrap: 5
bslib:
primary: "#096B72"
navbar-background: "#e6f3fc"
trailing_slash_redirect: true
```
### Updating
If you're updating from a previous pkgdown config, use the following checklist to make sure everything is up to date:
````md
* [ ] `usethis::use_pkgdown_github_pages()`
* [ ] Ensure Author includes RStudio as copyright holder and funder
* [ ] Update `DESCRIPTION` to include `Config/Needs/website: tidyverse/tidytemplate`
* [ ] Update `_pkgdown.yml` with appropriate template above.
* [ ] Ping Hadley to add plausible.io record
* [ ] Remove `strip_header: true`
* [ ] Remove algolia search, if used
* [ ] Eliminate superseded navbar customisation (`home: ~`, article re-ordering)
* [ ] Update `news` structure if needed
* [ ] Remove any author info for tidyverse folks (since now included in template)
````