summaryrefslogtreecommitdiff
path: root/tools/build_benchmark_jsons.py
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-10-24 16:14:05 -0400
committerGitHub <noreply@github.com>2019-10-24 16:14:05 -0400
commit1d8f3cc896ac417ceed4a28e4a001a758ab49185 (patch)
treef5e7e9317ced50a5183445a0159e3be763c5556f /tools/build_benchmark_jsons.py
parentf96aaa802b245c8b3aeb5d57b031f8a55bb07de2 (diff)
Remove old website (#3194)
Move manual.md and style_guide.md into //std so they can be accessed from https://deno.land/std/manual.md Code for new website is https://github.com/denoland/deno_website2 Co-authored-by: Christian Moritz <chrmoritz@gmail.com>
Diffstat (limited to 'tools/build_benchmark_jsons.py')
-rwxr-xr-xtools/build_benchmark_jsons.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/build_benchmark_jsons.py b/tools/build_benchmark_jsons.py
index 1d7a03401..b7223992b 100755
--- a/tools/build_benchmark_jsons.py
+++ b/tools/build_benchmark_jsons.py
@@ -5,15 +5,14 @@ from benchmark import read_json, write_json
import os
current_data_file = os.path.join(build_path(), "bench.json")
-gh_pages_data_file = "gh-pages/data.json"
-all_data_file = "website/data.json" # Includes all benchmark data.
-recent_data_file = "website/recent.json" # Includes recent 20 benchmark data.
+all_data_file = "gh-pages/data.json" # Includes all benchmark data.
+recent_data_file = "gh-pages/recent.json" # Includes recent 20 benchmark data.
assert os.path.exists(current_data_file)
-assert os.path.exists(gh_pages_data_file)
+assert os.path.exists(all_data_file)
new_data = read_json(current_data_file)
-all_data = read_json(gh_pages_data_file)
+all_data = read_json(all_data_file)
all_data.append(new_data)
write_json(all_data_file, all_data)