From 3048b5d135003e8ef8152c216cee25ee10301546 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 17 Oct 2026 07:44:25 +0000 Subject: [PATCH] Built site for AMR@3.1.0.9003: bd20842 --- 404.html | 2 +- CLAUDE.html | 2 +- LICENSE-text.html | 2 +- articles/AMR.html | 10 +- articles/AMR.md | 8 +- articles/AMR_for_Python.html | 2 +- articles/AMR_with_tidymodels.html | 2 +- articles/EUCAST.html | 2 +- articles/PCA.html | 2 +- articles/WHONET.html | 2 +- articles/WISCA.html | 2 +- articles/datasets.html | 4 +- articles/index.html | 2 +- authors.html | 2 +- extra.css | 215 +++++- extra.js | 188 +++++ index.html | 2 +- llms.txt | 879 ++++++++++++----------- news/index.html | 10 +- news/index.md | 9 +- pkgdown.yml | 2 +- reference/AMR-deprecated.html | 6 +- reference/AMR-deprecated.md | 2 +- reference/AMR-options.html | 6 +- reference/AMR-options.md | 2 +- reference/AMR.html | 2 +- reference/WHOCC.html | 2 +- reference/WHONET.html | 2 +- reference/ab_from_text.html | 2 +- reference/ab_property.html | 6 +- reference/ab_property.md | 2 +- reference/add_custom_antimicrobials.html | 2 +- reference/add_custom_microorganisms.html | 2 +- reference/age.html | 22 +- reference/age.md | 20 +- reference/age_groups.html | 2 +- reference/amr-tidymodels.html | 2 +- reference/amr_course.html | 2 +- reference/antibiogram.html | 2 +- reference/antimicrobial_selectors.html | 2 +- reference/antimicrobials.html | 2 +- reference/as.ab.html | 6 +- reference/as.ab.md | 2 +- reference/as.av.html | 2 +- reference/as.disk.html | 2 +- reference/as.mic.html | 2 +- reference/as.mo.html | 2 +- reference/as.sir.html | 10 +- reference/as.sir.md | 8 +- reference/atc_online.html | 2 +- reference/av_from_text.html | 2 +- reference/av_property.html | 2 +- reference/availability.html | 2 +- reference/bug_drug_combinations.html | 2 +- reference/clinical_breakpoints.html | 2 +- reference/count.html | 2 +- reference/custom_interpretive_rules.html | 2 +- reference/custom_mdro_guideline.html | 2 +- reference/dosage.html | 2 +- reference/esbl_isolates.html | 2 +- reference/example_isolates.html | 2 +- reference/example_isolates_unclean.html | 2 +- reference/export_ncbi_biosample.html | 2 +- reference/first_isolate.html | 2 +- reference/g.test.html | 2 +- reference/get_episode.html | 2 +- reference/ggplot_pca.html | 2 +- reference/ggplot_sir.html | 2 +- reference/guess_ab_col.html | 6 +- reference/guess_ab_col.md | 2 +- reference/index.html | 834 ++++++++++----------- reference/index.md | 879 ++++++++++++----------- reference/interpretive_rules.html | 2 +- reference/intrinsic_resistant.html | 2 +- reference/italicise_taxonomy.html | 6 +- reference/italicise_taxonomy.md | 2 +- reference/join.html | 2 +- reference/key_antimicrobials.html | 2 +- reference/kurtosis.html | 2 +- reference/like.html | 2 +- reference/mdro.html | 2 +- reference/mean_amr_distance.html | 2 +- reference/microorganisms.codes.html | 2 +- reference/microorganisms.groups.html | 2 +- reference/microorganisms.html | 2 +- reference/mo_matching_score.html | 2 +- reference/mo_property.html | 2 +- reference/mo_source.html | 2 +- reference/pca.html | 2 +- reference/plot.html | 2 +- reference/proportion.html | 2 +- reference/random.html | 6 +- reference/random.md | 2 +- reference/resistance_predict.html | 2 +- reference/sir_combine.html | 2 +- reference/skewness.html | 2 +- reference/top_n_microorganisms.html | 2 +- reference/translate.html | 2 +- release.html | 2 +- search.json | 2 +- 100 files changed, 1829 insertions(+), 1467 deletions(-) diff --git a/404.html b/404.html index 575fb9df3..ecd985df3 100644 --- a/404.html +++ b/404.html @@ -31,7 +31,7 @@ AMR (for R) - 3.1.0.9002 + 3.1.0.9003 '); + updateMoreButton($item); + } + }); + let h2Title = ""; + $(".template-reference-index main").find("h2, h3").each(function () { + if (this.tagName === "H2") h2Title = $(this).text().trim(); + else $(this).attr("data-amr-parent", h2Title); + }); + $(".amr-ref-more").on("click", function () { + $(this).closest(".amr-ref-item").addClass("amr-ref-expanded"); + $(this).remove(); + }); + + function loadPageText() { + if (pageTextLoaded) return; + pageTextLoaded = true; + $.getJSON($("#search-input").data("search-index") || "../search.json", function (data) { + data.forEach(function (x) { + if (x.dir !== "Reference") return; + const page = x.path.split("/").pop(); + pageText[page] = (pageText[page] || "") + " " + (x.what + " " + x.text + " " + x.code).toLowerCase(); + }); + filter(); + }); + } + + function filter() { + const terms = $.trim($input.val()).toLowerCase().split(/\s+/).filter(Boolean); + $body.toggleClass("amr-ref-filtering", terms.length > 0); + let nDirect = 0; + let nText = 0; + $items.each(function () { + const $item = $(this); + const $codes = $item.find("dd code"); + const direct = terms.length > 0 && terms.every(t => $item.data("text").includes(t)); + const text = terms.length > 0 && !direct && terms.every(t => (pageText[$item.data("page")] || "").includes(t)); + $item.toggleClass("amr-ref-hidden", terms.length > 0 && !direct && !text); + $item.toggleClass("amr-ref-textmatch", text); + // highlight the function names that match, which also reveals them if collapsed + $codes.each(function () { + const name = $(this).text().toLowerCase(); + $(this).toggleClass("amr-ref-match", direct && terms.some(t => name.includes(t))); + }); + updateMoreButton($item); + if (direct) nDirect++; + if (text) nText++; + }); + // hide headings (with their descriptions) that have no visible topic before the next heading of the same or a higher level; + // this follows the document order, since pkgdown puts a heading and its topics in separate sibling blocks + const nVisible = new Map(); + let h2 = null; + let h3 = null; + $(".template-reference-index main").find("h2, h3, .amr-ref-item").each(function () { + if (this.tagName === "H2") { + h2 = this; + h3 = null; + nVisible.set(this, 0); + } else if (this.tagName === "H3") { + h3 = this; + nVisible.set(this, 0); + } else if (!$(this).hasClass("amr-ref-hidden")) { + if (h2) nVisible.set(h2, nVisible.get(h2) + 1); + if (h3) nVisible.set(h3, nVisible.get(h3) + 1); + } + }); + nVisible.forEach((n, heading) => $(heading).closest(".section").toggleClass("amr-ref-hidden", n === 0)); + // blocks that only hold topics + $(".template-reference-index main .section").not(":has(h2, h3)").each(function () { + $(this).toggleClass("amr-ref-hidden", $(this).find(".amr-ref-item:not(.amr-ref-hidden)").length === 0); + }); + const topics = n => n + (n === 1 ? " topic" : " topics"); + if (terms.length === 0) { + $status.text(""); + } else if (nDirect + nText === 0) { + $status.text(pageTextLoaded ? "No topics found" : "Searching..."); + } else if (nText === 0) { + $status.text(topics(nDirect) + " found by name or title"); + } else if (nDirect === 0) { + $status.text("No topics found by name or title, but " + topics(nText) + " mention it"); + } else { + $status.text(topics(nDirect) + " found by name or title, and " + nText + " more mention it"); + } + placeFilter(); + } + + $input.on("input", function () { + loadPageText(); + filter(); + }); + $input.on("keydown", function (e) { + if (e.key === "Escape") { + $input.val(""); + filter(); + } + }); + // press '/' anywhere to focus the filter field + $(document).on("keydown", function (e) { + if (e.key === "/" && !$(e.target).is("input, textarea")) { + e.preventDefault(); + $input.trigger("focus"); + } + }); + } + // 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'); $('.template-citation-authors li:contains("Former doctoral advisor")').first().before('
'); + + // dark variants of figures: list a file name here and put a file with '_dark' before its extension next to it in pkgdown/assets, + // e.g. "logo_umcg.svg" requires "logo_umcg_dark.svg"; images are swapped when the theme is dark, also after switching theme + const darkVariants = []; + function applyDarkVariants() { + const dark = document.documentElement.getAttribute("data-bs-theme") === "dark"; + $("img").each(function () { + const src = $(this).attr("src") || ""; + const file = src.split(/[?#]/)[0].split("/").pop(); + const base = file.replace(/_dark(\.\w+)$/, "$1"); + if (!darkVariants.includes(base)) return; + const target = dark ? base.replace(/(\.\w+)$/, "_dark$1") : base; + if (file !== target) $(this).attr("src", src.replace(file, target)); + }); + } + applyDarkVariants(); + new MutationObserver(applyDarkVariants).observe(document.documentElement, { attributes: true, attributeFilter: ["data-bs-theme"] }); }); $('head').append(""); diff --git a/index.html b/index.html index 90a7ad91e..863534f3a 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,7 @@ AMR (for R) - 3.1.0.9002 + 3.1.0.9003