Repository navigation
DOC improve reference API rendering - #1019
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1019 +/- ##
==========================================
+ Coverage 76.37% 76.85% +0.47%
==========================================
Files 84 89 +5
Lines 6507 6550 +43
==========================================
+ Hits 4970 5034 +64
+ Misses 1537 1516 -21
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Added a few things:
|
|
Can we close the draft #964 then? |
|
Yes, just did that! |
famura
left a comment
There was a problem hiding this comment.
Your changes made the docs far more readable
|
|
||
| ::: sbi.inference.posteriors.direct_posterior.DirectPosterior | ||
| selection: | ||
| filters: [ "!^_", "^__", "!^__class__" ] |
There was a problem hiding this comment.
I have a question on these filters. Do they work for main page as well as for the table of contents (right side)? In other words? is it possible to filter different things for them?
There was a problem hiding this comment.
I don't think this works to have different navigation on the right side as I think this is mostly decided based on the headers part and not based on mkdocstrings extension which is the one responsible for generating this part.
But I am pretty sure there are some options to tweak the the navigation bar in mkdocs and to filter some of the headers in the TOC.
There was a problem hiding this comment.
I see. Can you explain to my why the init fcns are displayed in the doc in the last snapshot picture (2 days ago) but not in the one before that? (search for "API rendering after change:")?
There was a problem hiding this comment.
because pedro changed the heading levels.
basically the nav shows all headerd above level 3, my proposal was with class and func as header 3 (and thus methods as header 4) while now it is header 2.
There was a problem hiding this comment.
I see, so the lower heading_level is, the more (less important) things are displayed
|
The PR is green, let me know if anything more is required :) |
|
Hi, sorry for bothering you guys (@janfb and @michaeldeistler) but what is the current politics for dealing with PRs in On a related topic, someone will have to do the |
michaeldeistler
left a comment
There was a problem hiding this comment.
For PRs which do not make any fundamental changes to the core of the codebase (like this one) I am fine if you review amongst yourselves and merge, especially if one of us has already had a look before.
thanks for bringing this up. I agree with @michaeldeistler but I think we should find a general solution to this. At the moment, everyone in team Regarding the docs, I can do that. |
I'd be interested on how to do that. Last time I checked, it was not straight forward. This might be a good point to start |

API rendering before change:

API rendering after change:

Also make
DensityEstimatoran abstract class (failure on instanciation if a abstract method is missing) and removed__init__andcheck_condition_shapewhich are not part of the public API.The description of the class is now included in the reference API page.