From 4e2f7f61a7dc91d8c89a428bb526fd7c50ec599b Mon Sep 17 00:00:00 2001 From: Michael Goff Date: Tue, 4 Dec 2018 08:27:35 -0800 Subject: [PATCH] Add a /doc/latest and fix issues with redirecting. (e.g. /docs/master would redirects to /docs/master/ so just starting with /docs/master/) --- _includes/values.inc | 2 +- _layouts/docs.html | 2 +- docs/latest.html | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 docs/latest.html diff --git a/_includes/values.inc b/_includes/values.inc index c07a5638..6dd6f471 100644 --- a/_includes/values.inc +++ b/_includes/values.inc @@ -4,4 +4,4 @@ {% assign forumLink = "https://groups.google.com/forum/#!forum/crossplane-dev" %} {% assign blogLink = "https://blog.upbound.io/" %} {% assign communityMeetingLink = "https://github.com/crossplaneio/crossplane/#community-meeting" %} -{% assign latestDocs = site.data.versions[0].path %} +{% assign latestDocs = site.data.versions[0].path | append: '/' %} diff --git a/_layouts/docs.html b/_layouts/docs.html index 2f4c33f3..1e81e741 100755 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -31,7 +31,7 @@
diff --git a/docs/latest.html b/docs/latest.html new file mode 100644 index 00000000..e1bad609 --- /dev/null +++ b/docs/latest.html @@ -0,0 +1,18 @@ +--- +layout: false +--- +{% include values.inc %} + + + + + Redirecting... + + + + +

Redirecting...

+ Click here if you are not redirected. + + +