No project description provided
Project description
sphinx-expose-init-alias
Generate doc of exposed stuff in __init__.py as alias
What-Is-Wanted
We sometimes do "re-expose" in __init__.py
to improve experience of using our library.
Such as
# lib/a.py
def foo():
...
# lib/__init__.py
from .a import foo
But the foo
in lib/__init__.py
will only occur in docs when use sphinx.ext.autodoc
if we put it in the __all__
in lib/__init__.py
.
And wrose thing is that the content is just like a stuff defined in lib/__init__.py
, which is a bit confused and duplicated.
Usage
# docs/lib.rst
.. autoaliasmodule:: lib
:members:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx_expose_init_alias-0.1.1.tar.gz
.
File metadata
- Download URL: sphinx_expose_init_alias-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fb999cedde7441bcdd7a561a185adee1eef3e40fe480b2d6a456758f5bffee3 |
|
MD5 | 472cb6b8e883643fc200b35e54a3698d |
|
BLAKE2b-256 | d052838d71dddccf12c5f8471cf85ad232cb35584a558d851ae36df4ad667507 |
File details
Details for the file sphinx_expose_init_alias-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: sphinx_expose_init_alias-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 957a5e50eddae88adf895e2e3255a0f0b2b9a8301831edbb7b1958e1bede642b |
|
MD5 | a764daf2f9c93556aeb15790d3273350 |
|
BLAKE2b-256 | 730ce4d47501ac372268b116cde88b72d19c58a14e21a81559d2248c673e065f |