Make wms-capabilities example work when hosted

This commit is contained in:
Éric Lemoine
2013-03-03 16:42:29 +01:00
parent 01d49ef9c9
commit bd67a14389
3 changed files with 287 additions and 1 deletions
+2
View File
@@ -348,6 +348,8 @@ def hostexamples(t):
t.makedirs('build/gh-pages/%(BRANCH)s/examples')
t.makedirs('build/gh-pages/%(BRANCH)s/build')
t.cp(EXAMPLES, (path.replace('.html', '.js') for path in EXAMPLES), 'examples/style.css', 'build/gh-pages/%(BRANCH)s/examples/')
t.rm_rf('build/gh-pages/%(BRANCH)s/examples/data')
t.cp_r('examples/data', 'build/gh-pages/%(BRANCH)s/examples/data')
t.cp('build/loader_hosted_examples.js', 'build/gh-pages/%(BRANCH)s/examples/loader.js')
t.cp('build/ol.js', 'build/ol-simple.js', 'build/ol-whitespace.js', 'build/ol.css', 'build/gh-pages/%(BRANCH)s/build/')
t.cp('examples/example-list.html', 'build/gh-pages/%(BRANCH)s/examples/index.html')