sangramga commented on issue #24456: [SPARK-27557][DOC] Add copy button to Python API docs for easier copying of code-blocks URL: https://github.com/apache/spark/pull/24456#issuecomment-486600616 @HyukjinKwon there seems to be no default configuration in Sphinx - Nature theme, also above seems to be the simplest way. I referred to Sphinx issues: [https://github.com/rtfd/sphinx_rtd_theme/issues/167](https://github.com/rtfd/sphinx_rtd_theme/issues/167) It's also most adopted in python community - refer to both scipy and scikit-learn documentation [scipy-copybutton.js](https://github.com/scipy-lectures/scipy-lectures.github.com/blob/master/_static/copybutton.js) [sklearn-copybutton.js](https://github.com/scikit-learn/scikit-learn/blob/master/doc/themes/scikit-learn/static/js/copybutton.js)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
