Rename 'renderer' folder to 'viewer' and move JS/CSS files into separate folders

This commit is contained in:
chylex 2020-04-18 19:34:57 +02:00
parent 016adadd3e
commit ce958d63ac
17 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ Fork the repository and clone it to your computer (if you've never used git, you
Now you can modify the source code:
* `src/tracker/` contains JS files that are automatically combined into the **tracker bookmark/script**
* `src/renderer/` contains HTML, CSS, JS files that are then combined into the **offline viewer page**
* `src/viewer/` contains HTML, CSS, JS files that are then combined into the **offline viewer page**
* `lib/` contains utilities required to build the project
* `web/` contains source code of the [official website](https://dht.chylex.com), which can be used as a template when making your own website

View File

@ -132,11 +132,11 @@ def build_tracker_userscript():
out.write(userscript_contents[1])
def build_renderer():
def build_viewer():
output_file = "bld/viewer.html"
input_html = "src/renderer/index.html"
input_html = "src/viewer/index.html"
input_css_pattern = "src/renderer/*.css"
input_css_pattern = "src/viewer/styles/*.css"
tmp_css_file_combined = "bld/viewer.tmp.css"
tmp_css_file_minified = "bld/viewer.min.css"
@ -146,7 +146,7 @@ def build_renderer():
minify_css(tmp_css_file_combined, tmp_css_file_minified)
os.remove(tmp_css_file_combined)
input_js_pattern = "src/renderer/*.js"
input_js_pattern = "src/viewer/scripts/*.js"
tmp_js_file_combined = "bld/viewer.tmp.js"
tmp_js_file_minified = "bld/viewer.min.js"
@ -213,8 +213,8 @@ build_tracker_html()
print("Building tracker userscript...")
build_tracker_userscript()
print("Building renderer...")
build_renderer()
print("Building viewer...")
build_viewer()
if BUILD_WEBSITE:
print("Building website...")