diff --git a/css/specifics.css b/css/specifics.css index 4354f14b..598c8d7e 100644 --- a/css/specifics.css +++ b/css/specifics.css @@ -157,7 +157,7 @@ section, .into-text { animation-duration: 0.5s; transform: scale(1.5) translate(-2px, 7px) rotate(0.25turn); } -.downloads-platform p { +.downloads-platform p, #downloads-release-notes { font-size: 90%; padding: 5px !important; border-radius: 5px; @@ -168,8 +168,13 @@ section, .into-text { color: #555; font-style: italic; } +#downloads-release-notes span:first-child { + font-size: 80%; + line-height: 220%; + font-variant-caps: small-caps; +} /* elements of the documentation section */ #doc-section p { line-height: 140%; -} \ No newline at end of file +} diff --git a/index.html b/index.html index 995da2f0..3680ad2e 100644 --- a/index.html +++ b/index.html @@ -84,6 +84,9 @@
This page is supposed to provide an overview. Checkout the "Downloads"-section
of the README for all options and further details.
diff --git a/js/main.js b/js/main.js
index 3c82e1b6..9b2ce7aa 100644
--- a/js/main.js
+++ b/js/main.js
@@ -172,6 +172,7 @@ function renderRelease(releaseInfo, otherReleases)
{
const releaseName = releaseInfo.name ?? "unknown";
const releaseDate = releaseInfo.published_at ?? "unknown";
+ const releaseNotes = releaseInfo.body ?? '';
document.getElementById("downloads-latest-release").innerText = `${releaseName} from ${releaseDate}`;
const assets = Array.isArray(releaseInfo.assets) ? releaseInfo.assets : [];
@@ -208,6 +209,16 @@ function renderRelease(releaseInfo, otherReleases)
document.getElementById('downloads-loading').style.display = 'none';
document.getElementById('downloads-release-info').style.display = 'block';
+
+ if (releaseNotes.length > 10) {
+ const releaseNotesElement = document.getElementById("downloads-release-notes");
+ let formatted = releaseNotes;
+ formatted = formatted.replaceAll(/\*\*([^\*]*)\*\*/gi, '$1');
+ formatted = formatted.replaceAll(/\*([^\*]*)\*/gi, '$1');
+ formatted = formatted.replaceAll(/\~\~([^\~]*)\~\~/gi, '$1');
+ releaseNotesElement.insertAdjacentHTML("beforeend", formatted);
+ releaseNotesElement.style.display = 'block';
+ }
}
main();