1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-26 05:26:13 +01:00

(v2.1.1.9092) Fix website

This commit is contained in:
dr. M.S. (Matthijs) Berends 2024-10-06 16:25:31 +02:00
parent 3dd3b6292a
commit c588902f4c
5 changed files with 14 additions and 8 deletions

View File

@ -1,6 +1,6 @@
Package: AMR Package: AMR
Version: 2.1.1.9090 Version: 2.1.1.9092
Date: 2024-10-04 Date: 2024-10-06
Title: Antimicrobial Resistance Data Analysis Title: Antimicrobial Resistance Data Analysis
Description: Functions to simplify and standardise antimicrobial resistance (AMR) Description: Functions to simplify and standardise antimicrobial resistance (AMR)
data analysis and to work with microbial and antimicrobial properties by data analysis and to work with microbial and antimicrobial properties by

View File

@ -1,4 +1,4 @@
# AMR 2.1.1.9090 # AMR 2.1.1.9092
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using [the instructions here](https://msberends.github.io/AMR/#latest-development-version).)* *(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using [the instructions here](https://msberends.github.io/AMR/#latest-development-version).)*

View File

@ -57,10 +57,7 @@ footer:
home: home:
sidebar: sidebar:
structure: [gpthelp, toc, links, authors] structure: [toc, links, authors]
components:
gpthelp:
text: '<a target="_blank" href="https://chatgpt.com/g/g-M4UNLwFi5-amr-for-r-assistant"><img src="https://github.com/msberends/AMR/raw/main/pkgdown/assets/AMRforRGPT.svg" style="width: 80%;"></a>'
navbar: navbar:
title: "AMR (for R)" title: "AMR (for R)"

View File

@ -119,6 +119,10 @@ body.amr-for-python * {
width: 150px; width: 150px;
} }
.amr-gpt-assistant * {
width: 90%;
}
.template-reference-index .section-desc { .template-reference-index .section-desc {
font-style: italic; font-style: italic;
text-align: justify; text-align: justify;

View File

@ -30,8 +30,10 @@
*/ */
$(document).ready(function() { $(document).ready(function() {
// add GPT assistant info
$('aside').prepend('<div class="amr-gpt-assistant"><a target="_blank" href="https://chatgpt.com/g/g-M4UNLwFi5-amr-for-r-assistant"><img src="https://github.com/msberends/AMR/raw/main/pkgdown/assets/AMRforRGPT.svg"></a></div>');
// Replace 'Developers' with 'Maintainers' on the main page, and "Contributors" on the Authors page // replace 'Developers' with 'Maintainers' on the main page, and "Contributors" on the Authors page
$(".developers h2").text("Maintainers"); $(".developers h2").text("Maintainers");
$(".citation h2:nth(0)").text("All contributors"); $(".citation h2:nth(0)").text("All contributors");
$(".citation h2:nth(1)").text("How to Cite"); $(".citation h2:nth(1)").text("How to Cite");
@ -43,6 +45,9 @@ $(document).ready(function() {
$("#ref-examples ~ div pre").html($("#ref-examples ~ div pre").html().replaceAll("# }", "")); $("#ref-examples ~ div pre").html($("#ref-examples ~ div pre").html().replaceAll("# }", ""));
} }
// rename 'Package index' to 'Manual' (weird design choice to pick 'Package index')
// remove leading newline in code examples on changelog // remove leading newline in code examples on changelog
if ($("body .template-news").length > 0) { if ($("body .template-news").length > 0) {
$("body .template-news").html($("body .template-news").html().replaceAll('sourceCode R">\n<span', 'sourceCode R"><span')); $("body .template-news").html($("body .template-news").html().replaceAll('sourceCode R">\n<span', 'sourceCode R"><span'));