From b41f0f1483a764c50b36d038aef51989b39064ef Mon Sep 17 00:00:00 2001 From: Salim B Date: Mon, 8 Jul 2024 21:54:09 +0200 Subject: [PATCH] Fix typos --- content/blog/pkgdown-2-1-0/index.Rmd | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/blog/pkgdown-2-1-0/index.Rmd b/content/blog/pkgdown-2-1-0/index.Rmd index a4f3690f8..a46bcabe1 100644 --- a/content/blog/pkgdown-2-1-0/index.Rmd +++ b/content/blog/pkgdown-2-1-0/index.Rmd @@ -41,7 +41,7 @@ You can install it from CRAN with: install.packages("pkgdown") ``` -This is a massive release with a bunch of new features. I'll highlight the most important here, but as always, I highlight recommend skimming the [release notes](https://github.com/r-lib/pkgdown/releases/tag/v2.1.0) for other smaller improvements and bug fixes. +This is a massive release with a bunch of new features. I'll highlight the most important here, but as always, I recommend skimming the [release notes](https://github.com/r-lib/pkgdown/releases/tag/v2.1.0) for other smaller improvements and bug fixes. First, and most importantly, please join me in welcoming two new authors to pkgdown: [Olivier Roy](https://github.com/olivroy) and [Salim Brüggemann](https://github.com/salim-b). They have both contributed many improvements to the package and I'm very happy to officially have them aboard as package authors. @@ -51,7 +51,7 @@ library(pkgdown) ## Lifecycle changes -Let's get started with the important stuff, the [lifecycle updates](https://www.tidyverse.org/blog/2021/02/lifecycle-1-0-0/). Most important we've decided to deprecate support for Bootstrap 3, which was superseded in December 2021. We're starting to more directly encourage folks to move away from it as maintaining two separate sets of site templates is a time sink. If you're still using BS3, now's the [time to upgrade](https://www.tidyverse.org/blog/2021/12/pkgdown-2-0-0/#bootstrap-5). +Let's get started with the important stuff, the [lifecycle updates](https://www.tidyverse.org/blog/2021/02/lifecycle-1-0-0/). Most importantly, we've decided to deprecate support for Bootstrap 3, which was superseded in December 2021. We're starting to more directly encourage folks to move away from it as maintaining two separate sets of site templates is a time sink. If you're still using BS3, now's the [time to upgrade](https://www.tidyverse.org/blog/2021/12/pkgdown-2-0-0/#bootstrap-5). There are three other changes that are less likely to affect folks: @@ -75,9 +75,9 @@ Combining the individual quarto and pkgdown templating systems is a delicate art pkgdown sites can now provide a "light switch" that allows the reader to switch between light and dark modes (based on work in bslib by [@gadenbuie](https://github.com/gadenbuie)). You can try it out on : the light switch appears at the far right at the navbar and remembers the users choice between visits to your site. -(Note that the light switch works differently to quarto dark mode. In quarto, you can provide two completely different themes for light and dark mode. In pkgdown, dark mode is a relatively thin overlay that based on your light theme colours.) +(Note that the light switch works differently to quarto dark mode. In quarto, you can provide two completely different themes for light and dark mode. In pkgdown, dark mode is a relatively thin overlay that's based on your light theme colours.) -For now, you'll need to opt-in to the light-switch by adding the following to your `_pkgdown.yml`: +For now, you'll need to opt-in to the light switch by adding the following to your `_pkgdown.yml`: ```yaml template @@ -96,13 +96,13 @@ We've made a bunch of small changes to enhance the user experience of pkgdown si * `build_reference()` adds anchors to arguments making it possible to link directly to an argument. This is very useful when you're trying to direct folks to the documentation for a specific argument, e.g. . -* `build_reference_index()` now displays function lifecycle badges [next to the function name](https://pkgdown.r-lib.org/reference/index.html#deprecated-functions). If you want to gather together (e.g.) all the deprecated function in one spot in the reference index, you can use the new topic selector `has_lifecycle("deprecated")`. +* `build_reference_index()` now displays function lifecycle badges [next to the function name](https://pkgdown.r-lib.org/reference/index.html#deprecated-functions). If you want to gather together (e.g.) all the deprecated functions in one spot in the reference index, you can use the new topic selector `has_lifecycle("deprecated")`. -* The new `template.math-rendering` option allows you to control how math is rendered on your site. The default uses `mathml` which is zero dependency but has the lowest fidelity. If you use a lot of math on your site, you can switch back to the previous method with `mathjax`, or try out `katex`, a faster alternative. +* The new `template.math-rendering` option allows you to control how math is rendered on your site. The default uses `mathml` which has zero dependencies but also has the lowest fidelity. If you use a lot of math on your site, you can switch back to the previous method with `mathjax`, or try out `katex`, a faster alternative. * pkgdown sites no longer depend on external content distribution networks (CDN) for common javascript, CSS, and font files. CDNs no longer provide [any performance advantages](https://www.stefanjudis.com/notes/say-goodbye-to-resource-caching-across-sites-and-domains/) and make deployment harder inside certain locked-down corporate environments. -* pkgdown includes translations for more terms including "Abstract" and "Search site". A big thanks to @jplecavalier, @dieghernan, @krlmlr, @LDalby, @rich-iannone, @jmaspons, and @mine-cetinkaya-rundel for providing updated translations in French, Spanish, Portugese, Germna, Catalan, and Turkish! +* pkgdown includes translations for more terms including "Abstract" and "Search site". A big thanks to @jplecavalier, @dieghernan, @krlmlr, @LDalby, @rich-iannone, @jmaspons, and @mine-cetinkaya-rundel for providing updated translations in French, Spanish, Portugese, German, Catalan, and Turkish! I've also written `vignette("translations")`, a brief vignette that discusses how translation works for non-English sites, and includes how you can create translations for new languages. (This is a great way to contribute to pkgdown if you are multi-lingual!)