浏览代码

Added redirect from old location of documentation (/documentation), these was the location when we were on github.

Thatcher Peskens 12 年之前
父节点
当前提交
6de5ca1e64
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 1 0
      docs/Makefile
  2. 4 0
      docs/sources/nginx.conf

+ 1 - 0
docs/Makefile

@@ -51,6 +51,7 @@ docs:
 	cp sources/dotcloud.yml $(BUILDDIR)/html/
 	cp sources/dotcloud.yml $(BUILDDIR)/html/
 	cp sources/CNAME $(BUILDDIR)/html/
 	cp sources/CNAME $(BUILDDIR)/html/
 	cp sources/.nojekyll $(BUILDDIR)/html/
 	cp sources/.nojekyll $(BUILDDIR)/html/
+	cp sources/nginx.conf $(BUILDDIR)/html/
 	@echo
 	@echo
 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
 

+ 4 - 0
docs/sources/nginx.conf

@@ -0,0 +1,4 @@
+
+# rule to redirect original links created when hosted on github pages
+rewrite ^/documentation/(.*).html http://docs.docker.io/en/latest/$1/ permanent;
+