This is an automated email from the ASF dual-hosted git repository.

niklasmerz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 10e089effd site: fix whimsy issues & remove defunct integrations 
(#1344)
10e089effd is described below

commit 10e089effd1feb38f125a0e11eb9486d0d621969
Author: Niklas Merz <niklasm...@apache.org>
AuthorDate: Fri Jan 26 14:46:44 2024 +0100

    site: fix whimsy issues & remove defunct integrations (#1344)
    
    * fix license link & remove defunct slack & twitter integration
    
    * remove defunct algolia search
    
    * link events
    
    * make copyright check happy
---
 conf/_config.yml                   |  2 --
 www/_includes/algolia.html         | 21 ---------------------
 www/_includes/footer_contents.html |  8 +++++---
 www/_includes/head.html            |  2 --
 www/_includes/header.html          |  1 -
 www/_includes/twitterFeed.html     | 20 --------------------
 www/_layouts/base.html             |  1 -
 www/blog/index.html                |  3 ---
 www/static/js/twitter.js           |  1 -
 9 files changed, 5 insertions(+), 54 deletions(-)

diff --git a/conf/_config.yml b/conf/_config.yml
index d0f032fa9e..3c043360f7 100644
--- a/conf/_config.yml
+++ b/conf/_config.yml
@@ -69,7 +69,5 @@ kramdown:
 exclude:
     - static/css-src
 
-algolia_api_key: "0a916ab198bd93d031aa70611271e42e"
-
 collections:
   - members
diff --git a/www/_includes/algolia.html b/www/_includes/algolia.html
deleted file mode 100644
index c4db0e883e..0000000000
--- a/www/_includes/algolia.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{% if page.version %}
-    {% assign version = page.version %}
-{% else %}
-    {% assign version = site.latest_docs_version %}
-{% endif %}
-
-{% if page.language %}
-    {% assign language = page.language %}
-{% else %}
-    {% assign language = site.language %}
-{% endif %}
-
-<script type="text/javascript" 
src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js";></script>
-<script type="text/javascript">
-    docsearch({
-        apiKey: '{{ site.algolia_api_key }}',
-        indexName: 'cordova',
-        inputSelector: '#header-search-field',
-        algoliaOptions: { 'facetFilters': ["version:  {{ version }}", 
"language: {{ language }}"] }
-    });
-</script>
diff --git a/www/_includes/footer_contents.html 
b/www/_includes/footer_contents.html
index 74f052b2d2..63b52a1e0d 100644
--- a/www/_includes/footer_contents.html
+++ b/www/_includes/footer_contents.html
@@ -12,7 +12,7 @@
                         <a 
href="https://www.apache.org/dyn/closer.cgi/cordova";>Source Distribution</a>
                     </li>
                     <li>
-                        <a target="_blank" 
href="https://www.apache.org/licenses/LICENSE-2.0";>License</a>
+                        <a target="_blank" 
href="https://www.apache.org/licenses";>License</a>
                     </li>
                     <li>
                         <a href="{{ site.baseurl }}/artwork">Artwork</a>
@@ -35,6 +35,9 @@
                     <li>
                         <a target="_blank" 
href="https://www.apache.org/";>About ASF</a>
                     </li>
+                    <li>
+                        <a target="_blank" 
href="https://www.apache.org/events/current-event";>Events</a>
+                    </li>
                     <li>
                         <a target="_blank" 
href="https://www.apache.org/foundation/sponsorship.html";>Become a Sponsor</a>
                     </li>
@@ -59,11 +62,10 @@
             Learn More
         </a>
         <p style="padding-top:20px"> <a 
href="https://twitter.com/apachecordova"; class="twitter-follow-button" 
data-show-count="false">Follow @apachecordova</a></p>
-        <script async defer 
src="https://slack-cordova-io.herokuapp.com/slackin.js";></script>
     </div>
 </div>
 <p class="copyright_text">
-    Copyright &copy; {{ 'now' | date: "%Y" }} The Apache Software Foundation, 
Licensed under the <a target="_blank" 
href="https://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 
2.0</a>.<br/>
+    Copyright &copy; {{ 'now' | date: "%Y" }} <a href="https://apache.org";>The 
Apache Software Foundation</a>, Licensed under the <a target="_blank" 
href="https://www.apache.org/licenses/";>Apache License, Version 2.0</a>.<br/>
     Apache and the Apache feather logos are <a target="_blank" 
href="https://www.apache.org/foundation/marks/list/";>trademarks</a> of The 
Apache Software Foundation.
     <br/>
     <p>See the <a href="{{ site.baseurl }}/attributions/">attributions 
page</a> for other copyright & trademark notices.</p>
diff --git a/www/_includes/head.html b/www/_includes/head.html
index 66f103f1f2..41b3406514 100644
--- a/www/_includes/head.html
+++ b/www/_includes/head.html
@@ -38,8 +38,6 @@
     <!-- CSS -->
     <link rel="stylesheet" type="text/css" href="{{ site.baseurl 
}}/static/css/main.css">
     <link rel="stylesheet" type="text/css" href="{{ site.baseurl 
}}/static/css/lib/syntax.css">
-    <!-- Algolia Search CSS -->
-    <link rel="stylesheet" 
href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"; />
 
     <!-- Fonts -->
     <!-- For attribution information, see www/attributions.html -->
diff --git a/www/_includes/header.html b/www/_includes/header.html
index 95145175db..3c4b7041d7 100644
--- a/www/_includes/header.html
+++ b/www/_includes/header.html
@@ -40,7 +40,6 @@
                                     {% else %}
                                         {% assign version = 
site.latest_docs_version %}
                                     {% endif %}
-                                    <input id="header-search-field" 
type="text" placeholder="Search '{{ version }}' docs..." class="form-control 
hidden-xs" autocomplete="off">
                                 </div>
                             </form>
                         </li>
diff --git a/www/_includes/twitterFeed.html b/www/_includes/twitterFeed.html
deleted file mode 100644
index 4c9e8e6153..0000000000
--- a/www/_includes/twitterFeed.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<a class="twitter-timeline" data-dnt="true" 
href="https://twitter.com/apachecordova"; 
data-widget-id="629424968011386884">Tweets by @apachecordova</a>
-
-<script>
-window.twttr = (function(d, s, id) {
-    var js, fjs = d.getElementsByTagName(s)[0],
-        t = window.twttr || {};
-    if (d.getElementById(id)) return t;
-    js = d.createElement(s);
-    js.id = id;
-    js.src = "https://platform.twitter.com/widgets.js";;
-    fjs.parentNode.insertBefore(js, fjs);
-
-    t._e = [];
-    t.ready = function(f) {
-        t._e.push(f);
-    };
-
-    return t;
-}(document, "script", "twitter-wjs"));
-</script>
diff --git a/www/_layouts/base.html b/www/_layouts/base.html
index a57db9d752..58da2622ac 100644
--- a/www/_layouts/base.html
+++ b/www/_layouts/base.html
@@ -9,6 +9,5 @@ analytics_id: UA-64283057-3
     {{ content }}
     <script defer type="text/javascript" src="{{ site.baseurl 
}}/static/js/index.js"></script>
     <script defer type="text/javascript" src="{{ site.baseurl 
}}/static/js/twitter.js"></script>
-    {% include algolia.html %}
 </body>
 </html>
diff --git a/www/blog/index.html b/www/blog/index.html
index 2a1b63dcc5..d12923edc3 100644
--- a/www/blog/index.html
+++ b/www/blog/index.html
@@ -43,9 +43,6 @@ priority: 0.7
         </ul>
         <!-- <a target="_blank" href="http://feed1.w3.org/check.cgi?url={{ 
site.baseurl }}{{ site.rss_path }}"><img src="{{ site.baseurl 
}}/static/img/valid-rss-rogers.png" alt="[Valid RSS]" title="Validate my RSS 
feed" /></a> -->
     </div>
-    <div class="col-sm-4 social-container">
-        {% include twitterFeed.html %}
-    </div>
 </div>
 
 <script>
diff --git a/www/static/js/twitter.js b/www/static/js/twitter.js
deleted file mode 100644
index 113c7f6d6a..0000000000
--- a/www/static/js/twitter.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(d,s,id){var 
js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document,
 'script', 'twitter-wjs');


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to