deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject [12/16] git commit: Added redirects to missing top level pages
Date Wed, 22 Aug 2012 22:13:05 GMT
Added redirects to missing top level pages

git-svn-id: https://svn.apache.org/repos/asf/deltacloud/trunk@1353977 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/a4cf288c
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/a4cf288c
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/a4cf288c

Branch: refs/heads/master
Commit: a4cf288c90eaf660f229a179493efe7e90bf7476
Parents: b627811
Author: mfojtik <mfojtik@13f79535-47bb-0310-9956-ffa450edef68>
Authored: Tue Jun 26 12:02:55 2012 +0000
Committer: David Lutterkort <lutter@redhat.com>
Committed: Wed Aug 22 14:50:13 2012 -0700

----------------------------------------------------------------------
 site/Rules                |   10 ++++------
 site/content/htaccess.txt |    4 ++++
 site/output/.htaccess     |    1 +
 3 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a4cf288c/site/Rules
----------------------------------------------------------------------
diff --git a/site/Rules b/site/Rules
index f2dd4e7..cc34329 100644
--- a/site/Rules
+++ b/site/Rules
@@ -3,12 +3,6 @@
 require 'coderay'
 require 'nanoc-code-classifier'
 
-compile '/assets/less/*' do
-  # Note:  built-in less filter not working properly
-  #        using commandline filter instead
-  filter :bootstrap if @item.identifier.gsub('/assets/less/','').chop == 'bootstrap'
-end
-
 compile '/assets/css/*' do
   filter :rainpress
 end
@@ -36,6 +30,10 @@ route '/assets/less/*/' do
   # don't copy over
 end
 
+route '/htaccess/' do
+    '/.htaccess'
+end
+
 compile '*' do
   if item[:extension] == 'md'
     filter :kramdown

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a4cf288c/site/content/htaccess.txt
----------------------------------------------------------------------
diff --git a/site/content/htaccess.txt b/site/content/htaccess.txt
new file mode 100644
index 0000000..d7751e1
--- /dev/null
+++ b/site/content/htaccess.txt
@@ -0,0 +1,4 @@
+Redirect 301 /documentation.html /usage.html
+Redirect 301 /download.html /getting-sources.html
+Redirect 301 /api.html /rest-api.html
+Redirect 301 /developers.html /how-to-contribute.html

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a4cf288c/site/output/.htaccess
----------------------------------------------------------------------
diff --git a/site/output/.htaccess b/site/output/.htaccess
new file mode 100644
index 0000000..5412929
--- /dev/null
+++ b/site/output/.htaccess
@@ -0,0 +1 @@
+Redirect 301 /documentation.html /rest-api.html


Mime
View raw message