More information on the host-examples target

elemoine
2013-05-01 01:40:32 -07:00
parent d794cdf3e4
commit 3ff0975e86

@@ -129,16 +129,23 @@ just like the examples
executing the `host-examples` build target:
$ ./build.py host-examples
This will build `ol.js`, `ol-simple.js`, `ol-whitespace.js`, and `ol.css`,
create the examples index page, and copy everything to
`build/gh-pages/<branch_name>/`, where `<branch_name>` is the name of the local
checked out Git branch. You can now open the examples index page in the
browser, for example: <http://localhost:8000/build/gh-pages/master/examples/>.
This target performs a number of things:
1. Build `ol.js`, `ol-simple.js`, `ol-whitespace.js`, and `ol.css`,
1. Create the examples index page,
1. Extract the Closure Library from the Plovr JAR,
1. Copy everything to `build/gh-pages/<branch_name>/`, where `<branch_name>` is the name of the local checked out Git branch.
After running `host-examples` you can now open the examples index page in the browser, for example: <http://localhost:8000/build/gh-pages/master/examples/>.
To make an example use `ol-simple.js` or `ol-whitespace.js` instead of `ol.js`
append `?mode=simple` or `?mode=whitespace` to the example URL. And append
`?mode=debug` or `?mode=raw` to make the example work in full debug mode.
append `?mode=simple` or `?mode=whitespace` to the example URL.
Append `?mode=debug` or `?mode=raw` to make the example work in full debug mode. In
full debug mode the OpenLayers and Closure scripts are loaded individually by
the Closure Library's `base.js` script (which the example page loads and
executes before any other script).
## Running tests