From 661ff53aa82d9b8fb8a21ca53dd8ca1dbff59508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B?= Date: Sun, 22 Oct 2023 22:39:20 +0200 Subject: [PATCH] Workaround for st3 docs (#2314) --- docs/mkdocs.yml | 3 +++ docs/src/js/redirect.js | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 docs/src/js/redirect.js diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index d45db4f56..3c963200f 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -25,6 +25,9 @@ theme: extra_css: - stylesheets/extra.css +extra_javascript: + - js/redirect.js + markdown_extensions: # tabs for ST4 and ST3 content - pymdownx.tabbed diff --git a/docs/src/js/redirect.js b/docs/src/js/redirect.js new file mode 100644 index 000000000..90a59b54a --- /dev/null +++ b/docs/src/js/redirect.js @@ -0,0 +1,4 @@ +// Fore info see issue: https://github.com/sublimelsp/LSP/issues/2284#issuecomment-1606014439 +if (window.location.toString() === "https://lsp.readthedocs.io/en/latest/") { + window.location.href = 'https://lsp.sublimetext.io/' +}