From 79c22ca796e32f3485acc22a36d731ed474291f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:51:22 +0100 Subject: [PATCH 1/7] added `getPackageBox` helper --- tools/generateweb.art | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/generateweb.art b/tools/generateweb.art index 6e8719ce..90046084 100755 --- a/tools/generateweb.art +++ b/tools/generateweb.art @@ -43,6 +43,10 @@ getLink: function [loc, subv][ return rett ] +getPackageBox: function [entry][ + render.template read "website/components/package-box.html" +] + createSpecFile: function [package, versionToProcess, targetFolder][ ret: #[ name: package\name, From 0adb0cc207bf547056977cc7b417a04259978179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:51:36 +0100 Subject: [PATCH 2/7] use `getPackageBox` instead --- website/index.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/website/index.html b/website/index.html index 4f3d5af6..1d3c26fa 100644 --- a/website/index.html +++ b/website/index.html @@ -11,17 +11,14 @@
- Arturo Programming Language
Copyright © 2019-2023 Yanis Zafirópulos
+ Arturo Programming Language
Copyright © 2019-2024 Yanis Zafirópulos
Website built and generated using Arturo + Webize. Running on DigitalOcean.
Source code licensed under MIT. Website content licensed under CC BY NC SA 4.0.
\n\[!TIP\]/} + {/
\n\[!NOTE\]/} + {/
\n\[!IMPORTANT\]/} + {/
\n\[!WARNING\]/} + {/
\n\[!CAUTION\]/} + ][ + "
\nTip
\n" + "\nNote
\n" + "\nImportant
\n" + "\nWarning
\n" + "\nCaution
\n" + ] +] + +postprocessHTML: function [htm][ + return postprocessAlerts htm +] + createSpecFile: function [package, versionToProcess, targetFolder][ ret: #[ name: package\name, @@ -110,7 +139,7 @@ loop entries 'entry [ currentVersion: first entry\version currentVersionIsLatest: true write ~{|tgtName|/index.html} - render.template read "website/package.html" + postprocessHTML render.template read "website/package.html" createSpecFile entry currentVersion tgtName @@ -122,7 +151,7 @@ loop entries 'entry [ currentVersion: vv currentVersionIsLatest: false write ~{|versionTgt|/index.html} - render.template read "website/package.html" + postprocessHTML render.template read "website/package.html" createSpecFile entry vv versionTgt ] From 8e9e261bf296af2589780a51c3b969e741ec0ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:29:53 +0100 Subject: [PATCH 6/7] fix unused tags --- website/package.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/package.html b/website/package.html index b1eb5a6d..8be99a84 100644 --- a/website/package.html +++ b/website/package.html @@ -25,9 +25,10 @@<||= entry\nam
- <|| unless empty? entry\info\tags [ ||> + <|| filteredTags: getCleanTags entry\info\tags ||> + <|| unless empty? filteredTags [ ||> From 00ebf0b313f45af111c55023e0ff1eb809090cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yanis=20Zafir=C3=B3pulos?= <1265028+drkameleon@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:30:08 +0100 Subject: [PATCH 7/7] added alert styles + cleanup --- website/style.scss | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/website/style.scss b/website/style.scss index 004f0847..3b720da5 100644 --- a/website/style.scss +++ b/website/style.scss @@ -203,6 +203,56 @@ a.version-link { box-shadow: none; padding-top: 2rem; padding-bottom: 2rem; + + .readme { + blockquote { + &.alert { + padding-top: 0.5rem; + padding-bottom: 0.5rem; + + background-color: inherit !important; + border-left-width: 5px; + border-left-style: solid; + + .alert-message { + i { + margin-right: 0.5rem; + } + } + + &.alert-tip { + border-left-color: #428546; + .alert-message { + color: #428546; + } + } + &.alert-note { + border-left-color: #296BD3; + .alert-message { + color: #296BD3; + } + } + &.alert-important { + border-left-color: #7A58D7; + .alert-message { + color: #7A58D7; + } + } + &.alert-warning { + border-left-color: #936821; + .alert-message { + color: #936821; + } + } + &.alert-caution { + border-left-color: #BF3536; + .alert-message { + color: #BF3536; + } + } + } + } + } } } }<||= entry\info\description ||>