-
Notifications
You must be signed in to change notification settings - Fork 44
Docstring markdown render overhaul (preserves markdown syntax), new features and bugfixes including no find_module AttributeError fix #85
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
Docstring markdown render overhaul (preserves markdown syntax), new features and bugfixes including no find_module AttributeError fix #85
Conversation
…module" AttributeError Caused by modules not correctly loaded into namespace from commit due to Issue ml-tooling#57. Modules now correctly loaded into namespace. Fixes AttributeError("'FileFinder' object has no attribute 'find_module'") (ml-tooling#69) Prioritized "find_spec" and falls back to "find_module" from loader if find_spec not available. Some whitespace removal.
Modify argument regex Fix Colon use in docstring in arguments blocks now formatted correctly. Change argument detection to last colon in line. Added support for "Reference" as a block header. Convert quote block to admonition blocks Added Github admonition quote block support. Added start line anchor to regex Changed "```" code snippet boundary detection from startswith to regex to prevent false positives. Rework docstring markdown render. Solves issue ml-tooling#80 Improved whitespace and newline rendering. Accepts more native markdown syntax without garbling render. Solves Issue ml-tooling#82 Enumerate the docstring to detect end of docstring to appropriately close literal blocks, doctest and code blocks Update literal blocks logic and format. Syntax is same as reStructured text
Add private_modules arg
…-tooling#72) Observed in python 3.8, constructor for dataclasses had different function signature
dbf49cc
to
fc350c8
Compare
@ltan10 Thanks for the update!! I will merge it as is but I need to apply some other fixes in the next few days to get the build/release pipeline working again. Btw. if you like, I can also make you a maintainer in this repo since - unfortunately - I don't have a lot of time for lazydocs. |
@lukasmasuch No worries, it has been a useful tool. And yeah happy to help as maintainer wherever i can. |
great to see this was fixed! 👍 could we get a new release? took me a while to find this |
What kind of change does this PR introduce?
Description:
mod_spec.loader.exec_module(mod)
Line was not appending to parent argument, but appended on own line due to incorrect parsing as an argument.
--private-modules
and--no-private-modules
. Defaults tono-private-modules
--toc
and--no-toc
. Defaults tono-toc
--url-line-prefix TEXT
, defaults to None: which is github method of #Lxxx__create_fn__
error (No support for dataclasses #72)Checklist: