-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recommend
usethis::use_pkgdown_github_pages()
everywhere.
- Loading branch information
Showing
5 changed files
with
30 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,17 +44,15 @@ pak::pak("r-lib/pkgdown") | |
Get started with [usethis](https://usethis.r-lib.org/): | ||
|
||
```{r, eval = FALSE} | ||
# Run once to configure your package to use pkgdown | ||
usethis::use_pkgdown() | ||
# Run once to configure your package to use and deploy pkgdown | ||
usethis::use_pkgdown_github_pages() | ||
``` | ||
|
||
Then use pkgdown to build your website: | ||
|
||
```{r, eval = FALSE} | ||
pkgdown::build_site() | ||
``` | ||
This adds the necessary components and sets up GitHub Actions for automatic site building when deploying. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
Your `README.md` becomes the homepage, documentation in `man/` generates a function reference, and vignettes will be rendered into `articles/`. [^1] | ||
|
||
This generates a `docs/` directory containing a website. Your `README.md` becomes the homepage, documentation in `man/` generates a function reference, and vignettes will be rendered into `articles/`. Read `vignette("pkgdown")` for more details, and to learn how to deploy your site to GitHub pages. | ||
[^1]: If you don't use GitHub, you can use `usethis::use_pkgdown()` + `pkgdown::build_site()` to create a website. | ||
This comment has been minimized.
Sorry, something went wrong.
hadley
Member
|
||
|
||
### pkgdown 2.0.0 and Bootstrap 5 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think we probably still want to mention
build_site()
here so people know how to build and preview locally.