-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fix missing api reference for Emitter
The docs were missing because of the ``__all__`` attribute in ``messages.py``. To get around this, craft a special purpose rst file to be used when documenting that module, explicitly asking autodoc to generate docs for Emitter and EmitterMode. Fixes #208
- Loading branch information
Showing
3 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. | ||
Note: This file replaces the one generated by apidoc at build-time because | ||
we want to use different settings - specifically, we want to spell out the | ||
members that we want to document (EmitterMode and Emitter), ignoring the | ||
``message`` module's ``__all__``. | ||
|
||
|
||
craft\_cli.messages module | ||
========================== | ||
|
||
.. automodule:: craft_cli.messages | ||
:members: Emitter, EmitterMode | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters