Skip to content

Commit

Permalink
docs(disqus): completely remove disqus from documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Apr 11, 2018
1 parent 0a32bce commit 344d1f5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 50 deletions.
1 change: 0 additions & 1 deletion conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"outputSourceFiles" : true
},
"applicationName": "Node.js MongoDB Driver API",
"disqus": true,
"googleAnalytics": "UA-29229787-1",
"openGraph": {
"title": "",
Expand Down
16 changes: 1 addition & 15 deletions docs/jsdoc-template/static/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,4 @@ $(function () {

$(window).on('resize', _onResize);
_onResize();

// disqus code
if (config.disqus) {
$(window).on('load', function () {
var disqus_shortname = config.disqus; // required: replace example with your forum shortname
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
document.getElementsByTagName('BODY')[0].appendChild(s);
});
}
});
});
19 changes: 0 additions & 19 deletions docs/jsdoc-template/tmpl/layout.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,6 @@
<h1 class="page-title" data-filename="<?js= filename ?>"><?js= title ?></h1>
<?js= content ?>

<?js if (env.conf.templates.disqus) { ?>
<!-- disqus code -->
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'nodejsmongodbdriver'; // required: replace example with your forum shortname

/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
<!-- // disqus code -->
<?js } ?>

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc <?js= env.version.number ?></a> on <?js= (new Date()) ?>
</footer>
Expand Down
15 changes: 0 additions & 15 deletions docs/reference/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,6 @@
</div>
{{ end }}

<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'nodejsmongodbdriver'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
<!-- // disqus code -->

</div>
{{ partial "rightColumn.html" . }}
</div>
Expand Down

0 comments on commit 344d1f5

Please sign in to comment.