-
-
Notifications
You must be signed in to change notification settings - Fork 443
Update layerlist.py docstring to stop doc build warnings #7660
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
Conversation
This PR checks if changing the heading level for events will stop the warning error about the LayerList for every CI run.
Cool, the docstring change removed the layer list warning. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7660 +/- ##
==========================================
- Coverage 92.88% 92.84% -0.04%
==========================================
Files 630 630
Lines 59075 59075
==========================================
- Hits 54869 54851 -18
- Misses 4206 4224 +18 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯 This is awesome! Thank you!!
@willingc cool! Why in the world does this work? |
I don't know with 100% certainty but I noticed in the numpy docstring formats that there were specific top-level categories. I decided to give it a shot to demote the events from a top level category to a second level category. So I believe that the parser only looks at the top level headings to see if they match and assumes any content below the top-level belongs as text to the top-level that precedes it. @TimMonko |
If you can document this at the numpydoc level I'm sure many folks would be very grateful. |
@melissawm Here? or at the numpy docstrings site? |
Here: numpy/numpydoc#202 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! Awesome!
I even triple checked the built docs to make sure! 😉
This is part of addressing napari/docs#596 |
Huh? My prediction would have been that Events would have been a sub-category of Parameters. Instead, it looks like Parameters and Events are siblings, then Notes is a level above: Why are Parameters and notes not on the same level? 🤔 tldr I was coming here to suggest that Events should be under Notes and not under Parameters, but now I don't know whether my suggestion makes sense. 😅 |
Nevermind - maybe that is what the generic section is about? I haven't tested it directly though. |
References and relevant issues
Trying ro reduce warnings in docs CI
Description
This PR checks if changing the heading level for events will stop the warning error about the LayerList for every CI run.