Skip to content

Commit

Permalink
Ensure vignette warning for R-universe opens properly outside the R-u…
Browse files Browse the repository at this point in the history
…niverse container
  • Loading branch information
louisaslett committed Feb 17, 2025
1 parent 00a142d commit 220de84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/getting-started.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ knitr::opts_chunk$set(
warningBox.style.padding = '10px';
warningBox.style.margin = '20px 0';
warningBox.style.borderRadius = '5px';
warningBox.innerHTML = "<strong>Note:</strong> you appear to be viewing this vignette on R-universe. For some reason, this vignette does not display properly when embedded within the R-universe site, so it is recommended to view either within the RStudio Viewer or at the main package website here: <a href='https://genealogy.louisaslett.com/articles/getting-started.html'>https://genealogy.louisaslett.com/articles/getting-started.html</a>";
warningBox.innerHTML = "<strong>Note:</strong> you appear to be viewing this vignette on R-universe. For some reason, this vignette does not display properly when embedded within the R-universe site, so it is recommended to view either within the RStudio Viewer or at the main package website here: <a href='https://genealogy.louisaslett.com/articles/getting-started.html' target='_top'>https://genealogy.louisaslett.com/articles/getting-started.html</a>";

// Show in warning-container
const container = document.getElementById('warning-container');
Expand Down

0 comments on commit 220de84

Please sign in to comment.