-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.qmd
More file actions
84 lines (63 loc) · 2.28 KB
/
README.qmd
File metadata and controls
84 lines (63 loc) · 2.28 KB
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
---
format: gfm
default-image-extension: ''
knitr:
opts_chunk:
collapse: true
comment: '#>'
fig.path: "man/figures/README-"
out.width: "100%"
---
<!-- README.md is generated from README.qmd. Please edit that file -->
# gitdevr <a href="https://dieghernan.github.io/gitdevr/"><img src="man/figures/logo.png" alt="gitdevr website" align="right" height="139"/></a>
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://github.com/dieghernan/gitdevr/actions/workflows/check-simple.yaml)
<!-- badges: end -->
## Overview
**gitdevr** provides a custom [pkgdown](https://pkgdown.r-lib.org) template
based on the [GitDev skin](https://dieghernan.github.io/chulapa/skins/gitdev)
provided with my Jekyll theme [chulapa](https://dieghernan.github.io/chulapa/).
See a preview of the template in <https://dieghernan.github.io/gitdevr/>
## Installation
You can install the developing version of **gitdevr** with:
```{r}
#| eval: false
pak::pak("dieghernan/gitdevr")
```
Alternatively, you can install **gitdevr** using the
[r-universe](https://dieghernan.r-universe.dev/gitdevr):
```{r}
#| eval: false
# Install gitdevr in R:
install.packages(
"gitdevr",
repos = c(
"https://dieghernan.r-universe.dev",
"https://cloud.r-project.org"
)
)
```
## Usage
After the successful installation, if you already have your **pkgdown** setup
ready, you only need to specify the `template` parameter as follow. Then, as
before, you can build your site using `pkgdown::build_site()`.
``` yaml
template:
bootstrap: 5
package: gitdevr
```
::: callout-important
Keep in mind that you should NOT use `default_assets: false` when you change the
default template. **gitdevr** relies on some of the **pkgdown** assets and
templates.
:::
It is recommended to add the following line to your `DESCRIPTION`:
```
Config/Needs/website: dieghernan/gitdevr
```
By doing so, when using [r-lib
actions](https://github.com/r-lib/actions/tree/v2-branch/setup-r-dependencies)
for deploying your site, the github action would install the package for you
automatically.