From f5f61d7862d727fc9c6ff74fb7359c33ab81b6c3 Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Thu, 28 Sep 2023 11:51:37 +0200 Subject: [PATCH 1/2] Add Discord link to text --- docs/api/python/spark_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/python/spark_api.md b/docs/api/python/spark_api.md index 72fe346f86d..a23e9cef090 100644 --- a/docs/api/python/spark_api.md +++ b/docs/api/python/spark_api.md @@ -5,7 +5,7 @@ title: Spark API DuckDB's Python client offers a Spark-compatible API. The API aims to be fully compatible with the [PySpark API](https://spark.apache.org/docs/3.5.0/api/python/reference/index.html), allowing you to use the familiar Spark API. All statements are translated to DuckDB's internal plans using our [relational API](relational_api) and executed using DuckDB's query engine. -> This API is currently experimental and features are still missing. We are very interested in feedback. Please report any functionality that you are missing, either through Discord or on [GitHub](https://github.com/duckdb/duckdb/issues). +> This API is currently experimental and features are still missing. We are very interested in feedback. Please report any functionality that you are missing, either through [Discord](https://discord.duckdb.org) or on [GitHub](https://github.com/duckdb/duckdb/issues). ## Example From 40c79a08213d087bdadd13ddb9e700bd9167a454 Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Thu, 28 Sep 2023 11:52:19 +0200 Subject: [PATCH 2/2] Remove Discord banner --- css/main.scss | 57 ------------------------------------------- css/mobilestyles.scss | 19 --------------- index.html | 14 ----------- js/script.js | 15 ++---------- 4 files changed, 2 insertions(+), 103 deletions(-) diff --git a/css/main.scss b/css/main.scss index 1cd1c35eaa7..01c2512503b 100644 --- a/css/main.scss +++ b/css/main.scss @@ -1495,63 +1495,6 @@ body.installation{ } } -/** DISCORD BANNER ON HOME PAGE **/ -.discord{ - height: 55px; - color: white; - background-color: #5865f2; - margin-top: 53px; - position: relative; - width: 100%; - justify-content: center; - align-items: center; - column-gap: 40px; - overflow: hidden; - display: none; - > svg{ - width: 35px; - height: auto; - } - .button{ - border: 1px solid white; - padding: 4px 27px 4px 10px; - display: block; - color: white; - text-decoration: none; - transition: color .4s, background .4s; - span::after{ - content: "→"; - font-family: "DuckDB-Symbol"; - margin-left: 4px; - transition: transform .3s, color .3s; - position: absolute; - } - &:hover span::after{ - transform: translateX(3px); - color: #5865f2; - } - &:hover{ - color: #5865f2; - background-color: white; - } - } - .button.notonmobile{ - display: block; - } - .button.onlymobile{ - display: none; - } - p{ - font-size: 120%; - } - .discordclose{ - position: absolute; - right: 30px; - top: 19px; - cursor: pointer; - } -} - /** GENERATED HTML FIXES FOR DOCUMENTATION **/ div.bodywrapper{ diff --git a/css/mobilestyles.scss b/css/mobilestyles.scss index 3cfaae3bf14..5437d2c9420 100644 --- a/css/mobilestyles.scss +++ b/css/mobilestyles.scss @@ -360,25 +360,6 @@ } } - .discord{ - column-gap: 25px; - >p{ - display: none; - } - >svg{ - margin-left: -40px; - } - .button.notonmobile{ - display: none; - } - .button.onlymobile{ - display: block; - } - .discordclose{ - right: 25px; - } - } - /** NEWS **/ .newswrap{ diff --git a/index.html b/index.html index f7bbb7b25c9..2519979214c 100644 --- a/index.html +++ b/index.html @@ -6,20 +6,6 @@ body_class: landing nowrap --- -
- -

Join the DuckDB Discord server!

- - Join now - - - Join DuckDB on Discord - -
- -
-
-
diff --git a/js/script.js b/js/script.js index 994dfa8dc87..adaea02594f 100644 --- a/js/script.js +++ b/js/script.js @@ -320,7 +320,7 @@ $(document).ready(function(){ $('a').filter(function() { return this.hostname && this.hostname !== location.hostname; }).addClass("externallink").attr('target','_blank'); - $('.landingmenu .external a.externallink, .mainlinks a.externallink, .discord a.externallink').removeClass('externallink'); // Remove Class from header elements + $('.landingmenu .external a.externallink, .mainlinks a.externallink').removeClass('externallink'); // Remove Class from header elements $('.footercontent a.externallink').removeClass('externallink'); // Remove Class from footer elements $('table a.externallink:contains(GitHub)').removeClass('externallink').addClass('nobg'); // Remove Class from GitHub Links in Table @@ -413,18 +413,7 @@ $(document).ready(function(){ } return item.value } - // CLOSE DISCORD BANNER ON HOME PAGE - const showdiscord = getWithExpiry("discordBanner"); - if(showdiscord == false){ - $('.discord').css('display', 'none'); - } else { - $('.discord').css('display', 'flex'); - } - $('.discordclose').click(function(){ - setWithExpiry('discordBanner', false, 172800000); // 900000 = 15 min, 172800000 = 2 days - //$('.discord').slideUp(); - $('.discord').animate({ height: 0 }, 300); - }); + // SEARCH