1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 20:41:58 +02:00

(v1.7.1.9022) rely on vctrs for ab selectors

This commit is contained in:
2021-07-23 21:42:11 +02:00
parent 0ec81cc12e
commit 4e1efd902c
130 changed files with 3785 additions and 2960 deletions

View File

@ -76,6 +76,10 @@ li a[href="#read-more-on-our-website-"] {
display: none !important;
}
code {
color: black;
background-color: #f4f4f4;
}
/* make colour darker and better readable for links */
code a, code a:hover, code a:focus,
pre a, pre a:hover, pre a:focus,
@ -92,6 +96,7 @@ a pre[href], a pre[href]:hover, a pre[href]:focus {
/* adjusted colour for all real links; having href attribute */
color: #128f76;
}
.ot, .dv, .fl, .cn {
/* numbers and TRUE/FALSE */
color: slategray;

View File

@ -47,16 +47,19 @@ $(document).ready(function() {
$(".template-reference-topic h2#value").text("Returned value");
// replace \donttest and \dontrun texts in Examples
if ($("pre.examples").length > 0) {
$("pre.examples").html($("pre.examples").html().replaceAll("# \\donttest{", ""));
$("pre.examples").html($("pre.examples").html().replaceAll("# \\dontrun{", ""));
$("pre.examples").html($("pre.examples").html().replaceAll("# }", ""));
if ($(".ref-examples pre").length > 0) {
$(".ref-examples pre").html($(".ref-examples pre").html().replaceAll("# \\donttest{", ""));
$(".ref-examples pre").html($(".ref-examples pre").html().replaceAll("# \\dontrun{", ""));
$(".ref-examples pre").html($(".ref-examples pre").html().replaceAll("# }", ""));
}
// remove leading newline in code examples on changelog
if ($("body .template-news").length > 0) {
$("body .template-news").html($("body .template-news").html().replaceAll('sourceCode R">\n<span', 'sourceCode R"><span'));
}
// change H1 header on dev version on changelog, since pkgdown uses the version number from the installed version
// (rather then using the DESCRIPTION file)
$("h1[id^=unreleased]").text("Current development version");
// PR for 'R for Data Science' on How To pages
if ($(".template-article").length > 0) {