diff --git a/site/public/documentation/installation.md b/site/public/documentation/installation.md index 800e90e..f7494d9 100644 --- a/site/public/documentation/installation.md +++ b/site/public/documentation/installation.md @@ -64,11 +64,7 @@ requirejs(['planetaryjs'], function(planetaryjs) { CommonJS -------- -
-There is [a pull request](https://github.com/mbostock/topojson/pull/129) open on the TopoJSON project to make this process more intuitive; these instructions will be updated based on its acceptance. -
- -First, install `browserify` and `brfs` from npm (as well as `planetary.js`, if you haven't already). Then, create your application (here referred to as `app.js`) and bundle it with browserify, running the dependencies through brfs. +First, install `browserify` from npm (as well as `planetary.js` v1.0.2+, if you haven't already). Then, create your application (here referred to as `app.js`) and bundle it with browserify.
JavaScript
@@ -84,9 +80,18 @@ planet.draw(canvas);
Shell
```shell -$ npm install browserify brfs -$ ./node_modules/.bin/browserify --g brfs app.js > bundle.js +$ npm install browserify +$ ./node_modules/.bin/browserify app.js > bundle.js ```
-`bundle.js` is now ready to use! +`bundle.js` is now ready to use! You may need to set the `charset` option on your script tag: + + +
+
HTML
+ +```html + +``` +