Skip to content

Commit

Permalink
fix gallery script
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Mar 22, 2019
1 parent c91b792 commit 8fa1a0d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 13 deletions.
5 changes: 1 addition & 4 deletions examples/gallery/build-tools/constants.js
Expand Up @@ -12,10 +12,7 @@ if (!MAPBOX_TOKEN) {
}
/* eslint-enable */

const LOCAL_BUNDLE = path.resolve(
__dirname,
'../../../node_modules/deck.gl/dist.min.js'
);
const LOCAL_BUNDLE = path.resolve(__dirname, '../../../node_modules/deck.gl/dist.js');

module.exports = {
INPUT_DIR,
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/build-tools/utils.js
Expand Up @@ -64,7 +64,7 @@ function getIndexPage(pages, opts = {}) {
function getPage(page, opts = {}) {
let content = fs.readFileSync(page.src, 'utf-8');
if (bundleUrl) {
content = content.replace(/src="[^"]+\/deckgl\.min\.js"/, `src="${bundleUrl}"`);
content = content.replace(/src=".+?\/@?deck\.gl.*?\/dist\.min\.js"/, `src="${bundleUrl}"`);
}

if (!CACHE.pageTemplate || opts.noCache) {
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/boiler-plate.html
Expand Up @@ -2,7 +2,7 @@
<head>
<title>Get Started with deck.gl</title>
<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>
</head>

<body style="margin:0; width: 100vw; height: 100vh;"></body>
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/geojson-layer.html
Expand Up @@ -3,7 +3,7 @@
<title>deck.gl GeoJsonLayer (Polygon) Example</title>

<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>

<style type="text/css">
body {
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/hexagon-layer.html
Expand Up @@ -5,7 +5,7 @@
<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>

<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>

<style type="text/css">
body {
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/highway.html
Expand Up @@ -5,7 +5,7 @@
<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>

<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>

<style type="text/css">
body {
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/mapbox-layer.html
Expand Up @@ -2,7 +2,7 @@
<head>
<title>Interleaving deck.gl with Mapbox Layers</title>
<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>
</head>

<body style="margin:0"></body>
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/scatterplot-layer.html
Expand Up @@ -4,7 +4,7 @@

<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>

<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>

<style type="text/css">
body {
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/screengrid-layer.html
Expand Up @@ -4,7 +4,7 @@

<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>

<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>

<style type="text/css">
body {
Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/src/viewport-transition.html
Expand Up @@ -5,7 +5,7 @@
<script src="https://unpkg.com/deck.gl@^7.0.0/dist.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>

<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>

<style type="text/css">
body {
Expand Down

0 comments on commit 8fa1a0d

Please sign in to comment.