Skip to content

Commit

Permalink
downloads: split into primary and secondary
Browse files Browse the repository at this point in the history
Currently we have one large table with many options in it including
not actively downloaded releases. This commit separates the list
into a primary and additional downloads. It also adds PPC to the
list of additional downloads as it is now officially supported.
  • Loading branch information
Myles Borins committed Mar 17, 2016
1 parent c2fb6a7 commit 0d3af48
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 93 deletions.
3 changes: 2 additions & 1 deletion layouts/css/page-modules/_download.styl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.download-header

h1
width 40%
float left
margin-bottom: -1rem

ul
margin-top 2rem
Expand Down Expand Up @@ -102,6 +102,7 @@
height 100%
width 100%
text-align center
font-size: 0.8em;

a:hover, a:active
background $node-green
Expand Down
34 changes: 2 additions & 32 deletions layouts/download-stable.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,8 @@
<h1>{{downloads.headline}}</h1>
</div>

{{> download-matrix version=project.currentVersions.stable versionTypeStable="true"}}

<section>
<h2>{{additional.headline}}</h2>
<p>{{additional.intro}}</p>

<table class="download-matrix full-width">
<tbody>
<tr>
<th>{{additional.platform}}</th>
<th>{{additional.provider}}</th>
<th></th>
</tr>
<tr>
<th>AIX on Power Systems</th>
<td><span>IBM</span></td>
<td><a href="http://www.ibm.com/developerworks/web/nodesdk/">{{download}}</a></td>
</tr>
<tr>
<th>Linux on Power Systems</th>
<td><span>IBM</span></td>
<td><a href="http://www.ibm.com/developerworks/web/nodesdk/">{{download}}</a></td>
</tr>
<tr>
<th>Linux on System z</th>
<td><span>IBM</span></td>
<td><a href="http://www.ibm.com/developerworks/web/nodesdk/">{{download}}</a></td>
</tr>
</tbody>
</table>

</section>
{{> primary-download-matrix version=project.currentVersions.stable versionTypeStable="true"}}
{{> secondary-download-matrix version=project.currentVersions.stable versionTypeStable="true"}}

</article>

Expand Down
34 changes: 2 additions & 32 deletions layouts/download.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,8 @@
<h1>{{downloads.headline}}</h1>
</div>

{{> download-matrix version=project.currentVersions.lts versionTypeLts="true"}}

<section>
<h2>{{additional.headline}}</h2>
<p>{{additional.intro}}</p>

<table class="download-matrix full-width">
<tbody>
<tr>
<th>{{additional.platform}}</th>
<th>{{additional.provider}}</th>
<th></th>
</tr>
<tr>
<th>AIX on Power Systems</th>
<td><span>IBM</span></td>
<td><a href="http://www.ibm.com/developerworks/web/nodesdk/">{{download}}</a></td>
</tr>
<tr>
<th>Linux on Power Systems</th>
<td><span>IBM</span></td>
<td><a href="http://www.ibm.com/developerworks/web/nodesdk/">{{download}}</a></td>
</tr>
<tr>
<th>Linux on System z</th>
<td><span>IBM</span></td>
<td><a href="http://www.ibm.com/developerworks/web/nodesdk/">{{download}}</a></td>
</tr>
</tbody>
</table>

</section>
{{> primary-download-matrix version=project.currentVersions.lts versionTypeLts="true"}}
{{> secondary-download-matrix version=project.currentVersions.lts versionTypeLts="true"}}

</article>

Expand Down
9 changes: 9 additions & 0 deletions layouts/partials/download-list.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<section>
<ul>
<li><a href="https://nodejs.org/dist/{{version}}">{{site.all-downloads}}</a></li>
<li><a href="/{{site.locale}}/{{site.download.package-manager.link}}">{{site.download.package-manager.text}}</a></li>
<li><a href="/{{site.locale}}/{{site.download.releases.link}}/">{{site.download.releases.text}}</a></li>
<li><a href="https://nodejs.org/download/nightly/">{{site.nightly}}</a></li>
</ul>
<p>{{downloads.buildDisclaimer}}</p>
</section>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section>
<p class="color-lightgray">{{downloads.currentVersion}}: <strong>{{version}}</strong></p>
<p>{{downloads.intro}}</p>

<div class="download-hero full-width">
<ul class="no-padding">
<li>
Expand Down Expand Up @@ -69,24 +69,6 @@
<td colspan="3"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-linux-x64.tar.xz">64-bit</a></td>
</tr>

<tr>
<th>SunOS Binaries (.tar.xz)</th>
<td colspan="3"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-sunos-x86.tar.xz">32-bit</a></td>
<td colspan="3"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-sunos-x64.tar.xz">64-bit</a></td>
</tr>

<tr>
<th>ARM Binaries (.tar.xz)</th>
<td colspan="2"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-linux-armv6l.tar.xz">ARMv6</a></td>
<td colspan="2"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-linux-armv7l.tar.xz">ARMv7</a></td>
<td colspan="2"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-linux-arm64.tar.xz">ARMv8</a></td>
</tr>

<tr>
<th>Docker Image</th>
<td colspan="6"><a href="https://hub.docker.com/_/node/">Official Node.js Docker Image</a></td>
</tr>

<tr>
<th>Source Code</th>
<td colspan="6">
Expand All @@ -95,13 +77,4 @@
</tr>
</tbody>
</table>

{{downloads.currentVersion}}: <strong>{{version}}</strong>
<ul>
<li><a href="https://nodejs.org/dist/{{version}}">{{site.all-downloads}}</a></li>
<li><a href="/{{site.locale}}/{{site.download.package-manager.link}}">{{site.download.package-manager.text}}</a></li>
<li><a href="/{{site.locale}}/{{site.download.releases.link}}/">{{site.download.releases.text}}</a></li>
<li><a href="https://nodejs.org/download/nightly/">{{site.nightly}}</a></li>
</ul>
<p>{{downloads.buildDisclaimer}}</p>
</section>
46 changes: 46 additions & 0 deletions layouts/partials/secondary-download-matrix.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<section>
<h2>Additional Platforms</h2>
<table class="download-matrix full-width">
<tbody>
<tr>
<th>ARM Binaries (.tar.xz)</th>
<td colspan="2"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-linux-armv6l.tar.xz">ARMv6</a></td>
<td colspan="2"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-linux-armv7l.tar.xz">ARMv7</a></td>
<td colspan="2"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-linux-arm64.tar.xz">ARMv8</a></td>
</tr>

<tr>
<th>SunOS Binaries (.tar.xz)</th>
<td colspan="3"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-sunos-x86.tar.xz">32-bit</a></td>
<td colspan="3"><a href="https://nodejs.org/dist/{{version}}/node-{{version}}-sunos-x64.tar.xz">64-bit</a></td>
</tr>

<tr>
<th>Docker Image</th>
<td colspan="6"><a href="https://hub.docker.com/_/node/">Official Node.js Docker Image</a></td>
</tr>

<tr>
<th>Linux on Power Systems</th>
<td colspan="3">
<a href="https://nodejs.org/dist/{{version}}/node-{{version}}-linux-ppc64le.tar.xz">64-bit le</a>
<span>Official Node.js release</span>
</td>
<td colspan="3">
<a href="http://www.ibm.com/developerworks/web/nodesdk/">64-bit be</a>
<span>Unofficial, provided by IBM</span>
</td>
</tr>

<tr>
<th>Linux on System z</th>
<td colspan="6"><a href="http://www.ibm.com/developerworks/web/nodesdk/">Download (Unofficial, provided by IBM)</a></td>
</tr>
<tr>
<th>AIX on Powert Systems</th>
<td colspan="6"><a href="http://www.ibm.com/developerworks/web/nodesdk/">Download (Unofficial, provided by IBM)</a></td>
</tr>
</tbody>
</table>
{{> download-list }}
</section>

0 comments on commit 0d3af48

Please sign in to comment.