Commit 69f8c67f852d70c44154b68ab945fd4689904b0a
1 parent
742fd5f0
Exists in
master
Doc check while reviewing for CRON.
Showing
2 changed files
with
17 additions
and
6 deletions
Show diff stats
README.md
1 | 1 | ||
2 | # Travel Carbon Footprint Calculator | 2 | # Travel Carbon Footprint Calculator |
3 | 3 | ||
4 | +## Overview | ||
5 | + | ||
6 | +- Content is in `content.yml`. | ||
7 | +- Configuration is in `content.yml`. | ||
8 | +- HTML templates are in `flaskr/templates`. | ||
9 | +- Estimation Models are in `flaskr/laws`. | ||
10 | +- Controllers are in `flaskr/controllers`. | ||
11 | + | ||
4 | 12 | ||
5 | ## Installation | 13 | ## Installation |
6 | 14 | ||
15 | +Tested only on Python `2.7`. _Sprint._ | ||
16 | + | ||
7 | virtualenv venv | 17 | virtualenv venv |
8 | source venv/bin/activate | 18 | source venv/bin/activate |
9 | pip install -r requirements.txt | 19 | pip install -r requirements.txt |
@@ -23,9 +33,3 @@ Then, visit http://localhost:5000 | @@ -23,9 +33,3 @@ Then, visit http://localhost:5000 | ||
23 | > We're trying to remove the need for the `export` statements, but… | 33 | > We're trying to remove the need for the `export` statements, but… |
24 | 34 | ||
25 | 35 | ||
26 | -## Overview | ||
27 | - | ||
28 | -Content is in `content.yml`. | ||
29 | -HTML templates are in `flaskr/templates`. | ||
30 | -Estimation Models are in `flaskr/laws`. | ||
31 | -Controllers are in `flaskr/controllers`. |
flaskr/assets.py
1 | from flask_assets import Bundle | 1 | from flask_assets import Bundle |
2 | 2 | ||
3 | +# REGISTRY FOR CASCADING STYLESHEETS AND JAVASCRIPT ########################### | ||
4 | + | ||
5 | +# Add more assets below, as-needed. | ||
6 | +# No need to edit the templates for that. | ||
7 | +# Add your additional css in `common`, not under `css`. | ||
8 | +# --> (relative paths hack fix, gotta go fast) | ||
9 | + | ||
3 | common_css = Bundle( | 10 | common_css = Bundle( |
4 | 'css/vendor/bootstrap.min.css', | 11 | 'css/vendor/bootstrap.min.css', |
5 | 'css/vendor/helper.css', | 12 | 'css/vendor/helper.css', |