File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -40,30 +40,9 @@ def on_pre_build(config: Config) -> None:
40
40
"""
41
41
Before the build starts.
42
42
"""
43
- import mkdocs_redirects .plugin
44
-
45
43
add_changelog ()
46
44
add_mkdocs_run_deps ()
47
45
48
- # work around for very unfortunate bug in mkdocs-redirects:
49
- # https://github.com/mkdocs/mkdocs-redirects/issues/65
50
- mkdocs_redirects .plugin .HTML_TEMPLATE = """
51
- <!doctype html>
52
- <html lang="en">
53
- <head>
54
- <meta charset="utf-8">
55
- <title>Redirecting...</title>
56
- <link rel="canonical" href="{url}">
57
- <!-- remove problematic tag here -->
58
- <script>var anchor=window.location.hash.substr(1);location.href="{url}"+(anchor?"#"+anchor:"")</script>
59
- <meta http-equiv="refresh" content="0; url={url}">
60
- </head>
61
- <body>
62
- Redirecting...
63
- </body>
64
- </html>
65
- """
66
-
67
46
68
47
def on_files (files : Files , config : Config ) -> Files :
69
48
"""
You can’t perform that action at this time.
0 commit comments