Copy button added to code block in documentation#98
Copy button added to code block in documentation#98petereon merged 2 commits intopetereon:masterfrom
Conversation
|
Thank you very much for a contribution, it looks very good. However, last time I've tried to build the docs it wasn't able to build properly in the CI. The tool that's used to build the docs, |
|
Thanks for responding so promptly. May I ask, what was the initial reason to utilise
How can we then merge this change into the project if the CI is building it properly? |
|
Thanks for responding so promptly. May I ask, why we have
As the automatic merging is not working, what can I do to integrate the change into the project? |
|
Apologies for brevity and lack of structure, I am only available from the phone atm. I might be remembering this incorrectly but I believe I am more than happy to look into alternatives soon. As for the merging, automatic merging is not enabled for this repo, there is no issue merging these changes outside of the fact documentation doesn't currently build on release. |
|
Thanks, I am going to merge these changes and I'll work on dealing with the documentation build issue. |
In the existing documentation, we don't have any option to copy the example code. We have to manually select and copy it.
Material for MkDocs provides an easy way to integrate this feature. So, I have added that to our
mkdocs.yml. This allows the users to copy the sample code easily and test it in their local system.Also, in future, when we add more examples, the users will be able to take advantage of the simple copy button.
NOTE:
As I am facing an issue with testing the code (#97), this pull request is not tested as instructed in the development section. However, as it is a very minor change to the yml file of the documentation (which doesn't affect the code), I believe we can skip the testing for this one.