Comments (2)
Hello @maeddlae, thanks for submitting this issue! autodocsumm uses the flags provided to autodoc. Hence, it generates an entry in the table for each attribute that is documented by autodoc.
By default, autodoc does not document inherited members. Therefore, if you want to include them, you have to include the :inherited-members:
flag for the corresponding directive (see the autodoc docs)
To be safe, I added tests for it for autodocsumm in 23c30e4 and the inheritance is working.
The objective of autodocsumm is to create a table for the attributes that are documented in detail by autodoc. Do you think it would be helpful to allow the documentation of more than that?
from autodocsumm.
My bad, you are right. I just forgot to redefine the base class attribute in sub class in order to make it appear. This code is now summarized as it should (except of #8):
class Example():
"""
class documentation
"""
class_variable = 12 #: This is a classvariable
def __init__(self):
"""
constructor doc
"""
self.instance_variable = 34 #: This is an instance variable
class Inherits(Example):
"""
class documentation
"""
another_class_variable = 12 #: This is another classvariable
class_variable = Example.class_variable #: This is a classvariable from base class
def __init__(self):
"""
constructor doc
"""
self.another_instance_variable = 34 #: This is another instance variable
self.instance_variable = self.instance_variable #: This is an instance variable from base class
from autodocsumm.
Related Issues (20)
- 0.2.4: problematic dependencies definition HOT 3
- get_documenters is deprecated in Sphinx 5
- 0.2.5: sphinx warnings HOT 2
- 0.2.5: pytest warnings HOT 2
- Type annotations are not rendered properly HOT 4
- Missing upper bound on sphinx version for `autodocsumm==2.2.x` HOT 1
- No links to items in summary tables when using __init__.py imports HOT 5
- Some way to put documentation on separate pages like sphinx.ext.autosummary HOT 8
- Reference target not found in specific cases HOT 6
- Alias Expands Nested Class Documentation HOT 1
- 0.2.8: sphinx is failing and some refferences warnings HOT 2
- 0.2.8: pytest warnings HOT 1
- Remove attributes for enums
- Sphinx 5 support
- Estimated date for 0.2.9 release? HOT 3
- [FEATURE] Explicit summary directive alignment HOT 6
- Sphinx `ObjectMember`-related deprecations
- Sorting sections in the summary HOT 5
- Possible dependency mismatch between Conda and PyPI packages
- Surprising effect on attribute documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autodocsumm.