-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage question: Automatic generation of one page per member #295
Comments
I thought this was possible by using the package's base module as the key: python_apigen_modules = {
"my_pkg": "my_pkg_api/",
} Although, sub-modules/sub-packages that don't get imported by the package's base module would need their own entry in the config: python_apigen_modules = {
"my_pkg": "my_pkg_api/",
"my_pkg.orphaned_module": "my_pkg_api/orphaned_module.",
} I'm not aware of any plan to enhance the
The "tables for members" bit makes this sound like you want the |
First of all, thanks for your quick reply, your suggestions, and taking time to reply to my question. If possible I'd like to not rely on something that needs to be maintained manually in order for the documentation to track or reflect the changes in the source tree, except for a renaming or move of the top level package.
I have to admit though, that I am a bit confused/overwhelmed with all the different tools, directives, etc. that can be used to generate the documentation, e.g. autosummary, autodoc, apigen,etc. And I have no clue which ones should/can be used in conjunction with For example I'd like to understand more about the interaction of the I might just have overlooked something obvious in the documentation. Any pointers are more than welcome. Thanks a lot. |
I think There are others like Personally, I prefer to use As for adding intuition to For a deeper understanding of the python-apigen inner workings, you can explore the source code. Pay attention to any doc strings provided. Otherwise, jbms (the graph TB
autodoc --> autosummary
autodoc --> python-apigen
autosummary -.-> python-apigen
|
First of all thanks a lot for this great theme for sphinx documentations. The documentation generated with this theme looks amazing and is very readable.
Apologies if I am posting a question, that has already been answered elsewhere.
I am using the
directive to get a complete documentation for the package when using
sphinx-build
. I am usingconf.py
from thesphinx-immaterial/docs
folder as a template.With
autodoc_default_options = {"members": True, ...}
the documentation for classes and functions appears on the same page as the one containing the summary table for the module.Is it possible to instead put the documentation for each class/function on a separate page, cf. sphinx-doc/sphinx#7912, which led me to
spinx-immaterial
in the first place.Now I understand that there is the python-apigen-group directive, that supposedly achieves exactly this:
What's unclear to me is how I can ensure that
python-apigen-group
is applied for all groups (classes, functions, attributes, etc.) for each module automatically, i.e. I wantsphinx-build
to "automagically" generate .rst files for top-level package, sub-packages, modules, and module members where the package, sub-package, and module files contain autosummary tables for members. The table entry for each member then links to the page for the corresponding member.Thanks a lot for your time and for developing and maintaining this great theme for sphinx.
The text was updated successfully, but these errors were encountered: