Skip to content

Commit

Permalink
Merge pull request #39 from ipfs/feat/about
Browse files Browse the repository at this point in the history
feat(site): Add about section
  • Loading branch information
dignifiedquire committed Jan 21, 2016
2 parents b7ce479 + 88a9b2a commit 1c35fad
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
18 changes: 18 additions & 0 deletions site/public/_about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#### Welcome to IPFS distributions

This is the downloads website for all the official software distributions of
the [IPFS Project](https://ipfs.io). You can find all the apps, binaries,
and packages here. Every distribution has a section on this
page with,

* the distribution name and a short description
* the current version number and release date
* the software license (usually MIT)
* a download button that detects your platform
* a grid with download links for all supported platforms (os and architectures)
* `Changelog`, a link to a summary of all version changes
* `All Versions`, a link to view and download previous versions

The `All Versions` link on each distribution shows directory listings for all the available versions, and a `versions` file ([example](http://dist.ipfs.io/go-ipfs/versions)). This file can be used by tools, such as [ipfs-update](#ipfs-update), to find all the available versions and download the latest.

The directory listing of each version ([example](http://dist.ipfs.io/go-ipfs/v0.3.11)) has all the platform archives (`.zip` or `.tar.gz`), a `README.md` and a `dist.json` which describe the release for humans and machines. It is meant to be easily consumed and used by tools.
2 changes: 1 addition & 1 deletion site/public/_layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ html(lang='en')
href='https://code.cdn.mozilla.net/fonts/fira.css'
rel='stylesheet'
)
body(data-spy='scroll' data-target='#d-navbar' data-offset='30')
body(data-spy='scroll' data-target='#d-navbar' data-offset='40')
!= yield
script(src='build/script.js')
6 changes: 6 additions & 0 deletions site/public/css/_about.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.d-about {
padding-top: 5 * @baseLineHeight;
padding-bottom: 3 * @baseLineHeight;
line-height: 1.5 * @baseLineHeight;
border-bottom: 1px solid @borderGray;
}
1 change: 1 addition & 0 deletions site/public/css/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
@import './_footer';
@import './_sidebar';
@import './_component';
@import './_about';
10 changes: 8 additions & 2 deletions site/public/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ include ./_header.jade
- architectureMap = {'darwin Binary': 'Mac OS X Binary', 'freebsd Binary': 'FreeBSD Binary', 'linux Binary': 'Linux Binary', 'windows Binary': 'Windows Binary'}

.container
.row
#about.d-about.col-md-8.col-md-offset-2
include:markdown ./_about.md
.row
.d-sidebar-wrapper.col-md-2.sticky.navbar-offcanvas#d-navbar-offcanvas
.d-sidebar
ul.nav#d-navbar: each value, key in public.releases
ul.nav#d-navbar
li.d-sidebar-item.nav-item
a.d-sidebar-link.nav-link(href='##{key}')= key
a.d-sidebar-link.nav-link(href='#about') About
each value, key in public.releases
li.d-sidebar-item.nav-item
a.d-sidebar-link.nav-link(href='##{key}')= key
.col-md-10: each value, key in public.releases
.d-component(id='#{key}')
- data = value._data
Expand Down

0 comments on commit 1c35fad

Please sign in to comment.