You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docstring markdown render overhaul (preserves markdown syntax), new features and bugfixes including no find_module AttributeError fix (#85)
* Revert workaround as sync-label bug was fixed in labeler-v5.0.0
* Updated missing documentation for mdx support
* Fixes functions not rendered during markdown generation and no "find_module" AttributeError
Caused by modules not correctly loaded into namespace from commit due to Issue #57.
Modules now correctly loaded into namespace.
Fixes AttributeError("'FileFinder' object has no attribute 'find_module'") (#69)
Prioritized "find_spec" and falls back to "find_module" from loader if find_spec not available.
Some whitespace removal.
* Overhauled docstring render and added Github flavour admonition support
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 #80
Improved whitespace and newline rendering.
Accepts more native markdown syntax without garbling render.
Solves Issue #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
* Render class __init__ method as constructor using class name
* Support including private modules with, aka files with "_" prefix.
Add private_modules arg
* Add table of contents feature to module file
* Fixed incorrect and unsafe src href link
* Added feature for user override of url line anchor notation (#74)
* Forced generated markdown file to be platform independent
* Crude workaround for AttributeError, no attribute "__create_fn__" (#72)
Observed in python 3.8, constructor for dataclasses had different function signature
* Added rendering support for enum, dataclass, and exception
* Updated API document example and bump version to 0.6.0
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -171,11 +171,15 @@ lazydocs [OPTIONS] PATHS...
171
171
172
172
* `--output-path TEXT`: The output path for the creation of the markdown files. Set this to `stdout` to print all markdown to stdout. [default: ./docs/]
173
173
* `--src-base-url TEXT`: The base repo link used as prefix for all source links. Should also include the branch name.
174
+
* `--url-line-prefix TEXT`: Line prefix for git repository line url anchors #{prefix}line. If None provided, defaults to Github style notation.
174
175
* `--overview-file TEXT`: Filename of overview file. If not provided, no API overview file will be generated.
175
176
* `--remove-package-prefix / --no-remove-package-prefix`: If `True`, the package prefix will be removed from all functions and methods. [default: True]
176
177
* `--ignored-modules TEXT`: A list of modules that should be ignored. [default: ]
177
178
* `--watermark / --no-watermark`: If `True`, add a watermark with a timestamp to bottom of the markdown files. [default: True]
178
179
* `--validate / --no-validate`: If `True`, validate the docstrings via pydocstyle. Requires pydocstyle to be installed. [default: False]
180
+
* `--output-format TEXT`: The output format for the creation of the markdown files. This may be 'md' or 'mdx'. Defaults to md.
181
+
* `--private-modules / --no-private-modules`: If `True`, includes modules with "_" prefix. [default: False]
182
+
* `--toc / --no-toc`: If `True`, includes table of contents in generated module markdown files. [default: False]
179
183
* `--install-completion`: Install completion for the current shell.
180
184
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
0 commit comments