Files
Jonathan Kamens 7fa0e94025 Make user guide build with local jekyll + add beta user guide warning
Enable the user guide to be built locally so that formatting and
content changes can be reviewed before submission to GitHub.

Also, add some warnings for the production and beta versions of the
user guide letting people know which version they're reading and
pointing them at the other one.
2023-09-13 17:04:07 -04:00

17 lines
384 B
JavaScript

function onLoad() {
let isBeta = window.location.href.includes('/next');
console.log(isBeta);
for (element of document.getElementsByClassName("beta-only")) {
element.hidden = !isBeta;
}
for (element of document.getElementsByClassName("production-only")) {
element.hidden = isBeta;
}
}
window.addEventListener(
"DOMContentLoaded",
onLoad,
{ once: true },
);