Skip to content

Commit

Permalink
Fix links to old Foundation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gakimball committed Nov 20, 2015
1 parent b747c43 commit 09b08a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/layout/component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<article class="docs-component" id="docs-{{escape title}}">

<a href="#docs-menu" class="small secondary expanded button">Jump to Nav</a>
<a href="#docs-menu" class="small secondary expanded button hide-for-medium">Jump to Nav</a>

<h1 class="docs-page-title">{{ title }}</h1>

Expand Down
8 changes: 4 additions & 4 deletions docs/partials/component-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
<li><a href="panini.html">Panini</a></li>

<li class="docs-menu-title">Older Versions</li>
<li><a href="http://foundation.zurb.com/docs/v/5.5.3">Foundation 5</a></li>
<li><a href="http://foundation.zurb.com/docs/v/4.3.2">Foundation 4</a></li>
<li><a href="http://foundation.zurb.com/docs/v/3.2.5">Foundation 3</a></li>
<li><a href="http://foundation.zurb.com/docs/v/2.2.1">Foundation 2</a></li>
<li><a href="http://foundation.zurb.com/sites/docs/v/5.5.3/index.html">Foundation 5</a></li>
<li><a href="http://foundation.zurb.com/sites/docs/v/4.3.2/index.html">Foundation 4</a></li>
<li><a href="http://foundation.zurb.com/sites/docs/v/3.2.5/">Foundation 3</a></li>
<li><a href="http://foundation.zurb.com/sites/docs/v/2.2.1/">Foundation 2</a></li>
</ul>
5 changes: 4 additions & 1 deletion lib/buildSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
})
}
Expand Down

0 comments on commit 09b08a0

Please sign in to comment.