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/' +}