-
Notifications
You must be signed in to change notification settings - Fork 786
Description
Expected behavior
All the code in our docstring examples should be self-contained and run on its own. They should:
- import the correct modules
- demonstrate the desired behaviour
- run correctly
Actual behavior
A lot of the examples in our docs do not run correctly as they are missing imports, steps, some code logic or all of the above.
By my initial count there are ~350 failing examples and only a handful that work.
We would love this to be fixed! This is a great opportunity for community members and budding open source contributors to get involved as there are lots of docstrings to tackle.
Luckily there is a way to test which doc examples are failing programatically!
- Navigate to the
/package/doc/sphinxdirectory - run
make doctest
This will indicate which doc examples are failing.
If you want to tackle multiple doc changes at once editing your makefile command on L130 to include --keep-going will allow you to see the full set of errors.
eg
#L130
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest --keep-going
Please contribute your changes in a new PR!
If you are new to making PRs and github in general, try our handy contributing guide! Feel free to ping our team if unsure. :)