From 20a096d62efa943d2035e6e020f24620b767909c Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Mon, 12 Jan 2015 16:30:29 -0800 Subject: [PATCH] HBASE-12777 Redirect multi-page book to single-page book --- hbase-common/src/main/resources/.htaccess | 8 ++++++++ pom.xml | 18 ++++++++++++++++++ src/main/docbkx/configuration.xml | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 hbase-common/src/main/resources/.htaccess diff --git a/hbase-common/src/main/resources/.htaccess b/hbase-common/src/main/resources/.htaccess new file mode 100644 index 00000000000..5bfc3aa1196 --- /dev/null +++ b/hbase-common/src/main/resources/.htaccess @@ -0,0 +1,8 @@ +# Redirect HTML-multi version of the book to HTML-single +# Rule added 2015-1-12 -- can be removed in 6 months +Redirect /book/ /book.html + +# Redirect replication URL to the right section of the book +# Rule added 2015-1-12 -- can be removed in 6 months +Redirect /replication.html /book.html#cluster_replication + diff --git a/pom.xml b/pom.xml index b3b252cda85..87070bad758 100644 --- a/pom.xml +++ b/pom.xml @@ -955,6 +955,24 @@ + + copy-htaccess + + copy-resources + + post-site + + ${basedir}/target/site + + + ${basedir}/hbase-common/src/main/resources/ + + .htaccess + + + + + \ diff --git a/src/main/docbkx/configuration.xml b/src/main/docbkx/configuration.xml index 1d6e160134b..cbf8d1f03ff 100644 --- a/src/main/docbkx/configuration.xml +++ b/src/main/docbkx/configuration.xml @@ -925,7 +925,7 @@ stopping hbase............... + href="../../../target/docbkx/hbase-default.xml">