Let splore use versioned URLs too (#2530)

This commit is contained in:
Erik Arvidsson
2016-09-07 18:05:14 -07:00
committed by GitHub
parent 3d83e4e72f
commit 70004e1699
4 changed files with 6 additions and 6 deletions

View File

@@ -18,5 +18,5 @@ def main():
subprocess.check_call(['npm', 'install'], shell=False)
if __name__ == "__main__":
if __name__ == '__main__':
main()

View File

@@ -1,2 +1,3 @@
node_modules
out.js
generated-files

View File

@@ -1,14 +1,12 @@
<!doctype html>
<!--
Copyright 2016 Attic Labs, Inc. All rights reserved.
Licensed under the Apache License, version 2.0:
http://www.apache.org/licenses/LICENSE-2.0
-->
<!doctype html>
<head>
<title>'Splore</title>
<meta charset="UTF-8">
<script src="out.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body><div id="splore"></div></body>
<div id="splore"></div>

View File

@@ -11,4 +11,5 @@ sys.path.append(os.path.abspath('../../../tools'))
import noms.staging as staging
if __name__ == '__main__':
staging.Main('splore', staging.GlobCopier('out.js', 'index.html', 'styles.css'))
staging.Main('splore', staging.GlobCopier('out.js', 'styles.css',
index_file='index.html', rename=True))