Browse code

Bugfixes on docs

* fixed canonical link from index
* added http redirect from builder/basics
* fixed url in redirect_home

Thatcher Peskens authored on 2013/06/26 07:31:22
Showing 4 changed files
... ...
@@ -30,6 +30,7 @@ import sys, os
30 30
 html_additional_pages = {
31 31
     'concepts/containers': 'redirect_home.html',
32 32
     'concepts/introduction': 'redirect_home.html',
33
+    'builder/basics': 'redirect_build.html',
33 34
     }
34 35
 
35 36
 
... ...
@@ -40,8 +40,11 @@
40 40
 
41 41
     {%- set script_files = script_files + ['_static/js/docs.js'] %}
42 42
 
43
+    {%- if pagename == 'index' %}
44
+    <link rel="canonical" href="http://docs.docker.io/en/latest/">
45
+    {% else %}
43 46
     <link rel="canonical" href="http://docs.docker.io/en/latest/{{ pagename }}/">
44
-
47
+    {% endif %}
45 48
     {%- for cssfile in css_files %}
46 49
     <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
47 50
     {%- endfor %}
48 51
new file mode 100644
... ...
@@ -0,0 +1,12 @@
0
+<!DOCTYPE html>
1
+<html>
2
+<head>
3
+    <title>Page Moved</title>
4
+    <meta http-equiv="refresh" content="0; url=http://docs.docker.io/en/latest/use/builder/">
5
+</head>
6
+<body>
7
+
8
+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>
9
+
10
+</body>
11
+</html>
... ...
@@ -2,7 +2,7 @@
2 2
 <html>
3 3
 <head>
4 4
     <title>Page Moved</title>
5
-    <meta http-equiv="refresh" content="0; url=http://docks.docker.io/en/latest/">
5
+    <meta http-equiv="refresh" content="0; url=http://docs.docker.io/en/latest/">
6 6
 </head>
7 7
 <body>
8 8