You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: slides/05_publication.qmd
+35-21Lines changed: 35 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,10 @@ author: Audrey T. Yeo
19
19
## Setup of `pkgdown`
20
20
21
21
-`pkgdown` makes it quick and easy to build a website for your package
22
-
- After installing `pkgdown`, run `usethis::use_pkgdown()` to get started
22
+
- After installing `pkgdown`, run `usethis::use_pkgdown()`* to get started
23
+
- Alternatively, run `usethis::use_pkgdown_github_pages()`
24
+
- Adds (and writes) `pkgdown.yml`\*, `docs` folder, and "pkgdown" to `.Rbuildignore`\* and `docs` to `gitignore`\*. Also initialises empty branch `gh-pages` in chosen repo and activates GitHub Pages for repo.
25
+
23
26
- Main configuration happens in `_pkgdown.yml` file
24
27
- Many customizations can be applied, but bulk of work during development is
25
28
updating the `reference` section with names of `.Rd` files
@@ -262,50 +265,62 @@ git diff v0.3.14 v0.3.15 # checking for difference in mmrm release
- Enable GitHub page through `use_pkgdown_github_pages`
318
333
- (nested in this [`use_pkgdown_github_pages`](https://pkgdown.r-lib.org/articles/pkgdown.html) includes : `use_pkgdown()`, `use_github_pages()`, `use_github_action("pkgdown")`)
319
334
- Deploy the website with `pkgdown`
320
-
- Need to change remote to `git` TODO
321
335
- Set up a GitHub action to deploy website `use_github_action("pkgdown")`
322
336
- (Optional) Check the automatic GitHub page deploy action
0 commit comments