From d4eb0a0c20f125186ab3f286d5bd6535078b90e3 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Mon, 29 May 2023 08:30:23 +0100 Subject: [PATCH] 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. --- mkdocs-common.yml | 3 --- mkdocs-online.yml | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mkdocs-common.yml b/mkdocs-common.yml index 9be7ac129..0d59822f6 100644 --- a/mkdocs-common.yml +++ b/mkdocs-common.yml @@ -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 diff --git a/mkdocs-online.yml b/mkdocs-online.yml index 58aea3fc7..e4cf2db1d 100644 --- a/mkdocs-online.yml +++ b/mkdocs-online.yml @@ -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