Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2023-03-21 00:08:51 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2023-03-21 00:08:51 +0300
commit071c78f8a964130b6e9a183c1b45b006b235621c (patch)
treeb35b45eb4037c0f6703247c67474d03381619410 /content
parent3e723955cb06e973715e8a8757f45dc20905122d (diff)
parenta8af88ade5ef675d832ba9ce28bda1f30b525695 (diff)
Merge branch 'remove-disqus' into 'main'
Remove Disqus commenting See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3682 Merged-by: Achilleas Pipinellis <axil@gitlab.com> Approved-by: Achilleas Pipinellis <axil@gitlab.com> Reviewed-by: Sarah German <sgerman@gitlab.com> Co-authored-by: Sarah German <sgerman@gitlab.com>
Diffstat (limited to 'content')
-rw-r--r--content/assets/javascripts/disqus.js26
-rw-r--r--content/assets/stylesheets/help.scss11
-rw-r--r--content/frontend/feedback/feedback.js7
3 files changed, 0 insertions, 44 deletions
diff --git a/content/assets/javascripts/disqus.js b/content/assets/javascripts/disqus.js
deleted file mode 100644
index de2c7a60..00000000
--- a/content/assets/javascripts/disqus.js
+++ /dev/null
@@ -1,26 +0,0 @@
----
-version: 1
----
-
-var disqus_config = function () {
- this.page.url = '<%= @config[:base_url] %><%= @item.identifier.without_ext + '.html' %>';
- this.page.title = '<%= @item.key?(:title) ? "#{item[:title]} - GitLab Documentation" : "GitLab Documentation" %>';
-<% if @item[:disqus_identifier] %>
- this.page.identifier = '<%= @item[:disqus_identifier] %>';
-<% else %>
- this.page.identifier = '<%= @config[:base_url] %><%= @item.identifier.without_ext + '.html' %>';
-<% end %>
-};
-
-var is_disqus_loaded = false;
-window.loadDisqus = function() {
- if (!is_disqus_loaded){
- is_disqus_loaded = true;
- var disqusThread = document.getElementById('disqus_thread');
- var d = document, s = d.createElement('script');
- disqusThread.innerHTML = '';
- s.src = 'https://gitlab-docs.disqus.com/embed.js';
- s.setAttribute('data-timestamp', +new Date());
- (d.head || d.body).appendChild(s);
- }
-};
diff --git a/content/assets/stylesheets/help.scss b/content/assets/stylesheets/help.scss
index 7bc7caa3..18754596 100644
--- a/content/assets/stylesheets/help.scss
+++ b/content/assets/stylesheets/help.scss
@@ -99,14 +99,3 @@
}
}
}
-
-.disqus-comments-gitlab {
- iframe {
- padding-left: 1.067rem;
- padding-right: 1.067rem;
- background-color: $white;
- border-radius: 0.333rem;
- box-shadow: 0.133rem 0.133rem 0.467rem $search-border;
- margin-top: 1.667rem;
- }
-}
diff --git a/content/frontend/feedback/feedback.js b/content/frontend/feedback/feedback.js
deleted file mode 100644
index 628c871e..00000000
--- a/content/frontend/feedback/feedback.js
+++ /dev/null
@@ -1,7 +0,0 @@
-document.addEventListener('DOMContentLoaded', () => {
- const hasCommentAnchor = window.location.hash.includes('#comment-');
-
- if (hasCommentAnchor) {
- window.loadDisqus();
- }
-});