mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-24 13:53:43 +00:00
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.
This commit is contained in:
parent
bcf12e70e5
commit
84e0eea164
2 changed files with 2 additions and 27 deletions
|
|
@ -335,9 +335,8 @@
|
||||||
|
|
||||||
<div ng-hide="loading" ng-include src="currentPage.partialUrl" onload="afterPartialLoaded()" autoscroll class="content slide-reveal"></div>
|
<div ng-hide="loading" ng-include src="currentPage.partialUrl" onload="afterPartialLoaded()" autoscroll class="content slide-reveal"></div>
|
||||||
|
|
||||||
<div id="disqus" class="disqus">
|
<div class="alert alert-info">
|
||||||
<h2>Discussion</h2>
|
<a href="http://blog.angularjs.org/2013/11/farewell-disqus.html">Where did Disqus go?</a>
|
||||||
<div id="disqus_thread" class="content-panel-content"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -680,7 +680,6 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie
|
||||||
var currentPageId = $location.path();
|
var currentPageId = $location.path();
|
||||||
$scope.partialTitle = $scope.currentPage.shortName;
|
$scope.partialTitle = $scope.currentPage.shortName;
|
||||||
$window._gaq.push(['_trackPageview', currentPageId]);
|
$window._gaq.push(['_trackPageview', currentPageId]);
|
||||||
loadDisqus(currentPageId);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** stores a cookie that is used by apache to decide which manifest ot send */
|
/** 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
|
||||||
return namespace;
|
return namespace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function loadDisqus(currentPageId) {
|
|
||||||
// http://docs.disqus.com/help/2/
|
|
||||||
window.disqus_shortname = 'angularjs-next';
|
|
||||||
window.disqus_identifier = currentPageId;
|
|
||||||
window.disqus_url = 'http://docs.angularjs.org' + currentPageId;
|
|
||||||
|
|
||||||
if ($location.host() == 'localhost') {
|
|
||||||
return; // don't display disqus on localhost, comment this out if needed
|
|
||||||
//window.disqus_developer = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// http://docs.disqus.com/developers/universal/
|
|
||||||
(function() {
|
|
||||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
||||||
dsq.src = 'http://angularjs.disqus.com/embed.js';
|
|
||||||
(document.getElementsByTagName('head')[0] ||
|
|
||||||
document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
||||||
})();
|
|
||||||
|
|
||||||
angular.element(document.getElementById('disqus_thread')).html('');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue