Skip to content

Add linting and tests for docstring and documentation code #184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

PicoCentauri
Copy link
Collaborator

@PicoCentauri PicoCentauri commented Apr 11, 2023

As given in the title code example blocks are now linted with blackdoc and examples with outputs are tested with doctest. I also added a toggle button for easier copying of examples with the help of sphinx-toggleprompt.

Many of the examples of the docs had some minor issues which I corrected. Let me know if I did anything wrong.


📚 Documentation preview 📚: https://scikit-matter--184.org.readthedocs.build/en/184/

@PicoCentauri PicoCentauri force-pushed the blackdoc branch 3 times, most recently from 26f89e7 to 630083d Compare April 11, 2023 14:17
@PicoCentauri PicoCentauri changed the title Added linting and tests for examples Add linting and tests for docstring and documentation code Apr 12, 2023
@@ -1,3 +1,4 @@
sphinx
sphinx_rtd_theme
sphinx-gallery
sphinx-toggleprompt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Copy link
Collaborator

@rosecers rosecers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are annoying to read but necessary changes! Thanks!

@PicoCentauri PicoCentauri merged commit 93eb119 into main Apr 13, 2023
@PicoCentauri PicoCentauri deleted the blackdoc branch April 13, 2023 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants