-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Describe the bug:
I have a project with a python module.
When I execute lazydocs --overview-file="Overview.md" .\mymodule
I get errors when I reference files within the same package:
Failed to generate docs for module XXX: ImportError('attempted relative import with no known parent package')
Then I tried to simply call lazydocs --overview-file="Overview.md" .
, which works, but here I get the output:
Generating docs for python package at: .
Writing mymodule.XXX.md.
Writing mymodule.YYY.md.
usage: lazydocs [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: lazydocs --help [cmd1 cmd2 ...]
or: lazydocs --help-commands
or: lazydocs cmd --help
error: option --overview-file not recognized
This happens ONLY if there is a file README.md
in the root directory. I renamed it to README2.md
and everything worked fine.
Expected behaviour:
Markdown file outside the ./docs folder should be ignored.
Steps to reproduce the issue:
Call lazydocs --overview-file="xxx.md" .
in a folder where a file named README.md
exists.
Technical details:
- Windows 11
- Python 3.11.9
- lazydocs 0.4.8
Possible Fix:
Additional context: