mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-04-14 07:37:13 +03:00
Change 'render.html' to 'viewer.html'
This commit is contained in:
parent
33fef6e897
commit
91fd8251ca
@ -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.
|
||||
|
||||
|
10
build.py
10
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user