Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up--all-submodules flag still respects __all__ #24
Comments
This comment has been minimized.
This comment has been minimized.
|
OK, I figured out that (as the name suggest) On a side note, it could be probably helpful to specify that packages needs to be installed before generating documentation. It probably goes without saying in most of the occasions, but knowing it in advance would have saved me a bit of time when testing the |
This comment has been minimized.
This comment has been minimized.
|
As you mentioned, the
I'm not sure I follow.
Do you want to submit a PR for this? I'm not sure I understand your concerns (how can you generate documentation for something that you don't have?), so it would probably be best if your worded it. :-) |
This comment has been minimized.
This comment has been minimized.
I agree that it goes over the current goal of
I'll open a new issue for this, perhaps with a better explanation and some examples :) |
This comment has been minimized.
This comment has been minimized.
|
I understand the use case, but I'm skeptical of adding more options/exceptions than there already are. You could do something like this: if os.getenv('DEV_INTERNAL') is None:
__all__ = ['my', 'public', 'interface']And use |
This comment has been minimized.
This comment has been minimized.
pzelnip
commented
Feb 22, 2015
|
The downside to that is that you're then modifying/cluttering the code, and you'd have to remember to do it on every module. Ideally it'd be nice to be able to have pdoc itself handle this (ie - rather than putting an env var check in client code, have a switch for pdoc where if given, it ignores the |
Railslide commentedJan 15, 2015
Running pdoc with the
--all-submodulesflag doesn't seem to have any effect on the generated documentation.Example: running
pdoc --html mymodule.py --all-submodulesagainst the following coderesults in only
MyPublicClassbeing included in the docs.