From 09b08a0556f02eec6c8284488a832b3a62336429 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Thu, 19 Nov 2015 15:53:37 -0800 Subject: [PATCH] Fix links to old Foundation docs --- docs/layout/component.html | 2 +- docs/partials/component-list.html | 8 ++++---- lib/buildSearch.js | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/layout/component.html b/docs/layout/component.html index 6d1f41e6e..9a8aa919e 100644 --- a/docs/layout/component.html +++ b/docs/layout/component.html @@ -1,6 +1,6 @@
-Jump to Nav +Jump to Nav

{{ title }}

diff --git a/docs/partials/component-list.html b/docs/partials/component-list.html index 887770cb2..01a7de61a 100644 --- a/docs/partials/component-list.html +++ b/docs/partials/component-list.html @@ -79,8 +79,8 @@
  • Panini
  • Older Versions
  • -
  • Foundation 5
  • -
  • Foundation 4
  • -
  • Foundation 3
  • -
  • Foundation 2
  • +
  • Foundation 5
  • +
  • Foundation 4
  • +
  • Foundation 3
  • +
  • Foundation 2
  • diff --git a/lib/buildSearch.js b/lib/buildSearch.js index 88fb678e6..0b59cf0b6 100644 --- a/lib/buildSearch.js +++ b/lib/buildSearch.js @@ -31,11 +31,14 @@ function buildSearch(data, cb) { // Add results for old Foundation documentation for (var i in oldFoundations) { + // lol + var index = (i > 3) ? '/index.html' : '/'; + tree.push({ type: 'page', name: 'Foundation ' + i, description: 'Documentation for Foundation v' + oldFoundations[i], - link: 'http://foundation.zurb.com/docs/v/' + oldFoundations[i], + link: 'http://foundation.zurb.com/sites/docs/v/' + oldFoundations[i] + index, tags: ['old', 'previous'] }) } -- 2.47.2