diff --git a/README.md b/README.md index d386026..d9c1d23 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Requirements Download -------- -Download Planetary.js from the [GitHub releases page](https://github.com/BinaryMuse/planetary.js/releases). +Download Planetary.js from the [Planetary.js web site](http://planetaryjs.com/download/). Quick Start ----------- diff --git a/site/public/_menu.ejs b/site/public/_menu.ejs index c04d404..bbddf88 100644 --- a/site/public/_menu.ejs +++ b/site/public/_menu.ejs @@ -4,7 +4,7 @@ Planetary.js - + Download ' href='/examples/'> diff --git a/site/public/css/planetaryjs.less b/site/public/css/planetaryjs.less index 009afa8..1fe2325 100644 --- a/site/public/css/planetaryjs.less +++ b/site/public/css/planetaryjs.less @@ -35,7 +35,7 @@ h1.title-header, h2.title-header { text-align: center; } -.feature-list { +.feature-list, .download-list { font-size: 17px; .icon { diff --git a/site/public/documentation/builtin_topojson.md b/site/public/documentation/builtin_topojson.md index 8727573..60f82d3 100644 --- a/site/public/documentation/builtin_topojson.md +++ b/site/public/documentation/builtin_topojson.md @@ -13,7 +13,7 @@ API Valid keys for `config` are: * `world`: a JavaScript object representing TopoJSON data (not JSON data); defaults to no value, which will cause the plugin to load data from the `file` configuration option -* `file`: the path to a TopoJSON data file to be loaded via Ajax; defaults to `"world-110m.json"`, which can be downloaded with the Planetary.js library from the [download page](https://github.com/BinaryMuse/planetary.js/releases). +* `file`: the path to a TopoJSON data file to be loaded via Ajax; defaults to `"world-110m.json"`, which can be downloaded with the Planetary.js library from the [download page](/download/). If you plan on creating more than one planet from the same TopoJSON data, you can load the data once before loading the plugin and pass the parsed data to the plugin via the `world` property rather than letting the plugin load the data via Ajax each time a new planet is created. diff --git a/site/public/documentation/core.md b/site/public/documentation/core.md index 405e716..4ec2957 100644 --- a/site/public/documentation/core.md +++ b/site/public/documentation/core.md @@ -4,7 +4,7 @@ Core API Installation ------------ -Once you've [downloaded Planetary.js](https://github.com/BinaryMuse/planetary.js/releases), you can include it via a `script` tag on your page *after* the inclusion of D3 and TopoJSON. This example uses the CDN URLs for those libraries: +Once you've [downloaded Planetary.js](/download/), you can include it via a `script` tag on your page *after* the inclusion of D3 and TopoJSON. This example uses the CDN URLs for those libraries:
HTML
@@ -21,7 +21,7 @@ Once you've [downloaded Planetary.js](https://github.com/BinaryMuse/planetary.js ```
-If you use the default `topojson` plugin (most people will), you'll also need to make sure `world-110m.json` (or some other TopoJSON data file) is available on your server. This file is also available from [the download page](https://github.com/BinaryMuse/planetary.js/releases). See the [TopoJSON Plugin](/documentation/builtin_topojson.html) documentation for more information. +If you use the default `topojson` plugin (most people will), you'll also need to make sure `world-110m.json` (or some other TopoJSON data file) is available on your server. This file is also available from [the download page](/download/). See the [TopoJSON Plugin](/documentation/builtin_topojson.html) documentation for more information. Core API -------- diff --git a/site/public/download/_data.json b/site/public/download/_data.json new file mode 100644 index 0000000..8901cce --- /dev/null +++ b/site/public/download/_data.json @@ -0,0 +1,11 @@ +{ + "stable": { + "latest": null + }, + "unstable": { + "latest": { + "version": "v1.0.0-rc.1", + "name": null + } + } +} diff --git a/site/public/download/_layout.ejs b/site/public/download/_layout.ejs new file mode 100644 index 0000000..0254bbd --- /dev/null +++ b/site/public/download/_layout.ejs @@ -0,0 +1,19 @@ + + + + <%- partial("../_header") %> + + + + <%- partial("../_menu") %> + +
+
+
+ <%- yield %> +
+
+
+ <%- partial("../_ga") %> + + diff --git a/site/public/download/index.ejs b/site/public/download/index.ejs new file mode 100644 index 0000000..732f316 --- /dev/null +++ b/site/public/download/index.ejs @@ -0,0 +1,77 @@ +<% data = public.download._data %> +<% dl = function(version, file) { %> +<% return "https://github.com/BinaryMuse/planetary.js/releases/download/" + version + "/" + file; %> +<% } %> + +

Download Planetary.js

+ +

Download the core Planetary.js library and supporting files here.

+ +

Up-to-the-minute releases, archived versions, and full release notes can be found on the GitHub releases page.

+ +<% if (data.stable.latest) { %> +

Latest Stable Build: <%= data.stable.latest.version %> (<%= data.stable.latest.name %>)

+ +
+
+ + Core library: [ + '>minified + | + '>unminified + ] +
+
+ + Core library (no plugins): [ + '>minified + | + '>unminified + ] +
+
+ + Earth TopoJSON data: [ + '>minified + ] +
+
+ +<% } else { %> +

No stable builds yet

+<% } %> + + + + +<% if (data.unstable.latest) { %> +

Latest Unstable Build: <%= data.unstable.latest.version %>

+ +
+
+ + Core library: [ + '>minified + | + '>unminified + ] +
+
+ + Core library (no plugins): [ + '>minified + | + '>unminified + ] +
+
+ + Earth TopoJSON data: [ + '>minified + ] +
+
+ +<% } else { %> +

No unstable builds yet

+<% } %> diff --git a/site/public/index.ejs b/site/public/index.ejs index 861468e..42f5324 100644 --- a/site/public/index.ejs +++ b/site/public/index.ejs @@ -31,7 +31,7 @@
- Download + Download
View Source