Fix a broken link in the documentation guide

The link in the doc[1] is not rendering properly,
because the method `textual.app.App.compose`
is ignored in the doc in the filter[2]. This commit
overrides the filter in the app.md file, generating
the doc for the "protocol" method and fixing the
link rendering in the guide.

[1]: https://textual.textualize.io/guide/app/#composing
[2]: textual/mkdocs-common.yml

Fix #3141
This commit is contained in:
Joe H. Rahme
2023-10-04 23:24:09 +02:00
parent 6d79e7782d
commit 4f67432b9f
2 changed files with 6 additions and 1 deletions

View File

@@ -1 +1,5 @@
::: textual.app
options:
filters:
- "!^_"
- "^__init__$"

View File

@@ -82,7 +82,8 @@ plugins:
- "!^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.
# This is then overridden in widget.md and app.md so that it shows in the
# base class.
- "!^compose$"
- "!^render$"
- "!^render_line$"