From eaf436c166fbe5647fb4a73f0c1f75b43ff93963 Mon Sep 17 00:00:00 2001 From: VisruthSK Date: Sat, 25 Jul 2026 00:31:35 -0700 Subject: [PATCH 1/2] No more pkgdown error for logo --- inst/pkgdown/assets/logo.svg | 1 - inst/pkgdown/templates/navbar.html | 5 +---- vignettes/Quirks.qmd | 35 +++++++++++++++++++++++++----- 3 files changed, 30 insertions(+), 11 deletions(-) delete mode 100644 inst/pkgdown/assets/logo.svg diff --git a/inst/pkgdown/assets/logo.svg b/inst/pkgdown/assets/logo.svg deleted file mode 100644 index 496f040..0000000 --- a/inst/pkgdown/assets/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/inst/pkgdown/templates/navbar.html b/inst/pkgdown/templates/navbar.html index f5b5311..0c1329d 100644 --- a/inst/pkgdown/templates/navbar.html +++ b/inst/pkgdown/templates/navbar.html @@ -8,10 +8,7 @@ {{#includes}}{{{before_title}}}{{/includes}} - - - - + {{#site}}{{title}}{{/site}} diff --git a/vignettes/Quirks.qmd b/vignettes/Quirks.qmd index 2b1ef36..d5b7391 100644 --- a/vignettes/Quirks.qmd +++ b/vignettes/Quirks.qmd @@ -30,13 +30,36 @@ template: I left the functionality in so that the website wouldn't fail silently and eat your input, but I hazard that you won't want to put anything before the logo. If you want to put things in `before_title` you should copy my `navbar.HTML` into your package's pkgdown configuration and edit it, putting HTML where it says `{{#includes}}{{{before_navbar}}}{{/includes}}`. -## Logs Say Image Missing +## Logs Say Favicons Missing -This template copies over the Stan hex logo to root and references that manually in the templates, which `pkgdown` doens't like. As such, you'll get errors like +Due to how pkgdown and this template package work, pkgdown will complain about missing favicons initially, but will copy them over soon after. They will appear in the built site properly, so you can safely ignore this error. Unfortunately, I don't see any clean way of suppressing this error. -``` -Missing images in .github/CONTRIBUTING.md: logo.png -ℹ pkgdown can only use images in man/figures and vignettes +``` +── Sitrep ────────────────────────────────────────────────────────────────────── +✔ URLs ok. +✖ Favicons not ok. + Found package logo but not favicons. + Do you need to run build_favicons()? +✔ Open graph metadata ok. +✔ Articles metadata ok. +✔ Reference metadata ok. +── Initialising site ─────────────────────────────────────────────────────────── +Updating deps/bootstrap-5.3.8/bootstrap.bundle.min.js +Updating deps/bootstrap-5.3.8/bootstrap.bundle.min.js.map +Updating deps/bootstrap-5.3.8/bootstrap.min.css +── Building favicons ─────────────────────────────────────────────────────────── +ℹ Building favicons with ... +✔ Added apple-touch-icon.png, favicon-96x96.png, favicon.ico, favicon.svg, + site.webmanifest, web-app-manifest-192x192.png, and + web-app-manifest-512x512.png. +Copying pkgdown/favicon/apple-touch-icon.png to apple-touch-icon.png +Copying pkgdown/favicon/favicon-96x96.png to favicon-96x96.png +Copying pkgdown/favicon/favicon.ico to favicon.ico +Copying pkgdown/favicon/favicon.svg to favicon.svg +Copying pkgdown/favicon/site.webmanifest to site.webmanifest +Copying pkgdown/favicon/web-app-manifest-192x192.png to +web-app-manifest-192x192.png +Copying pkgdown/favicon/web-app-manifest-512x512.png to +web-app-manifest-512x512.png ``` -If you actually navigate to that page the logo will be there. I may fix/change this by referencing man/figures/logo (which is also copied over). From b93484b883185c5fcc963fd8e275b78693de899a Mon Sep 17 00:00:00 2001 From: VisruthSK Date: Sat, 25 Jul 2026 00:32:17 -0700 Subject: [PATCH 2/2] Bumped version --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index f05f273..12e0ba6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: pkgdownconfig Title: Stan pkgdown Website Styling -Version: 2.3.0 +Version: 2.4.0 Authors@R: person("Visruth", "Srimath Kandali", , "public@visruth.com", role = c("aut", "cre"), comment = c(ORCID = "0009-0005-9097-0688"))