-
Notifications
You must be signed in to change notification settings - Fork 442
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
Expose DataSet
docs
#5702
base: main
Are you sure you want to change the base?
Expose DataSet
docs
#5702
Conversation
github-actions preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5702 +/- ##
=======================================
Coverage 96.54% 96.54%
=======================================
Files 137 137
Lines 23327 23327
=======================================
Hits 22521 22521
Misses 806 806 |
This is the method that the documentation used previously, it used all inherited methods in all DataSets, but it led to very long build times and messy documentation. For example if you searched for I don't think this idea is possible in Sphinx, but maybe there is a great plugin. I'd prefer that the methods are all associated with their own class, but inherited methods were linked in sub classes. Or a list of the inheritance to follow... |
What about exposing 621e6b0 tries to add this |
github-actions preview |
Not sure what the solution here is, but another suggestion: https://www.sphinx-doc.org/en/master/usage/extensions/inheritance.html Edit: A simpler suggestion is |
github-actions preview |
Marked as draft since it's a bit of a trial and error |
Looks like this worked, many methods listed now This change impacts pretty much all docs though, not just |
Also, build time was 1h4m, doesn't seem any longer than usual, so not really any impact there with this change |
We could try using this, and also give the inherited methods their own sections. Something like:
|
github-actions preview |
Example from Deployed on https://65dff7e140f26caa45a20e47--meek-duckanoo-d2f5ec.netlify.app This is helpful, but will also show inheritance from undocumented classes and vtk classes, and I think only shows immediate parents (e.g. may not show I think maybe just separating class-specific methods and properties from inherited ones, e.g. with different sections headings, may be good enough. |
Possiblly fix #5694
The method of adding the class to
class.rst
worked previously as part of #5029 to expose the abstract docs ofProp3D
so it could be referenced for bothActor
andAxesActor
child classes.Let's see what this does for
DataSet
.