Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 84e0eea

Browse files
committed
chore(docs): remove Disqus comments
We don't actively moderate these comments, and they range from out of date, to inflammatory, to spam. Going forward, improvements to the docs should be done via a PR, and questions should go on StackOverflow where they can be curated and kept up to date by AngularJS developers who help out there.
1 parent bcf12e7 commit 84e0eea

File tree

2 files changed

+2
-27
lines changed

2 files changed

+2
-27
lines changed

docs/src/templates/index.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,8 @@ <h4>{{ key }}</h4>
335335

336336
<div ng-hide="loading" ng-include src="currentPage.partialUrl" onload="afterPartialLoaded()" autoscroll class="content slide-reveal"></div>
337337

338-
<div id="disqus" class="disqus">
339-
<h2>Discussion</h2>
340-
<div id="disqus_thread" class="content-panel-content"></div>
338+
<div class="alert alert-info">
339+
<a href="http://blog.angularjs.org/2013/11/farewell-disqus.html">Where did Disqus go?</a>
341340
</div>
342341
</div>
343342
</div>

docs/src/templates/js/docs.js

-24
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie
680680
var currentPageId = $location.path();
681681
$scope.partialTitle = $scope.currentPage.shortName;
682682
$window._gaq.push(['_trackPageview', currentPageId]);
683-
loadDisqus(currentPageId);
684683
};
685684

686685
/** stores a cookie that is used by apache to decide which manifest ot send */
@@ -892,29 +891,6 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie
892891
return namespace;
893892
}
894893
}
895-
896-
897-
function loadDisqus(currentPageId) {
898-
// http://docs.disqus.com/help/2/
899-
window.disqus_shortname = 'angularjs-next';
900-
window.disqus_identifier = currentPageId;
901-
window.disqus_url = 'http://docs.angularjs.org' + currentPageId;
902-
903-
if ($location.host() == 'localhost') {
904-
return; // don't display disqus on localhost, comment this out if needed
905-
//window.disqus_developer = 1;
906-
}
907-
908-
// http://docs.disqus.com/developers/universal/
909-
(function() {
910-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
911-
dsq.src = 'http://angularjs.disqus.com/embed.js';
912-
(document.getElementsByTagName('head')[0] ||
913-
document.getElementsByTagName('body')[0]).appendChild(dsq);
914-
})();
915-
916-
angular.element(document.getElementById('disqus_thread')).html('');
917-
}
918894
};
919895

920896

0 commit comments

Comments
 (0)