From 04bab7e4369ec6c82c0559cfbecb3c3db25c3107 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 27 Jun 2013 15:56:11 -0600 Subject: [PATCH] The examples and docs are deployed from the openlayers.github.io repo To deploy the latest docs and examples, see https://github.com/openlayers/openlayers.github.io/blob/build/README.md tl;dr git clone -b build https://github.com/openlayers/openlayers.github.io.git cd openlayers.github.io npm install npm run deploy Subsequent deploys are simply: `npm run deploy` This publishes the examples (http://ol3js.org/en/master/examples/) and docs (http://ol3js.org/en/master/apidoc/). The `build.py gh-pages` target published under different paths (http://ol3js.org/ol3/master/examples/ and http://ol3js.org/ol3/master/apidoc/). Having two (not always up to date) copies of this content hosted on the same domain is A Bad Idea. --- build.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/build.py b/build.py index 8077cb40a8..1da19aaf49 100755 --- a/build.py +++ b/build.py @@ -574,20 +574,6 @@ def plovr_jar(t): t.info('downloaded %r', t.name) -@target('gh-pages', 'host-examples', 'doc', phony=True) -def gh_pages(t): - with t.tempdir() as tempdir: - t.run('%(GIT)s', 'clone', '--branch', 'gh-pages', - 'git@github.com:openlayers/ol3.git', tempdir) - with t.chdir(tempdir): - t.rm_rf('%(BRANCH)s') - t.cp_r('build/gh-pages/%(BRANCH)s', tempdir + '/%(BRANCH)s') - with t.chdir(tempdir): - t.run('%(GIT)s', 'add', '--all', '%(BRANCH)s') - t.run('%(GIT)s', 'commit', '--message', 'Updated') - t.run('%(GIT)s', 'push', 'origin', 'gh-pages') - - virtual('doc', 'build/jsdoc-%(BRANCH)s-timestamp' % vars(variables))