redirect alibaba.github.io/arthas to aliyun

This commit is contained in:
hengyunabc 2020-08-26 14:16:07 +08:00
parent 74c313ecaa
commit 3ce077300b
2 changed files with 12 additions and 0 deletions

View File

@ -26,6 +26,12 @@
</style>
</head>
<script>
if (window.location.href.startsWith("https://alibaba.github.io/arthas/")) {
window.location.href = "https://arthas.aliyun.com/doc/" + window.location.href.substr("https://alibaba.github.io/arthas/".length);
}
</script>
<body>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->

View File

@ -2,6 +2,12 @@
{% set sticky_navigation = True %}
{% set extra_css_files = ['_static/overrides.css'] %}
{% block extrahead %}
<script>
if (window.location.href.startsWith("https://alibaba.github.io/arthas/")) {
window.location.href = "https://arthas.aliyun.com/doc/" + window.location.href.substr("https://alibaba.github.io/arthas/".length);
}
</script>
<script src="{{ pathto('_static/center_page.js', 1) }}"></script>
<link rel="stylesheet" href="https://g.alicdn.com/code/lib/highlight.js/9.13.1/styles/github.min.css">
{{ super() }}