Skip to content

Meta, Docs: Reactive attributes that are assigned to inside __init__ need to be documented inside __init__ #1572

Closed
@davep

Description

@davep

[Note that the subject of this issue has been modified to reflect the conclusion of this issue]

This is a bit of a meta issue that affects how the Textual docs are generated. I'm creating it as a fresh issue in our own repo as it's not obvious to me at the moment what the cause of the problem is, and I also can't recreate it in isolation right now.

This initially stems from #1564, where when I created #1570 to add docstrings for TITLE, title, SUB_TITLE and sub_title, only the upper-cased versions of those class attributes appear in the docs. I created this repo to try and isolation the problem, and see what part of the documentation pipeline might be responsible, but the result there is fine:

Screenshot 2023-01-16 at 08 19 38

So.. hence this issue. I'll track what I find here and if I find that some other tool is responsible (rather than it being a configuration issue for our docs, for example) I'll then go on to raise an issue there.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions