Changes for the new website
MODIFY
examples/build.js
examples/build.js
@@ -42,7 +42,7 @@ var examples = glob('examples/*/example.json')
json.docHTML = 'docs/' + path.basename(main).replace(/js$/, 'html');
json.bundle = '../bundle.js';
- var fn = jade.compileFile(path.relative('.', path.resolve(dir, 'index.jade')), {pretty: true});
+ var fn = jade.compileFile(path.relative('.', path.resolve(dir, 'index.jade')), {pretty: false});
fs.writeFileSync(path.resolve(output, 'index.html'), fn(json));
return json;
});

MODIFY
examples/heatmap/index.jade
examples/heatmap/index.jade
-extends ../common/templates/index.jade
-
-block append mainContent
+|---
+|layout: example
+|title: Heatmap
+|about: This example shows how to add a heatmap to a map.
+|---
+|
+link(rel='stylesheet' href='main.css')
+script(type='text/javascript' src='main.js')
div#controls
.form-group(title="The data set to plot.")
label(for="dataset") Data Set

MODIFY
examples/index.js
examples/index.js
@@ -2,9 +2,9 @@ require('../src/vendor');
window.geo = require('../src/index');
// bootstrap and themes
-require('bootstrap/dist/css/bootstrap.css');
-require('bootswatch/flatly/bootstrap.css');
-require('bootstrap');
+// require('bootstrap/dist/css/bootstrap.css');
+// require('bootswatch/flatly/bootstrap.css');
+// require('bootstrap');
// codemirror and plugins
require('codemirror/lib/codemirror.css');
@@ -25,5 +25,5 @@ require('codemirror/addon/fold/foldgutter');
require('codemirror/addon/edit/matchbrackets');
// common example code
-require('./common/css/examples.css');
-require('./common/js/examples');
+// require('./common/css/examples.css');
+// require('./common/js/examples');

Changes for the new website