Only link Python and Rich types when building full docs

It looks like mkdocstrings will fail out if it can't download the inv files.
Unless there's a setting where you can tell it "try, but if you can't grab
them just don't try and create links" the approach here seems reasonable and
has the same effect.

https://github.com/Textualize/textual/issues/2629#issuecomment-1566672594
for reference.
This commit is contained in:
Dave Pearson
2023-05-29 08:30:23 +01:00
parent 806a6663ad
commit d4eb0a0c20
2 changed files with 6 additions and 3 deletions

View File

@@ -67,9 +67,6 @@ plugins:
default_handler: python
handlers:
python:
import:
- https://docs.python.org/3/objects.inv
- https://rich.readthedocs.io/en/stable/objects.inv
options:
show_signature_annotations: false
separate_signature: true

View File

@@ -14,3 +14,9 @@ plugins:
- categories
- release
- tags
mkdocstrings:
handlers:
python:
import:
- https://docs.python.org/3/objects.inv
- https://rich.readthedocs.io/en/stable/objects.inv