Commit Graph

239 Commits

Author SHA1 Message Date
582cc9a2d1 rename: page_file_resolver -> resolve_page_file 2020-03-15 18:52:49 -05:00
5ce44ba31c move display_page path resolution logging to DEBUG 2020-03-15 18:43:41 -05:00
ed0dab14f3 tweak request logging, log response info 2020-03-15 18:43:15 -05:00
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
16373d3e55 custom styling to links, lighten up text a bit 2020-03-08 11:32:34 -05:00
337001a939 allow overriding the "incorporeal.org" in <title>
I'm not going to be able to use this software on incorporeal.org for a
bit, so plan B
2020-03-07 19:43:24 -06:00
ab009e4f59 reorder config imports for more specific overrides 2020-03-07 19:37:02 -06:00
5f5301e9c9 include static files and templates in MANIFEST
exclude some noise, too
2020-03-07 17:46:45 -06:00
01cd6587e0 add a HTML5 favicon icon
mostly so browsers stop requesting the old ancient path
2020-03-07 17:40:24 -06:00
438cc08edc more style.css into a static/css/ directory 2020-03-07 17:26:32 -06:00
b2d34bf658 add some basic styling to the entire site 2020-03-07 16:33:47 -06:00
04145e92f8 add page modified time to the template 2020-03-07 15:39:12 -06:00
75f8488fc3 requirements: add tzlocal for tz identification 2020-03-07 15:03:02 -06:00
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
a5b15d8187 exclude versioneer files from flake8 2020-03-07 13:49:43 -06:00
fdc8c0aab7 add coverage information to pytest runs 2020-03-07 12:06:26 -06:00
1f420eab30 journal: render markdown content + title metadata
this has a really basic template and whatnot at the moment, so
styling/etc isn't done, but this is maybe the last major piece before I
could actually see pushing this onto the site
2020-03-07 12:06:21 -06:00
0118eb2994 improve the logging inside pytest 2020-03-07 11:45:42 -06:00
053e3d96a3 attempt to load resolved journal files
one step closer to actual functionality, attempt to load the resolved
markdown file in the instance directory, or 404 if it doesn't exist
2020-03-07 10:08:23 -06:00
3f22b56c09 prepend 'journal/' to resolved files
this is where the markdown files will go inside the instance dir
2020-03-07 09:50:03 -06:00
d98a0a7935 more organic test cases for journal_file_resolver 2020-03-07 09:47:26 -06:00
2d3a5c10aa add .md in journal_file_resolver
I'm confident enough that this is what I want to do for resolving
content, at least at the moment
2020-03-07 09:45:00 -06:00
1d446436ad use module name as name for journal Blueprint 2020-03-07 09:42:07 -06:00
308eaffe55 more verbose pytest output by default 2020-03-07 09:28:01 -06:00
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
d9c4cbdfe1 .gitignore only the root instance/ flask dir
we will eventually have tests, and we won't want to ignore our test data
inside instance/
2020-03-07 09:22:47 -06:00
11073b4811 add method to convert .*/ paths to .*/index 2020-03-07 08:37:38 -06:00
76bdc28a9f add setup.py with versioneer support 2020-03-07 00:29:17 -06:00
f3d895e25b add versioneer to requirements-dev 2020-03-07 00:15:14 -06:00
1788e56262 add pytest to requirements, re-indent .in files 2020-03-06 23:44:20 -06:00
592f3e90b0 remove a debugging print statement 2020-03-06 22:51:04 -06:00
7d23b15043 log all incoming requests 2020-03-06 19:53:29 -06:00
1c3d745a1a remove accidental excess from requirements files 2020-03-06 19:31:06 -06:00
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
10f9322a1d basic flake8 configuration in setup.cfg 2020-03-06 17:58:09 -06:00
a28f27206b basic create_app() and configuration scaffolding 2020-03-06 17:51:20 -06:00
aa8bce1521 .gitignore: *.swp 2020-03-06 17:18:03 -06:00
950e9f485e requirements: Flask, pip-tools (dev), flake8 (dev) 2020-03-06 17:17:29 -06:00
9569e62a8a Initial commit 2020-03-06 16:55:41 -06:00