From ba460de7ed36540fd419785fe442b1c8128e9347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Tue, 3 Sep 2013 13:25:23 -0700 Subject: [PATCH] Redirect /docs to the right page I've hit this a few times where I want to get to docs so I take whatever my urlbar gives me and strip out the actual page so I can get to the root, however that's a 404. This introduces a super easy way to redirect, which could be handy in the future as docs get rewritten. I would much rather do this with a real htaccess file or even just handle 404s gracefully, but that's not currently an option with GitHub pages (since we generate our own and don't use a custom domain). --- docs/_layouts/redirect.html | 6 ++++++ docs/docs/index.html | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 docs/_layouts/redirect.html create mode 100644 docs/docs/index.html diff --git a/docs/_layouts/redirect.html b/docs/_layouts/redirect.html new file mode 100644 index 000000000000..c24f81748492 --- /dev/null +++ b/docs/_layouts/redirect.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/docs/docs/index.html b/docs/docs/index.html new file mode 100644 index 000000000000..4ea0787d5eca --- /dev/null +++ b/docs/docs/index.html @@ -0,0 +1,4 @@ +--- +layout: redirect +destination: getting-started.html +---