From 765863e87aea725301d5f528b6de15bfa6022d46 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 14 Nov 2018 09:38:42 -0500 Subject: Add a simple doc generation tool. And website upload tool. --- website/app.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'website/app.js') diff --git a/website/app.js b/website/app.js index 6bf5194b1..d3b90b297 100644 --- a/website/app.js +++ b/website/app.js @@ -182,6 +182,13 @@ function formatSecsAsMins(t) { * @param dataUrl The url of benchramk data json. */ export function drawCharts(dataUrl) { + // TODO Using window["location"]["hostname"] instead of + // window.location.hostname because when deno runs app_test.js it gets a type + // error here, not knowing about window.location. Ideally Deno would skip + // type check entirely on JS files. + if (window["location"]["hostname"] != "deno.github.io") { + dataUrl = "https://denoland.github.io/deno/" + dataUrl; + } drawChartsFromBenchmarkData(dataUrl); drawChartsFromTravisData(); } -- cgit v1.2.3