-
Notifications
You must be signed in to change notification settings - Fork 51
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
Wrap signatures onto several lines when function len is over a treshold #831
base: master
Are you sure you want to change the base?
Commits on Oct 25, 2024
-
Introduce ParsedDocstring.with_linker()/.with_tag()/.combine(). The w…
…ill help to construct one parsed docstring from several parts.
Configuration menu - View commit details
-
Copy full SHA for dea121c - Browse repository at this point
Copy the full SHA dea121cView commit details -
Colorize the signature ourself.
We mimic the Signature.__str__ method for the implementation but instead of returning a str we return a ParsedDocstring, which is far more convenient. This change fixes #801: - Parameters html are divided into .sig-param spans. - When the function is long enought an extra CSS class .expand-signature is added to the parent function-signature. - The first parameter 'cls' or 'self' of (class) methods is marked with the 'undocumented' CSS class, this way it's clearly not part of the API. - Add some CSS to expand the signature of long functions when they have the focus only.
Configuration menu - View commit details
-
Copy full SHA for 95f8f3d - Browse repository at this point
Copy the full SHA 95f8f3dView commit details -
Some more adjustments. Make the self param always inline. Try to opti…
…miza a little the _colorize_signature() function.
Configuration menu - View commit details
-
Copy full SHA for 0b7c76e - Browse repository at this point
Copy the full SHA 0b7c76eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 188c410 - Browse repository at this point
Copy the full SHA 188c410View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83d47f7 - Browse repository at this point
Copy the full SHA 83d47f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab1cdd1 - Browse repository at this point
Copy the full SHA ab1cdd1View commit details -
Simplify with_linker() and with_tag(). These do not create new parsed…
… docstrings they only update the local to_stan() method dynamically.
Configuration menu - View commit details
-
Copy full SHA for eca5ced - Browse repository at this point
Copy the full SHA eca5cedView commit details -
Revert "Simplify with_linker() and with_tag(). These do not create ne…
…w parsed docstrings they only update the local to_stan() method dynamically." This reverts commit eca5ced.
Configuration menu - View commit details
-
Copy full SHA for ff4269f - Browse repository at this point
Copy the full SHA ff4269fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 914e01c - Browse repository at this point
Copy the full SHA 914e01cView commit details -
Configuration menu - View commit details
-
Copy full SHA for cdef965 - Browse repository at this point
Copy the full SHA cdef965View commit details
Commits on Oct 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2033d65 - Browse repository at this point
Copy the full SHA 2033d65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5396396 - Browse repository at this point
Copy the full SHA 5396396View commit details -
Configuration menu - View commit details
-
Copy full SHA for 282250b - Browse repository at this point
Copy the full SHA 282250bView commit details
Commits on Oct 29, 2024
-
Better implementation of with_linker and with_tag inside a single sub…
…class. Introduce ParsedDocstring.to_text().
Configuration menu - View commit details
-
Copy full SHA for 6a4de9f - Browse repository at this point
Copy the full SHA 6a4de9fView commit details -
First attempt to implement relatively smart Expand/Collapse signature…
…s when overloads are overwhelming... This probably requires some more tweaks but it's still better than showing everything at once.
Configuration menu - View commit details
-
Copy full SHA for c0f93dc - Browse repository at this point
Copy the full SHA c0f93dcView commit details
Commits on Nov 14, 2024
-
Simplify things: don't try to wrap overload signatures. Sphinx doesn'…
…t try to do such things either...
Configuration menu - View commit details
-
Copy full SHA for da89d7c - Browse repository at this point
Copy the full SHA da89d7cView commit details -
Get rid of the ParsedStanOnly by using parsed_text_with_css instead.
Fix some cyclic imports issue as a drive-by change: model.Documentable was uncessarly runtime imported inside restructuredtext and epydoc parsers.
Configuration menu - View commit details
-
Copy full SHA for 141b211 - Browse repository at this point
Copy the full SHA 141b211View commit details -
Configuration menu - View commit details
-
Copy full SHA for a46a3a3 - Browse repository at this point
Copy the full SHA a46a3a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40ac0a6 - Browse repository at this point
Copy the full SHA 40ac0a6View commit details -
Fix various bugs in the implementation.
also remove the summary caching on the parsed docstring side, this is unnecessary because it's already cahed in the documentable.
Configuration menu - View commit details
-
Copy full SHA for 4172485 - Browse repository at this point
Copy the full SHA 4172485View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7103ce5 - Browse repository at this point
Copy the full SHA 7103ce5View commit details -
Fix format_undocumented_summary returning a tuple of strings instead …
…of a string. A some annotation.
Configuration menu - View commit details
-
Copy full SHA for eae961a - Browse repository at this point
Copy the full SHA eae961aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c6c6eb - Browse repository at this point
Copy the full SHA 7c6c6ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19400ff - Browse repository at this point
Copy the full SHA 19400ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3ebbdf - Browse repository at this point
Copy the full SHA a3ebbdfView commit details
Commits on Nov 15, 2024
-
Improve a little bit the rendering of parameter tables that uses very…
… long annotations.
Configuration menu - View commit details
-
Copy full SHA for cd257eb - Browse repository at this point
Copy the full SHA cd257ebView commit details
Commits on Nov 16, 2024
-
Get rid of the AnnotationLinker - drop the verbose messages when an a…
…nnotation is ambiguous (pydoctor is not a checker). Get rid of ParsedDocstring.with_linker() this API did not make sens and was rather an anti-pattern. Replace that with a new parameter of colorize_pyval(is_annotation: bool). obj_reference nodes can now be created with the attribute 'is_annotation' in which case they will be resolved a little bit differently.
Configuration menu - View commit details
-
Copy full SHA for 907792a - Browse repository at this point
Copy the full SHA 907792aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 977e5b5 - Browse repository at this point
Copy the full SHA 977e5b5View commit details
Commits on Nov 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 91edc51 - Browse repository at this point
Copy the full SHA 91edc51View commit details -
Merge branch '801-signature-spans' of github.com:twisted/pydoctor int…
…o 801-signature-spans
Configuration menu - View commit details
-
Copy full SHA for b504c21 - Browse repository at this point
Copy the full SHA b504c21View commit details
Commits on Nov 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 25b5e62 - Browse repository at this point
Copy the full SHA 25b5e62View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd2de92 - Browse repository at this point
Copy the full SHA bd2de92View commit details