-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve our reference docs #566
Comments
Once a month, maybe by scheduled cron job, run |
Just an FYI for future docs, you may want to check out sphinx-gallery for examples: https://sphinx-gallery.github.io/index.html |
Assigned myself, but anyone feel free to jump in. @ me if you start one so I can mark it, or if you get one completed and need it marked as complete. So, I took step one and made a list of the current drivers in the bundle. Then, went through each one to see if any were already completed (knew it would be a short list). At any rate, here's the task list: DRIVERS
HELPERS
|
README Badges: some have |
@sommersoft I remove them in favor of the Discord badge when I come across them. |
Realized a small(?) problem. By getting image files in the repos to pass Sphinx builds ( Here is what I have so far
I don't remember any other libraries having images that I've done so far, but I'll check. (update: no others effected before CircuitPlayground) Since we're using the |
Should we close this, now? |
We still have some updates to make. Here's the Adabot report: Missing license. -
Not in bundle. -
Missing CODE_OF_CONDUCT.md -
ReadTheDocs latest build has warnings and/or errors -
README missing Travis badge -
Autodoc failed on ReadTheDocs. (Likely need to automock an import.) -
Missing .py files in examples folder -
Sphinx missing files -
README image missing alt text -
|
Great work folks. Moving things forward well. |
As you can see by its inclusion in almost all categories, LSM303 & FocalTouch need the Full Monty. They were added after I compiled the task list, and I didn't go back and see what was added during the 2 week docstravaganzo. Preliminary "check the checker" results for the autodoc failures: all of those RTD builds are over a month old, and aren't for the new doc structure. Also, CharLCD is still giving a 404... I'm working on a full scale report; may take a couple days. |
Brilliant, thank you! |
Are there doc builds that I need to poke? Its possible the webhooks are setup correct and so they are out of date and therefore look like they are failing. |
@tannewt CharLCD has been out of commission for some time... It appears that most, if not all, of the ones in the 'autodoc failed' section are older builds (1+ month). I will get a full list together shortly. |
I checked and fixed all the build issues except APDS9960 which is failing due to a data descriptor getting passed a mock object I think. |
FeatherWing
For the APDS9960, do you want me to remove the
I think these two should be good now after the new builds. I checked their RTDs, and all seems well. Just don't want to mark them complete since I didn't do anything with them.. |
I noticed the FeatherWing issue. If we can update Adabot to check subfolders, that's great, but I think in the case of FeatherWing, it might still be a good idea to have a readme.py in that folder anyway since it's an unusual library. Something explaining that each folder contains examples to go along with the associated FeatherWing. We'll need to test it if we remove Thanks for the update! |
We can updated Adabot to be ok with subfolders. I think a I'll take a quick look now at APDS9960 and see if I can get a better mock function in there. I think another library may have done it already. |
Here is a fix for APDS9960: adafruit/Adafruit_CircuitPython_APDS9960#8 We can use the same technique to remove any MockObjects we see references in the auto-gened docs. Great work everyone! |
I agree on both accounts. A |
I believe RTD would render the .md unless we explicitly ignore it.
…On Mon, Mar 19, 2018 at 8:46 AM sommersoft ***@***.***> wrote:
I agree on both accounts. A README would be useful in the FeatherWing
examples folder, but a .py might get confusing. Would RTD render a .md
(lazy/at work; haven't looked it up myself)? If not, we could setup a
toctree for the examples with an examples.rst, or sub-tree it in the
index.rst.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#566 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADNqcrCIRhxgtJTaus9xyRjR5LY0D0Eks5tf9LFgaJpZM4RzRbj>
.
|
I believe @tannewt is correct. If you do not for some reason see it, double check that it is included in any toctree (local or master) and that recommonmark is installed. |
Isn't this done? |
@tannewt I think the only thing left from the lists above, is taking care of the FeatherWing example "readme". Other than that, guess it depends on what adabot is still complaining about... |
I don't think we'll get to zero, we'll just hover around it. Thanks for getting us close! I'll close this and we can do more Adabot driven stuff in new issues as needed. |
ReadTheDocs is awesome for hosting reference docs based on GitHub code. However, we've been bad about ensuring its set up and formatted consistently. Ideally, they would all be like this.
We should do a pass over all of the drivers to ensure that they do these things:
docs
folder with the conf.py moved there. (change sys.path at top of conf.py from'.'
to'..'
) (Adabot verified.)docs/index.rst
file which includes the README.rst contents and has a table of contents. (Also remove API reference from old README.rst and update conf.py to point to itmaster_doc = 'index'
.) (Adabot verified.)examples.rst
file which includes all of the example code with titles and brief explanations of what they do. (Adabot verified.).travis.yml
which will build the docs using sphinx for every PR. Any warnings will cause the Travis run to fail. (Adabot verified.)docs/_static
to remove a static warning.micropython
andbusio
, inconf.py
..env
andCODE_OF_CONDUCT.md
from docs inconf.py
.sphinx.ext.todo
to extensions in conf.py and these settings.docs/_static/favicon.ico
and update conf.py to point to it.readthedocs.yml
to.readthedocs.yml
so its hidden on some systems and listed near.travis.yml
I'll follow up with more info below.
If you change example files, please check the Learn guide to see if it's linked
The text was updated successfully, but these errors were encountered: