From 91fd8251ca12b56f6f8f12c572c3525ac5b9d7d1 Mon Sep 17 00:00:00 2001 From: chylex Date: Wed, 31 May 2017 15:39:29 +0200 Subject: [PATCH] Change 'render.html' to 'viewer.html' --- README.md | 4 ++-- build.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 74d4fea..d949c3d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Usage -Visit the [official website](https://dht.chylex.com) to add Discord History Tracker (beta) to your bookmarks and download the renderer. +Visit the [official website](https://dht.chylex.com) to add Discord History Tracker (beta) to your bookmarks and download the viewer. # Building -The build script requires **Python 3**. For automatic build, run `python build.py`, and a `bld` folder with the track script and renderer will be created. +The build script requires **Python 3**. For automatic build, run `python build.py`, and a `bld` folder with the track script and viewer will be created. The `track.js` script is ready to be added as a bookmark in a browser, or ran in a browser console. The `track.html` contains a bookmarkable link you can easily include on a website. diff --git a/build.py b/build.py index a88f7ff..9fc3611 100644 --- a/build.py +++ b/build.py @@ -81,12 +81,12 @@ def build_tracker(): def build_renderer(): - output_file = "bld/render.html" + output_file = "bld/viewer.html" input_html = "src/renderer/index.html" input_css_pattern = "src/renderer/*.css" - tmp_css_file_combined = "bld/render.tmp.css" - tmp_css_file_minified = "bld/render.min.css" + tmp_css_file_combined = "bld/viewer.tmp.css" + tmp_css_file_minified = "bld/viewer.min.css" with open(tmp_css_file_combined, "w") as out: combine_files(input_css_pattern, out) @@ -99,8 +99,8 @@ def build_renderer(): os.remove(tmp_css_file_combined) input_js_pattern = "src/renderer/*.js" - tmp_js_file_combined = "bld/render.tmp.js" - tmp_js_file_minified = "bld/render.min.js" + tmp_js_file_combined = "bld/viewer.tmp.js" + tmp_js_file_minified = "bld/viewer.min.js" with open(tmp_js_file_combined, "w") as out: combine_files(input_js_pattern, out)