Replies: 1 comment
-
Have you looked at mkdocstrings by @pawamoy? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently working on documenting my Python package, and I have a question about documenting class attributes. For each of my classes, I have created a dataclass that holds all the class attributes throughout the class.
I want to include a table at the top of the documentation for each class that showcases these attributes along with their types, examples, descriptions, and whether they are required. Currently, I'm manually creating this table for each class, and it's proving to be time-consuming, hard to maintain, and error-prone. I'm looking for an alternative approach to streamline this process.
In essence, I'm seeking a solution that can automate the generation of a table like the one below:

If anyone has experience or insights into automating this process or using tools to achieve this kind of documentation generation, I'd greatly appreciate your guidance.
Please let me know if my explanation needs further clarification. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions