Skip to content

Commit 464425f

Browse files
committed
Abuse 404.html to redirect to docs.docker.com
1 parent ef4179a commit 464425f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Diff for: 404.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Docker docs</title>
6+
</head>
7+
<body>
8+
<p>We have moved away from the <strong>docker.github.io</strong> domain. Please visit <a href="https://docs.docker.com">docs.docker.com</a> instead.</p>
9+
10+
<script>
11+
window.location.replace("https://docs.docker.com" + window.location.pathname);
12+
</script>
13+
</body>
14+
</html>

Diff for: _config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ lsi: false
1414
url: https://docs.docker.com
1515
# This needs to have all the directories you expect to be in the archives (delivered by docs-base in the Dockerfile)
1616
keep_files: ["v1.4", "v1.5", "v1.6", "v1.7", "v1.8", "v1.9", "v1.10", "v1.11", "v1.12", "v1.13", "v17.03", "v17.06", "v17.09", "v17.12"]
17-
exclude: ["_scripts", "apidocs/layouts", "Gemfile", "hooks", "index.html"]
17+
exclude: ["_scripts", "apidocs/layouts", "Gemfile", "hooks", "index.html", "404.html"]
1818

1919
# Component versions -- address like site.docker_ce_stable_version
2020
# You can't have - characters in these for non-YAML reasons

0 commit comments

Comments
 (0)