1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-12 21:01:56 +02:00

Built site for AMR: 1.8.2.9092@ca79068

This commit is contained in:
github-actions
2023-01-14 16:20:52 +00:00
parent d37dc49b96
commit 805dcaf92e
99 changed files with 600 additions and 569 deletions

View File

@ -34,12 +34,14 @@ $(document).ready(function() {
// Replace 'Developers' with 'Maintainers' on the main page, and "Contributors" on the Authors page
$(".developers h2").text("Maintainers");
$(".citation h2:first").text("All contributors");
$(".citation h2:second").text("How to Cite");
// replace \donttest and \dontrun texts in Examples
// remove \donttest and \dontrun texts in Examples
if ($("#ref-examples ~ div pre").length > 0) {
$("#ref-examples ~ div pre").html($("#ref-examples ~ div pre").html().replaceAll("# \\donttest{", ""));
$("#ref-examples ~ div pre").html($("#ref-examples ~ div pre").html().replaceAll("# \\dontrun{", ""));
$("#ref-examples ~ div pre").html($("#ref-examples ~ div pre").html().replaceAll("# }", ""));
const regex1 = /# \\dont(test|run)\{(\n|<br>)*/ig;
const regex2 = /(\n|<br>)*# \}/ig;
$("#ref-examples ~ div pre").html($("#ref-examples ~ div pre").html().replaceAll(regex1, ""));
$("#ref-examples ~ div pre").html($("#ref-examples ~ div pre").html().replaceAll(regex2, ""));
}
// remove leading newline in code examples on changelog