mirror of
https://github.com/elyby/docs.git
synced 2025-02-18 16:17:41 +05:30
Added redirect from old pages to new
This commit is contained in:
parent
b2451ffc9c
commit
8a16a1857e
8
source/api.html
Normal file
8
source/api.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0; URL=/ru/api.html" />
|
||||||
|
<script>
|
||||||
|
window.location.href = '/ru/api.html'
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
</html>
|
@ -13,7 +13,6 @@
|
|||||||
# All configuration values have a default; values that are commented out
|
# All configuration values have a default; values that are commented out
|
||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
import sphinx_rtd_theme
|
import sphinx_rtd_theme
|
||||||
import datetime
|
import datetime
|
||||||
@ -259,3 +258,20 @@ texinfo_documents = [
|
|||||||
|
|
||||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||||
#texinfo_no_detailmenu = False
|
#texinfo_no_detailmenu = False
|
||||||
|
|
||||||
|
redirect_files = ['api.html', 'minecraft-auth.html', 'oauth.html', 'skin-system.html']
|
||||||
|
|
||||||
|
from shutil import copyfile
|
||||||
|
|
||||||
|
def copy_legacy_redirects(app, _):
|
||||||
|
if app.builder.name != 'html':
|
||||||
|
return
|
||||||
|
|
||||||
|
for html_src_path in redirect_files:
|
||||||
|
target_path = os.path.join(app.outdir, html_src_path)
|
||||||
|
src_path = os.path.join(app.srcdir, html_src_path)
|
||||||
|
if os.path.isfile(src_path):
|
||||||
|
copyfile(src_path, target_path)
|
||||||
|
|
||||||
|
def setup(app):
|
||||||
|
app.connect('build-finished', copy_legacy_redirects)
|
||||||
|
8
source/minecraft-auth.html
Normal file
8
source/minecraft-auth.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0; URL=/ru/minecraft-auth.html" />
|
||||||
|
<script>
|
||||||
|
window.location.href = '/ru/minecraft-auth.html'
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
</html>
|
8
source/oauth.html
Normal file
8
source/oauth.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0; URL=/ru/oauth.html" />
|
||||||
|
<script>
|
||||||
|
window.location.href = '/ru/oauth.html'
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
</html>
|
8
source/skin-system.html
Normal file
8
source/skin-system.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0; URL=/ru/skins-system.html" />
|
||||||
|
<script>
|
||||||
|
window.location.href = '/ru/skins-system.html'
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user