Skip to content

Commit

Permalink
Workaround for st3 docs (#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
predragnikolic authored Oct 22, 2023
1 parent f8c21c4 commit 661ff53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions docs/src/js/redirect.js
Original file line number Diff line number Diff line change
@@ -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/'
}

0 comments on commit 661ff53

Please sign in to comment.