Description Usage Arguments Details YAML config
Your NEWS.md
is parsed in to sections based on your use of
headings. Each minor version (i.e. the combination of first and second
components) gets on one page, with all patch versions (i.e. the third
component) on a single page. News items for development versions (by
convention those versions with a fourth component) are displayed on an
an "unreleased" page.
1 | build_news(pkg = ".", override = list(), preview = NA)
|
pkg |
Path to package. |
override |
An optional named list used to temporarily override
values in |
preview |
If |
The NEWS.md
file should be formatted somewhat like this:
1 2 3 4 5 6 7 | # pkgdown 0.1.0.9000
## Major changes
- Fresh approach based on the staticdocs package. Site configuration now based on YAML files.
...
|
Commonly used subsection headers include 'Major changes', 'Bug fixes', 'Minor changes'.
Issues and contributors mentioned in news items are automatically linked to
github if a URL
entry linking to github.com is provided in the package
DESCRIPTION
.
1 2 3 | ## Major changes
- Lots of bug fixes (@hadley, #100)
|
If the package is available on CRAN, release dates will be added for listed versions.
To automatically link to release announcements, include a releases
section.
1 2 3 4 5 6 |
Control whether news is present on one page or multiple pages with the
one_page
field. The default is true
.
1 2 | news:
- one_page: false
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.