From c44332251f5c61af57f93a191e2b6e3d3b21dfdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20P=C3=A9rez?= <68171111+walpox@users.noreply.github.com> Date: Thu, 16 Jan 2025 15:55:07 +0100 Subject: [PATCH] feat: Set EXTERNAL_DOCS setting for OpenAPI spec (#13430) --- weblate/api/spectacular.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weblate/api/spectacular.py b/weblate/api/spectacular.py index 512eb4d8ec0d..957c4c16c629 100644 --- a/weblate/api/spectacular.py +++ b/weblate/api/spectacular.py @@ -65,6 +65,10 @@ def get_spectacular_settings( "drf_spectacular.hooks.postprocess_schema_enums", "weblate.api.docs.add_middleware_headers", ], + "EXTERNAL_DOCS": { + "url": "https://docs.weblate.org/en/latest/", + "description": "Official Weblate documentation", + }, "TAGS": [ { "name": "root",