Skip to content

Releases: r-lib/pkgdown

pkgdown 1.1.0

04 Jun 13:55
Compare
Choose a tag to compare

New features

  • build_reference() and build_site() get new document argument. When
    TRUE, the default, will automatically run devtools::document() to
    ensure that your documentation is up to date.

  • build_site() gains a new_process argument, which defaults to TRUE.
    This will run pkgdown in a separate process, and is recommended practice
    because it improves reproducibility (#647).

  • Improved display for icons: icons must be 30px and stored in top-level
    icons/ directory. They are embedded in a separate column of reference
    index table, instead of being inside a comment (!) (#607).

Front end

  • Added a keyboard shortcut for searching. Press shift + / (?) to move
    focus to the search bar (#642). The Algolia logo is correctly shown in
    the search results (#673)

  • Navbar active tab highlighting uses a superior approach (suggested by
    @jcheng5) which should mean that the active page is correctly highlighted
    in all scenarios (#660).

  • pkgdown.js is better isolated so it should still work even if you
    load html widgets that import a different version of jquery (#655).

Improvements to Rd translation

  • vignette() calls that don't link to existing vignettes silently fail
    to link instead of generating an uninformative error messages (#652).
    Automatic linking works for re-exported objects that are not functions
    (@gaborcsardi, #666).

  • Empty \section{}s are ignored (#656). Previously, empty sections caused
    error Error in rep(TRUE, length(x) - 1).

  • \Sexpr{} supports results=text, results=Rd and results=hide (#651).

  • \tabular{} no longer requires a terminal \cr (#664, #645).

Minor bug fixes and improvements

  • Add inst/pkgdown.yml as a possible site configuration file so that packages
    on CRAN can be built without needing the development version (#662).

  • Default navbar template now uses site title, not package name (the package
    name is the default title, so this will not affect most sites) (#654).

  • You can suppress indexing by search engines by setting noindex: true
    pkgdown.yml (#686)

    template:
      params:
        noindex: true
  • build_article() sets IN_PKGDOWN env var so in_pkgdown() works
    (#650).

  • build_home(): CITATION files with non-UTF-8 encodings (latin1) work
    correctly, instead of generating an error. For non-UTF-8 locales, ensure you
    have e.g. Encoding: latin1 in your DESCRIPTION; but best practice is to
    re-enode your CITATION file to UTF-8 (#689).

  • build_home(): Markdown files (e.g., CODE_OF_CONDUCT.md) stored in
    .github/ are copied and linked correctly (#682).

  • build_news(): Multi-page changelogs (generated from NEWS.md with
    news: one_page: false in _pkgdown.yml) are rendered correctly.

  • build_reference(): reference index shows infix functions (like %+%) as
    `%+%`, not `%+%`() on (#659).

pkgdown 1.0.0

04 May 17:29
Compare
Choose a tag to compare

First official release 🎉

Old version of staticdocs

26 Sep 13:22
Compare
Choose a tag to compare

If you need to use the initial version of staticdocs, you can use this release. It is the most stable release prior to the major rewrite.