From 2ffe9b59dd197a11edefeede216416634c402c68 Mon Sep 17 00:00:00 2001
From: asterisk727 <59166650+asterisk727@users.noreply.github.com>
Date: Mon, 29 Dec 2025 22:14:10 +0900
Subject: [PATCH] feat: add warning boxes to info site on every page
---
README.md | 3 +++
docs/index.md | 2 +-
docs/infobox.js | 15 +++++++++++++++
mkdocs.yml | 3 +++
4 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 docs/infobox.js
diff --git a/README.md b/README.md
index 0aa4472..3122b58 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,9 @@ TWO-TORIAL, a compendium of information and guides about arcade games. It also s
+> [!CAUTION]
+> **This is a mirror of the original TWO-TORIAL spice2x patcher. Read more info about this mirror [here](https://two-torial-info.maimaidxprism.plus/)**
+
## About
This repository houses a guide dedicated to assisting individuals in configuring and navigating the setup process for various arcade games within this specific gaming genre. It covers essential aspects of installation, configuration, and troubleshooting, aiming to streamline the experience for users.
diff --git a/docs/index.md b/docs/index.md
index 859af4f..ddc9a9a 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -11,7 +11,7 @@
A compendium of information and guides about arcade games.
By the community, for the community.
-[Join our Discord server! :fontawesome-brands-discord:](https://discord.gg/cZRUmEPK78){ .md-button }
+[Join (or probably don't join) our (now-defunct) Discord server! :fontawesome-brands-discord:](https://discord.gg/cZRUmEPK78){ .md-button }
diff --git a/docs/infobox.js b/docs/infobox.js
new file mode 100644
index 0000000..4895512
--- /dev/null
+++ b/docs/infobox.js
@@ -0,0 +1,15 @@
+document.addEventListener("DOMContentLoaded", function() {
+ const infoBox = document.createElement('div');
+ infoBox.innerHTML = `
+
+ This is a mirror of the original TWO-TORIAL spice2x patcher.
+ Read more info about this mirror --->
+ here
+
+ `;
+ const mdContent = document.querySelector('.md-content__inner');
+
+ if (mdContent) {
+ mdContent.parentNode.insertBefore(infoBox, mdContent);
+ }
+});
diff --git a/mkdocs.yml b/mkdocs.yml
index 831fb36..877bb57 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -387,6 +387,9 @@ plugins:
- search
- git-revision-date-localized
+extra_javascript:
+ - infobox.js
+
extra_css:
- style.css