Changes in version 2.2.0.9000 - When previewing a site, it is now served via a local http server. This enables dynamic features such as search to work correctly (@shikokuchuo, #2975). - do not autolink code that is in a link (href) in Rd files (#2972) Changes in version 2.2.0 (2025-11-06) - Make build_llm_docs() more robust to the use of old Pandoc (@nanxstats, @galachad, #2952, #2954) Lifecycle changes - autolink_html() deprecated in 1.6.0 and preview_page() have been removed. New features - New build_llm_docs() generates a llms.txt at the root directory of your site, and provides a .md version of every page. You can disable by adding llm-docs: false to your _pkgdown.yaml (#2914, @maelle) - build_articles() now executes quarto vignettes in the same working directory as RMarkdown vignettes, namely the directory in which they live (#2877). Minor improvements and bug fixes - build_site() gained a quiet argument, which is propagated to other functions (e.g., build_articles()) and is useful for debugging build errors on GH actions. - New translations were add for Dutch (nl) and Japanese (ja), thanks to @pepijn-devires and @shikokuchuo respectively. - Links generated with \code{\link{foo}()} now have the () moved into the in the generated output (@maelle). - Plots in dark mode are now transformed with a CSS filter to improve their visibility (thanks to @gadenbuie). - Updated the translations vignette with instructions for building non-English sites through Github Actions. - Added documentation explaining how to solve incorrect rendering of plotmath expressions under ragg devices on Linux. (@remlapmot, #2908) - Improved the LaTeX syntax in one of the math rendering test cases (@remlapmot) Changes in version 2.1.3 (2025-05-24) - Menu items can now set class and id. Changes in version 2.1.2 (2025-04-28) New features - ROR IDs in DESCRIPTION are transformed into icons, similar to ORCID IDs. (#2850) - New clean_site(force = TRUE) for cleaning of docs/ regardless of whether it was built by pkgdown (#2827). - The language of the site is set from the first Language: in the DESCRIPTION if it is available and no other language is specified (@jonthegeek, #2808). Bug fixes and minor improvements - Option pkgdown.internet was removed because CDN file caching now requires an internet connection. - Math rendering using katex and mathjax was improved and now includes necessary components using CDN (#2704). - Articles have improved test cases (thanks to @venpopov and @ethanbass). - Sass variables from bslib are now used to set the navbar background color: $navbar-bg for the background color in light and dark mode, or $navbar-light-bg and $navbar-dark-bg for individually controlling light and dark mode background colors. pkgdown-navbar-bg and $pkgdown-navbar-bg-dark both still provide pkgdown-specific overrides (@gadenbuie, #2847). - Code repositories hosted on Codeberg are now supported in the BugReports and URL fields (@nfrerebeau, #2843). - Links to favicons in page headers were updated to reflect changes to https://realfavicongenerator.net/ (#2804). Favicons should be re-generated by manually removing the pkgdown/favicon directory and then running pkgdown::build_favicons(). - Reinstate Rd macro loading, which was accidentally disabled in v2.1.1 (#2782). Changes in version 2.1.1 (2024-09-17) - Added keyboard shortcut, /, to focus search bar (#2423). - The BugReports field can now be an email (@catalamarti, #2275). - New clean_cache() function removes the contents of the cache directory (#2718). - pkgdown now depends on R >= 4.0.0 (#2714). - Updated GitHub Actions advice and workflows around Quarto install (@tanho63, #2743). - Support ANSI sequences in index.md (@krlmlr, #2787). Changes in version 2.1.0 (2024-07-06) Major changes - Added @olivroy and @salim-b as pkgdown authors in recognition of their contributions. - build_articles() and build_article() now support articles/vignettes written with quarto (version 1.5 and above). Combining the disparate quarto and pkgdown templating systems is a delicate art, so while I've done my best to make it work, there may be some rough edges. So please file an issue you encounter quarto features that don't work quite right. Learn more in vignette("quarto")(#2210). - New light switch makes it easy for users to switch between light and dark themes for the website (based on work in bslib by @gadenbuie). For now this behaviour is opt-in with template.light-switch: true but in the future we may turn it on automatically. See the customization vignette for details (#1696). - New vignette("translations") that discusses non-English sites including how to submit new translations (#2605). - New vignette("accessibility") describes what manual tasks you need to perform to make your site as accessible as possible (#2344). - New template.math-rendering allows you to control how math is rendered across your site. The default uses mathml which is low-dependency, but has the lowest fidelity. You can also use mathjax, the previous default, and katex, a faster alternative. (#1966). - All external assets (JS, CSS, fonts) are now directly included in the site instead of fetched from external CDN (@salim-b, #2249) - YAML validation has been substantially improved so you should get much clearer errors if you have made a mistake (#1927). Please file an issue if you find a case where the error message is not helpful. Lifecycle changes - autolink_html() was deprecated in pkgdown 1.6.0 and now warns every time you use it. downlit::downlit_html_path() should be used instead. - build_site(document) and build_reference(document) has been removed after being deprecated in pkgdown 1.4.0. devel should be used instead. - preview_page() has been deprecated (#2650). - Bootstrap 3 has been deprecated. It was superseded in December 2021, and now we're starting to more directly encourage folks to move away from it. Front end changes - When built on GitHub, source urls now use the name of the current upstream branch (rather than HEAD), which is more likely to generate correct links (#2597). - The search dropdown has been tweaked to look more like the other navbar menu items (#2338). - Improve HTML5 compliance (#2369): - No longer support IE9 or earlier - Strip trailing whitespace - Label