Hide some members from the public docs. (#3080)

* Hide some members from the public docs.

See relevant issue: #3076.
Some methods need to be implemented to make the widget work but the user doesn't really care about them. For that matter, we can hide them from the public documentation.

* Use private handler to hide from docs.

Related comments: https://github.com/Textualize/textual/pull/3080#issuecomment-1671129733
This commit is contained in:
Rodrigo Girão Serrão
2023-08-15 16:53:14 +01:00
committed by GitHub
parent 54ba3578a6
commit fbe1c416a4
3 changed files with 14 additions and 1 deletions

View File

@@ -78,6 +78,15 @@ plugins:
- "!^_"
- "^__init__$"
- "!^can_replace$"
# Hide some methods that Widget subclasses implement but that we don't want
# to be shown in the docs.
# This is then overridden in widget.md so that it shows in the base class.
- "!^compose$"
- "!^render$"
- "!^render_line$"
- "!^render_lines$"
- "!^get_content_width$"
- "!^get_content_height$"
watch:
- mkdocs-common.yml
- mkdocs-nav.yml