Merge pull request #15979 from crazy-max/remove-polldaddy

jekyll: remove polldaddy
This commit is contained in:
David Karlsson 2022-10-27 14:13:42 +02:00 committed by GitHub
commit 0d084752cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 1 additions and 52 deletions

1
404.md
View File

@ -1,7 +1,6 @@
---
title: "Sorry, we can't find that page"
permalink: /404.html
noratings: true
notoc: true
sitemap: false
skip_read_time: true

View File

@ -15,7 +15,6 @@ exclude:
# Google Analytics, etc.
google_analytics: GTM-WL2QLG5
polldaddy_id: 8453675
onetrust_id: 8e0ebfd9-035d-4ec2-9b2f-a2de9c09f906
# Assets

View File

@ -1,18 +0,0 @@
{%- if site.polldaddy_id and site.polldaddy_id != '' -%}
<script>
let PDRTJS_settings_{{ site.polldaddy_id }} = {
"id": "{{ site.polldaddy_id }}",
"unique_id": "{{ page.path }}",
"title": "{{ page.title | default: page_title }}",
"font_family": "Open Sans, sans serif",
"font_color": "b9c2cc",
"font_align": "center",
"permalink": "{{ site.repo }}/blob/main/{{ page.path }}"
};
(function (d, c, j) {
if (!document.getElementById(j)) {
let pd=d.createElement(c),s;pd.id=j;pd.src='https://polldaddy.com/js/rating/rating.js';s=document.getElementsByTagName(c)[0];s.parentNode.insertBefore(pd, s);
}
}(document, 'script', 'pd-rating-js'));
</script>
{%- endif -%}

View File

@ -42,9 +42,6 @@
</span>
{%- endif -%}
{%- endunless %}
{%- if site.polldaddy_id and page.noratings != true -%}
<div class="ratings-div"><div id="pd_rating_holder_{{ site.polldaddy_id }}"></div></div>
{%- endif -%}
</section>
</main>
<nav class="col-nav">
@ -90,6 +87,5 @@
{% include footer.html %}
</footer>
<script>const pageURL = "{{ page.url }}";</script>
{%- if jekyll.environment == 'production' -%}{%- include analytics/polldaddy.html -%}{%- endif -%}
</body>
</html>

View File

@ -289,23 +289,6 @@ input:checked+.slider:before {
margin: 15px 0 10px 0;
}
/* polldaddy */
#rating_info_8453675 {
display: none !important;
}
.rating-msg {
font: inherit !important;
color: inherit !important;
}
/* remove polldaddy ratings */
.rating-nero-value {
visibility: hidden
}
/*
* Controls ********************************************************************
*/

View File

@ -28,12 +28,6 @@
margin-bottom: 20px!important;
}
.ratings-div {
color: #b9c2cc;
margin-top: 150px;
text-align: center;
}
/*
* tables **********************************************************************
*/
@ -217,7 +211,6 @@ input[type=text] {
.col-toc,
.footer,
.glyphicon-tags,
.ratings-div
{
display: none !important;
}

View File

@ -103,7 +103,6 @@ local builds, and builds that are deployed to [docs.docker.com](/):
- search auto-completion, and generation of `js/metadata.json`
- Google Analytics
- page ratings
- `sitemap.xml` generation
- minification of stylesheets (`css/style.css`)
- adjusting "edit this page" links for content in other repositories

View File

@ -3,7 +3,6 @@ title: "Glossary"
description: "Glossary of terms used around Docker"
keywords: "glossary, docker, terms, definitions"
notoc: true
noratings: true
skip_read_time: true
redirect_from:
- /engine/reference/glossary/

View File

@ -1,7 +1,6 @@
---
description: Docker documentation search results
keywords: Search, Docker, documentation, manual, guide, reference, api
noratings: true
notoc: true
notags: true
title: "Docs search"