Skip to content

Commit a4f734d

Browse files
committed
Add redirect from RTD domain
Signed-off-by: George Melikov <mail@gmelikov.ru>
1 parent 1aea28c commit a4f734d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/_static/js/redirect.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if (location.host == 'openzfs.readthedocs.io') {
2+
window.location.replace("https://openzfs.github.io");
3+
}

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ def setup(app):
129129
'github_version': 'master/docs/'
130130
}
131131

132+
html_js_files = [
133+
'js/redirect.js',
134+
]
135+
132136
# Custom sidebar templates, must be a dictionary that maps document names
133137
# to template names.
134138
#

0 commit comments

Comments
 (0)