adding validation reports - #1122
Conversation
Code Coverage SummaryDiff against mainResults for commit: bf45df7 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 31 suites 1m 54s ⏱️ Results for commit 84056bb. |
Unit Tests Summary 1 files 31 suites 1m 11s ⏱️ Results for commit bf45df7. ♻️ This comment has been updated with latest results. |
findLink() scanned every anchor on the page, so a vignette using the words "validation report" as link text would have been rewritten instead of the navbar item. Scope it to the navbar. closest() and remove() are the only ES6-era APIs in an otherwise strict ES5 file; replace them with equivalents so the target is consistent. pickReport() now takes the maximum eligible report rather than the last match, so REPORTS no longer has to be kept sorted, and the header comment notes that the static fallback in _pkgdown.yml needs updating alongside it. Mirrors the same fixes on pharmaverse/formatters#377.
|
@shajoezhu Same three fixes here as on pharmaverse/formatters#377, pushed as 2b3e381, plus a description since the body was empty.
Checked for rtables specifically: the 0.6.16 report is a 200 while 0.6.15 and 0.6.17 are 404, so the single-entry One left for you, same as on the formatters PR: an rc such as |
Unit Test Performance Difference
Additional test case details
Results for commit a25d9d6 ♻️ This comment has been updated with latest results. |
|
i think the release candidate tags, we can remove them |
findLink() scanned every anchor on the page, so a vignette using the words "validation report" as link text would have been rewritten instead of the navbar item. Scope it to the navbar. closest() and remove() are the only ES6-era APIs in an otherwise strict ES5 file; replace them with equivalents so the target is consistent. pickReport() now takes the maximum eligible report rather than the last match, so REPORTS no longer has to be kept sorted, and the header comment notes that the static fallback in _pkgdown.yml needs updating alongside it. Mirrors the same fixes on pharmaverse/formatters#377 and pharmaverse/rtables#1122.
findLink() scanned every anchor on the page, so a vignette using the words "validation report" as link text would have been rewritten instead of the navbar item. Scope it to the navbar. closest() and remove() are the only ES6-era APIs in an otherwise strict ES5 file; replace them with equivalents so the target is consistent. pickReport() now takes the maximum eligible report rather than the last match, so REPORTS no longer has to be kept sorted, and the header comment notes that the static fallback in _pkgdown.yml needs updating alongside it. Mirrors the same fixes on pharmaverse/formatters#377 and pharmaverse/rtables#1122.
**What changes are proposed in this pull request?** * Adds a "Validation report" entry to the pkgdown navbar, resolved per documentation version. (#1533) pkgdown builds one static site per version, so a hardcoded link would freeze at whichever report was current when it was written. `pkgdown/extra.js` reads the version from the navbar and points the link at the newest report at or below it. Doc versions older than the first report drop the item entirely. `_pkgdown.yml` keeps a static href as the fallback for readers with JavaScript disabled. Only 0.9.11 currently has a report, so 0.9.11 and later resolve to it and earlier doc versions get no navbar item. `DESCRIPTION` also swaps `RoxygenNote: 8.0.0` for `Config/roxygen2/version: 8.1.0`, which is unrelated to the navbar link. Same change as pharmaverse/formatters#377 and pharmaverse/rtables#1122. --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Melkiades <11279768+Melkiades@users.noreply.github.com> Co-authored-by: Davide Garolini <davide.garolini@roche.com>
What changes are proposed in this pull request?
pkgdown builds one static site per version, so a hardcoded link would freeze at whichever report was current when it was written.
pkgdown/extra.jsreads the version from the navbar and points the link at the newest report at or below it. Doc versions older than the first report drop the item entirely._pkgdown.ymlkeeps a static href as the fallback for readers with JavaScript disabled.Only 0.6.16 currently has a report, so 0.6.16 and later resolve to it and earlier doc versions get no navbar item.
Same change as pharmaverse/formatters#377.