Bugfixes on documentation code
@@ -30,6 +30,7 @@ import sys, os
html_additional_pages = {
'concepts/containers': 'redirect_home.html',
'concepts/introduction': 'redirect_home.html',
+ 'builder/basics': 'redirect_build.html',
}
@@ -40,8 +40,11 @@
{%- set script_files = script_files + ['_static/js/docs.js'] %}
+ {%- if pagename == 'index' %}
+ <link rel="canonical" href="http://docs.docker.io/en/latest/">
+ {% else %}
<link rel="canonical" href="http://docs.docker.io/en/latest/{{ pagename }}/">
-
+ {% endif %}
{%- for cssfile in css_files %}
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
{%- endfor %}
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Page Moved</title>
+ <meta http-equiv="refresh" content="0; url=http://docs.docker.io/en/latest/use/builder/">
+</head>
+<body>
+
+This page has moved. Perhaps you should visit the <a href="http://docs.docker.io/en/latest/use/builder/" title="builder page">Builder page</a>
+</body>
+</html>
@@ -2,7 +2,7 @@
<html>
<head>
<title>Page Moved</title>
- <meta http-equiv="refresh" content="0; url=http://docks.docker.io/en/latest/">
+ <meta http-equiv="refresh" content="0; url=http://docs.docker.io/en/latest/">
</head>
<body>