| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit fixes the is_hidden_path function to work for subdirectories
and also remove entries from the RSS file
view_functions.py has been refactored use the siteconfig
file instead of the app to remove unecessary imports and avoid
circularly imports
This also moves logic for the default site directories from server.py to
siteconfig.py so it's accessible before the app runs. This has the
benefit of cleaning up the server file, but the drawback of adding the
os import to the siteconfig file. Settings have been moved around for
(hopefully) easier reading
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds rss_generator.py which contains the main logic for
indexing the site directory and generating a feed on startup. It serves
as a sort of ad-hoc database which is accessed when /feed.xml is
requested.
Also corrects various typos, README nonsense, and expands the config
options for RSS. Instances of './templates/site' have been replaced with
the general BASE_DIR variable in the siteconfig.
|
|
|
|
|
|
| |
This commit removes a lot of unnecessary rambling from the README
and also makes it easier to use more complex cache options if you want
to
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds the Flask-Caching module to the software stack and
enables the caching of views in a wide variety of ways, but implemented
here to be simple to understand to someone new to the concept of caching
(aka me).
Various documentation and formatting was applied to all files. views.py
internal functions (mostly related to filesystem operations of the
server). have been moved into view_functions.py
|
|
|
|
|
|
| |
This commit adds Flask-Compress to the stack, an excellent module that
makes the site load faster. This also adds and amends the default
siteconfig
|
|
|
|
|
|
|
|
|
| |
This clarifies what the MAIN_SITE_DIRS option means since one might
read it to mean you can put your directories anywhere. Not so, you can
only pick which dirs are displayed with that option.
Also recommends to not use the secret key unless needed (for what
reason, I don't know).
|
|
|
|
|
| |
Moves the setup() function outside of main so the app is setup before a
wrapper runs it. Also fixes deployment tutorial in the README
|
|
|