Change 'render.html' to 'viewer.html'

This commit is contained in:
chylex 2017-05-31 15:39:29 +02:00
parent 33fef6e897
commit 91fd8251ca
2 changed files with 7 additions and 7 deletions

View File

@ -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.

View File

@ -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)