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
When I create the markdown file with this command: pydoc-markdown -I my-fancy-lib -m example > docs/example.md, i get a resulting example.md with the classes _Foo, Abc and Def.
How can I exclude classes of functions with a leading underscore?
When its currently not supported, would it make sense to add an option to include or exclude underlined objects?
How can I select the classes or functions which should be included? For example when I only want class Abc in the resulting example.md.
option to include or exclude objects from the module. For example -m example --include=Abc or -m example --exclude=_Foo --exclude=Def
From my example Bar is automaticly not included in example.md because there is no docstring. But maybe someone want add docstrings to function or classes in code for documentation, but want this class in the resulting markdown file.
This is my structure:
docs/
my-fancy-lib/
example.py
...
Here is my example file:
class_Foo:
""" This is Foo """def__init__(self) ->None:
""" here is foo init """passclassBar:
def__init__(self) ->None:
passclassAbc:
""" This is Abc """def__init__(self) ->None:
""" here is abc init """passclassDef:
""" This is Def """def__init__(self) ->None:
""" here is def init """pass
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I create the markdown file with this command:
pydoc-markdown -I my-fancy-lib -m example > docs/example.md
, i get a resulting example.md with the classes _Foo, Abc and Def.How can I exclude classes of functions with a leading underscore?
How can I select the classes or functions which should be included? For example when I only want class Abc in the resulting example.md.
-m example --include=Abc
or-m example --exclude=_Foo --exclude=Def
From my example Bar is automaticly not included in example.md because there is no docstring. But maybe someone want add docstrings to function or classes in code for documentation, but want this class in the resulting markdown file.
This is my structure:
Here is my example file:
Beta Was this translation helpful? Give feedback.
All reactions