2013-07-17 02:08:54 +08:00
|
|
|
## Developing
|
|
|
|
|
|
|
|
Installing:
|
|
|
|
|
|
|
|
git clone git@github.com:mapbox/carto.git
|
|
|
|
npm install
|
|
|
|
|
|
|
|
Test:
|
|
|
|
|
|
|
|
npm test
|
|
|
|
|
|
|
|
Running the head binary:
|
|
|
|
|
|
|
|
./bin/carto
|
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
This repository contains auto-generated documentation of the content of Carto
|
2013-12-10 09:39:54 +08:00
|
|
|
that's published on Mapbox.com.
|
2013-07-17 02:08:54 +08:00
|
|
|
|
|
|
|
git fetch origin gh-pages:gh-pages
|
|
|
|
|
|
|
|
Edit `_docs/package.json` to point to the head version of [mapnik-reference](https://github.com/mapnik/mapnik-reference).
|
|
|
|
|
|
|
|
cd _docs
|
|
|
|
npm install
|
|
|
|
node generate.js
|
|
|
|
|
2013-10-06 07:06:14 +08:00
|
|
|
Then run up a directory and run the testing server:
|
|
|
|
|
|
|
|
cd ../
|
|
|
|
jekyll serve -p 4000
|
|
|
|
|
|
|
|
Test the new site at `localhost:4000/carto` and if things look good then git add your changes and push.
|