bookdown / Bookdown.Bookdown

Core libraries for Bookdown generation.
http://bookdown.io
MIT License
81 stars 11 forks source link

Option to insert Disqus #43

Closed gaow closed 2 years ago

gaow commented 8 years ago

Is there a plan to allow for inserting Disqus section to HTML pages? A particular user case that motivates the request is to create via bookdown a lab notebook to organize daily research, where analysis procedures are published allowing for random comments be made by colleagues on the same page under the Disqus section.

Thank you!

pmjones commented 8 years ago

I had not thought of it, but that's a great idea. If you want to send a PR for it, that would be awesome; otherwise it will have to wait until someone has time.

sandrokeil commented 8 years ago

Good idea, but I see some problems. We have to create a new bookdown.json file config section disqus, which is not a problem. We should also support the other Disqus options.

But we need an unique id for every page on which the comments relies on. If the name of the page has changed, the id should be the same, otherwise the comments are lost. How does this work with multi books?

Feature request: Only load comments/js if you click on a button e.g. "discuss" and display number of comments somewhere.

pmjones commented 2 years ago

Closing this, as there has been no movement on it. Please re-open as needed, or (preferably) send a PR.