diff --git a/_freeze/docs/gallery/index/execute-results/html.json b/_freeze/docs/gallery/index/execute-results/html.json index 83df3b108..2d25729d9 100644 --- a/_freeze/docs/gallery/index/execute-results/html.json +++ b/_freeze/docs/gallery/index/execute-results/html.json @@ -2,7 +2,7 @@ "hash": "ae771c86aa2b44ae71e8d150036ac29b", "result": { "engine": "knitr", - "markdown": "---\npagetitle: \"Gallery\"\nformat:\n html:\n toc: false\nimage: articles/advanced-layout-pdf.png\nsearch: false\nexecute:\n echo: false\nlisting:\n - id: gallery\n template: gallery.ejs\n contents: gallery.yml\ndescription: |\n A gallery of example documents, websites, books, and presentations created with Quarto.\naliases:\n - /docs/dashboards/examples/index.html\n - /docs/dashboards/examples/\n---\n\n\n\n\n\n::: {#hero-banner .column-screen}\n::: {.grid .column-page}\n::: {.headline .g-col-lg-6 .g-col-12 .g-col-md-12}\n::: h1\nGallery\n:::\n\nQuarto can produce a wide variety of output formats. Here are some examples:\n\n- [Articles & Reports](#articles-reports)\n- [Presentations](#presentations)\n- [Dashboards](#dashboards)\n- [Websites](#websites)\n- [Books](#books)\n- [Interactive Docs](#interactive-docs)\n:::\n\n\n\n\n\n::: {.cell .g-col-lg-6 .g-col-12 .g-col-md-12}\n::: {.cell-output-display}\n\n```{=html}\n
\n
\n\n\n\n\n\n
\n
\n
\n\n\n\n
\n

Articles and reports with Python and R

\n
\n
\n
\n\n\n\n
\n

Create data-driven presentations

\n
\n
\n
\n\n\n\n
\n

Engage readers with interactivity

\n
\n
\n
\n\n\n\n
\n

Publish collections of articles as a website

\n
\n
\n
\n\n\n\n
\n

Create multi-format books

\n
\n
\n
\n\n\n
\n```\n\n:::\n:::\n\n\n\n\n:::\n:::\n\n::: {#gallery .column-page}\n:::\n\n\n\n\n\n```{=html}\n\n```\n", + "markdown": "---\npagetitle: \"Gallery\"\nformat:\n html:\n toc: false\nimage: articles/advanced-layout-pdf.png\nsearch: false\nexecute:\n echo: false\nlisting:\n - id: gallery\n template: gallery.ejs\n contents: gallery.yml\ndescription: |\n A gallery of example documents, websites, books, and presentations created with Quarto.\naliases:\n - /docs/dashboards/examples/index.html\n - /docs/dashboards/examples/\n---\n\n\n\n::: {#hero-banner .column-screen}\n::: {.grid .column-page}\n::: {.headline .g-col-lg-6 .g-col-12 .g-col-md-12}\n::: h1\nGallery\n:::\n\nQuarto can produce a wide variety of output formats. Here are some examples:\n\n- [Articles & Reports](#articles-reports)\n- [Presentations](#presentations)\n- [Dashboards](#dashboards)\n- [Websites](#websites)\n- [Books](#books)\n- [Interactive Docs](#interactive-docs)\n:::\n\n\n\n::: {.cell .g-col-lg-6 .g-col-12 .g-col-md-12}\n::: {.cell-output-display}\n\n```{=html}\n
\n
\n\n\n\n\n\n
\n
\n
\n\n\n\n
\n

Articles and reports with Python and R

\n
\n
\n
\n\n\n\n
\n

Create data-driven presentations

\n
\n
\n
\n\n\n\n
\n

Engage readers with interactivity

\n
\n
\n
\n\n\n\n
\n

Publish collections of articles as a website

\n
\n
\n
\n\n\n\n
\n

Create multi-format books

\n
\n
\n
\n\n\n
\n```\n\n:::\n:::\n\n\n:::\n:::\n\n::: {#gallery .column-page}\n:::\n\n\n\n```{=html}\n\n```\n", "supporting": [], "filters": [ "rmarkdown/pagebreak.lua" diff --git a/docs/gallery/gallery.yml b/docs/gallery/gallery.yml index 6480141d0..548664805 100644 --- a/docs/gallery/gallery.yml +++ b/docs/gallery/gallery.yml @@ -339,6 +339,11 @@ href: https://labs.ala.org.au/ code: https://github.com/AtlasOfLivingAustralia/ala-labs thumbnail: websites/website-ala-labs.png + - title: NHS-R community + subtitle: Website for ecological dataviz, analysis & research + href: https://nhsrcommunity.com + code: https://github.com/nhs-r-community/nhs-r-community + thumbnail: websites/nhs-r-website.png - category: Books diff --git a/docs/gallery/websites/nhs-r-website.png b/docs/gallery/websites/nhs-r-website.png new file mode 100644 index 000000000..8699d500c Binary files /dev/null and b/docs/gallery/websites/nhs-r-website.png differ diff --git a/tools/gallery-screenshot.R b/tools/gallery-screenshot.R index 6afdac2b3..cf747aeab 100644 --- a/tools/gallery-screenshot.R +++ b/tools/gallery-screenshot.R @@ -19,5 +19,7 @@ if (xfun::file_ext(image_path) != "png") { url <- args[2] # taking the size from previous image -infos <- magick::image_read("docs/gallery/dashboards/housing-market-dashboard.png") |> magick::image_info() +example <- "docs/gallery/dashboards/housing-market-dashboard.png" +if (!is.na(args[3])) example <- args[3] +infos <- magick::image_read(example) |> magick::image_info() webshot2::webshot(url, image_path, vwidth = infos$width, vheight = infos$height)