From 3ddeed19457f8ef956b189ec280f487c65076443 Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Thu, 8 Feb 2024 16:48:46 +0300 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=A8=20data-url=20param=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Onuralp SEZER --- docs/javascripts/cookbooks-card.js | 7 ++++--- docs/theme/cookbooks.html | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/javascripts/cookbooks-card.js b/docs/javascripts/cookbooks-card.js index e12b7d15..167e78d0 100644 --- a/docs/javascripts/cookbooks-card.js +++ b/docs/javascripts/cookbooks-card.js @@ -1,7 +1,7 @@ document.addEventListener("DOMContentLoaded", function () { - async function setCard(el, name, desc, labels, version, theme, authors) { + async function setCard(el, url, name, desc, labels, version, theme, authors) { const colorList = [ "A351FB", "FF4040", "FFA1A0", "FF7633", "FFB633", "D1D435", "4CFB12", "94CF1A", "40DE8A", "1B9640", "00D6C1", "2E9CAA", "00C4FF", "364797", @@ -61,7 +61,7 @@ document.addEventListener("DOMContentLoaded", function () {
- ${name} + ${name}
${desc}
@@ -101,6 +101,7 @@ document.addEventListener("DOMContentLoaded", function () { } for (const el of document.querySelectorAll('.repo-card')) { + const url = el.getAttribute('data-url'); const name = el.getAttribute('data-name'); const desc = el.getAttribute('data-desc'); const labels = el.getAttribute('data-labels'); @@ -113,6 +114,6 @@ document.addEventListener("DOMContentLoaded", function () { var theme = "light-default" } - setCard(el, name, desc, labels, version, theme, authors); + setCard(el, url, name, desc, labels, version, theme, authors); } }) diff --git a/docs/theme/cookbooks.html b/docs/theme/cookbooks.html index 9747e1f1..13bb0bd6 100644 --- a/docs/theme/cookbooks.html +++ b/docs/theme/cookbooks.html @@ -11,9 +11,9 @@

Supervision Cookbooks

-

-

-

+

+

+