More information on the host-examples target
+14
-7
@@ -130,15 +130,22 @@ executing the `host-examples` build target:
|
|||||||
|
|
||||||
$ ./build.py host-examples
|
$ ./build.py host-examples
|
||||||
|
|
||||||
This will build `ol.js`, `ol-simple.js`, `ol-whitespace.js`, and `ol.css`,
|
This target performs a number of things:
|
||||||
create the examples index page, and copy everything to
|
|
||||||
`build/gh-pages/<branch_name>/`, where `<branch_name>` is the name of the local
|
1. Build `ol.js`, `ol-simple.js`, `ol-whitespace.js`, and `ol.css`,
|
||||||
checked out Git branch. You can now open the examples index page in the
|
1. Create the examples index page,
|
||||||
browser, for example: <http://localhost:8000/build/gh-pages/master/examples/>.
|
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`
|
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
|
append `?mode=simple` or `?mode=whitespace` to the example URL.
|
||||||
`?mode=debug` or `?mode=raw` to make the example work in full debug mode.
|
|
||||||
|
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
|
## Running tests
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user