Brian S. Stephan
4f45943775
initialize markdown on a per-page basis
...
the footnote extra expects to only parse one document over the Markup's
lifetime, and writes the footnotes to the bottom of every page that is
rendered (again assuming only one) with links back to the reference
having one parser for the entire app, naturally, introduced
ever-increasing footnote links and every footnote on the site showing up
on every page. this was not intended
in some light testing, doing this per-request has a nominal effect on
performance
2021-02-11 18:17:26 -06:00
Brian S. Stephan
5ca483a904
configurable markdown extensions
...
meta is always loaded, because the code expects it
2020-10-29 23:51:58 -05:00
Brian S. Stephan
14f6125f4e
use new-style tox.ini, add flake8-docstrings, add docstrings
2020-06-17 20:18:43 -05:00
Brian S. Stephan
ed0dab14f3
tweak request logging, log response info
2020-03-15 18:43:15 -05:00
Brian S. Stephan
2634c144a7
support a media/ dir under the instance dir
...
this is for miscellaneous files that should be served directly rather
than being a page route
2020-03-08 11:48:49 -05:00
Brian S. Stephan
ab009e4f59
reorder config imports for more specific overrides
2020-03-07 19:37:02 -06:00
Brian S. Stephan
fe0ca7d90b
rename journal module to pages
...
this better represents the general purpose of this module, rather than
just "journal" stuff (though that will likely be a use)
2020-03-07 14:11:12 -06:00
Brian S. Stephan
17bbe9c6b4
allow explicit instance_path in create_app()
...
this will be necessary to point pytest's app fixture at a different
instance directory with test data
2020-03-07 09:24:20 -06:00
Brian S. Stephan
76bdc28a9f
add setup.py with versioneer support
2020-03-07 00:29:17 -06:00
Brian S. Stephan
592f3e90b0
remove a debugging print statement
2020-03-06 22:51:04 -06:00
Brian S. Stephan
7d23b15043
log all incoming requests
2020-03-06 19:53:29 -06:00
Brian S. Stephan
ded784219e
skeleton journal functionality --- catch-all view
...
all this does at the moment is echoes the path from the request back in
the response, but it's the super basic plumbing I can write at the
moment
2020-03-06 18:08:24 -06:00
Brian S. Stephan
a28f27206b
basic create_app() and configuration scaffolding
2020-03-06 17:51:20 -06:00