From 8e66c33790e8f22aebdf1289c4707d5d56264271 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 21 Feb 2022 17:20:31 +0000 Subject: Remove releases package used to autogenerate changelog --- docs/index.rst | 5 ----- 1 file changed, 5 deletions(-) (limited to 'docs/index.rst') diff --git a/docs/index.rst b/docs/index.rst index e7c25ef1..02dd84bb 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -13,11 +13,6 @@ Reference output/botcore -.. toctree:: - :caption: Other: - - changelog - Extras ================== -- cgit v1.2.3 From b3c4cf3c81cea56638beb002ecba96707fb5f96b Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 21 Feb 2022 17:20:53 +0000 Subject: Add markdown powered changelog --- CHANGELOG.md | 22 ++++++++++++++++++++++ docs/_static/changelog.css | 11 ----------- docs/_static/changelog.js | 37 ------------------------------------- docs/conf.py | 5 ----- docs/index.rst | 1 + 5 files changed, 23 insertions(+), 53 deletions(-) create mode 100644 CHANGELOG.md delete mode 100644 docs/_static/changelog.css delete mode 100644 docs/_static/changelog.js (limited to 'docs/index.rst') diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..456ecb2c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,22 @@ +# Changelog + +## 1.3.0 22nd February 2022 +- Feature: Port many common utilities from our bots + - caching + - channel + - extensions + - loggers + - members + - scheduling +- Support: Added intersphinx to docs. + +## 1.2.0 9th January 2022 +- Feature: Code block detection regex + +## 1.1.0 2nd December 2021 +- Support: Autogenerated docs. +- Feature: Regex utility. + + +## 1.0.0 17th November 2021 +- Support: Core package, poetry, and linting CI. diff --git a/docs/_static/changelog.css b/docs/_static/changelog.css deleted file mode 100644 index 343792a1..00000000 --- a/docs/_static/changelog.css +++ /dev/null @@ -1,11 +0,0 @@ -[data-theme='dark'] #changelog .dark, -[data-theme='light'] #changelog .light, -[data-theme='auto'] #changelog .light { - display: inline; -} - -[data-theme='dark'] #changelog .light, -[data-theme='light'] #changelog .dark, -[data-theme='auto'] #changelog .dark { - display: none; -} diff --git a/docs/_static/changelog.js b/docs/_static/changelog.js deleted file mode 100644 index f72d025c..00000000 --- a/docs/_static/changelog.js +++ /dev/null @@ -1,37 +0,0 @@ -/** Update the changelog colors in dark mode */ - -const changelog = document.getElementById("changelog"); - -function updateEntryColor(entry) { - const line = entry.lastChild; - const lightColorSpan = line.childNodes.item(1); - const darkColorSpan = lightColorSpan.cloneNode(true); - - line.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 = null; - } - - darkColorSpan.style["color"] = color; -} - -if (changelog !== null) { - for (let collection of changelog.getElementsByClassName("simple")) { - Array.from(collection.children).forEach(updateEntryColor); - } -} diff --git a/docs/conf.py b/docs/conf.py index 0f0167ad..476a4d36 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -83,14 +83,9 @@ html_logo = "https://raw.githubusercontent.com/python-discord/branding/main/logo html_favicon = html_logo html_css_files = [ - "changelog.css", "logo.css", ] -html_js_files = [ - "changelog.js", -] - utils.cleanup() diff --git a/docs/index.rst b/docs/index.rst index 02dd84bb..81975f35 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -20,3 +20,4 @@ Extras * :ref:`genindex` * :ref:`search` * :repo-file:`Information ` +* :repo-file:`Changelog ` -- cgit v1.2.3