aboutsummaryrefslogtreecommitdiffstats
path: root/v7.1.2/_static/changelog.js
diff options
context:
space:
mode:
authorGravatar ChrisLovering <[email protected]>2024-03-04 14:53:52 +0000
committerGravatar ChrisLovering <[email protected]>2024-03-04 14:53:52 +0000
commit3eb5ff4e3f0a841d28d8c742eba2e562f9fc2231 (patch)
treecc57ad52e9e9efb2ab82c0bd8596522ace108556 /v7.1.2/_static/changelog.js
parentDeploying to docs from @ python-discord/bot-core@69eeda8a1914b671af68871dcf55... (diff)
Deploying to docs from @ python-discord/bot-core@c72b515aec03b1d9df49a3d58bfa90a3d864160e 🚀
Diffstat (limited to 'v7.1.2/_static/changelog.js')
-rw-r--r--v7.1.2/_static/changelog.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/v7.1.2/_static/changelog.js b/v7.1.2/_static/changelog.js
deleted file mode 100644
index 94834eaa..00000000
--- a/v7.1.2/_static/changelog.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/** Update the changelog colors in dark mode */
-function changelog_color_main() {
- const changelog = document.getElementById("changelog");
-
- function updateEntryColor(span) {
- const lightColorSpan = span;
- const darkColorSpan = lightColorSpan.cloneNode(true);
-
- lightColorSpan.parentElement.insertBefore(darkColorSpan, lightColorSpan);
-
- lightColorSpan.classList.add("light");
- darkColorSpan.classList.add("dark");
-
- let color;
- switch (darkColorSpan.textContent) {
- case "Feature":
- color = "#5BF38E";
- break;
- case "Support":
- color = "#55A5E7";
- break;
- case "Bug":
- color = "#E14F4F";
- break;
- default:
- color = lightColorSpan.style.color;
- }
-
- darkColorSpan.style["color"] = color;
- }
-
- const TYPES = ["Feature", "Bug", "Support", "Breaking"];
-
- if (changelog !== null) {
- Array.from(changelog.getElementsByTagName("span"))
- .filter(value => TYPES.includes(value.textContent))
- .forEach(updateEntryColor)
- }
-}
-
-changelog_color_main();