Brian S. Stephan
69feb0c29c
add a 75% max-width class, using it for GOTY?
2022-01-02 22:51:21 -06:00
Brian S. Stephan
788a9cbaba
use a smaller font for the styled pages
2022-01-02 22:50:04 -06:00
Brian S. Stephan
be6d96273c
eliminate warnings about how we register the pydot markdown extension
2021-11-03 14:16:18 -05:00
Brian S. Stephan
8a62167cea
remove some self-specific stuff from settings
...
implements most, if not all, of #15
2021-11-01 23:27:00 -05:00
Brian S. Stephan
4ea824e86f
provide some comments explaining the css files
2021-11-01 23:20:42 -05:00
Brian S. Stephan
28dbfd45b5
remove bss-specific image from the package
...
part of the work of #15
2021-11-01 23:20:16 -05:00
Brian S. Stephan
ccf8434f43
remove a bunch of unnecessary font size styling
...
in the end, a lot of this doesn't really matter, and right now, I
slightly prefer the site with a touch bigger font, so let's just let the
default do its thing
2021-10-08 07:16:31 -05:00
Brian S. Stephan
e61c55bed2
handle graphviz parsing errors more cleanly
2021-06-24 11:37:57 -05:00
Brian S. Stephan
da055acda6
provide markdown extension to render graphviz
...
this is server side, and a more standard format, and thus I like it more
than mermaid, which I've been using at work. but, I really wanted a
server-side option (see my manifesto) for drawing relationship graphs,
for D&D stuff of all things.
this adds an optional 'graphviz' feature to package installation which
consequently depends on pydot
2021-06-24 09:46:26 -05:00
Brian S. Stephan
1583e3be99
more debugging and catch md misconfigured error
2021-06-24 09:43:00 -05:00
Brian S. Stephan
f0d4e7d3d9
have footer clear: both;
...
closes #14
2021-06-06 22:28:43 -05:00
Brian S. Stephan
954f7f4e80
allow markdown files to specify a redirect
...
closes #13
2021-06-06 22:24:35 -05:00
Brian S. Stephan
afbfab338f
properly apply site wrap classes to style wide version
...
fixes #12
2021-06-03 07:52:01 -05:00
Brian S. Stephan
65bc028524
implement base-wide.html as an extension of base.html
...
not quite sure why I didn't think of this initially... too much hacking
2021-05-19 22:30:20 -05:00
Brian S. Stephan
e8377adcf5
allow pages to specify different templates
2021-04-30 19:41:39 -05:00
Brian S. Stephan
f4beb15a3b
make directory redirects absolute paths
...
I think this is always the right choice, since we're rewriting the full
input path
2021-04-17 15:06:39 -05:00
Brian S. Stephan
da447d2873
Merge branch 'master' of git.incorporeal.org:bss/incorporeal-cms
2021-04-17 14:57:20 -05:00
Brian S. Stephan
cde82ab918
don't route /media separately anymore
2021-04-17 11:16:34 -05:00
Brian S. Stephan
60715a3a5c
make request -> instance conversion support symlink dirs
...
I think this also clarifies the code, a bit
2021-04-17 10:31:05 -05:00
Brian S. Stephan
c90f0a3a42
treat symlinks as redirects
...
closes #7
2021-04-15 21:44:02 -05:00
Brian S. Stephan
71ead20f3f
have file handler return render type rather than bool
...
for when we have further types to render
2021-04-15 20:36:30 -05:00
Brian S. Stephan
be88c3c1bc
don't error on breadcrumbs if a dir doesn't have index.md
...
fixes #8
2021-04-14 21:35:14 -05:00
Brian S. Stephan
ced67bec8b
allow for serving files directly inside pages/
2021-04-14 20:45:50 -05:00
Brian S. Stephan
757b067e16
create a "plain" style with next to no CSS
2021-03-09 09:10:33 -06:00
Brian S. Stephan
06d948a709
have specific styles @import the base styles
...
this clarifies the value of what was formerly "style.css" a bit, and
also opens the door for potential styles that don't inherit the base
styling at all
2021-03-07 23:09:58 -06:00
Brian S. Stephan
d89fd151ca
use just the page part of the path in breadcrumbs
...
rather than showing the full path (e.g. /foo/bar/baz) in breadcrumbs
when the page doesn't have a Title, show just the leaf (baz)
Closes #4
2021-02-27 00:30:32 -06:00
Brian S. Stephan
ce1ed60dd2
allow for configuration to override the favicon
...
Closes #5
2021-02-27 00:10:03 -06:00
Brian S. Stephan
f46bff6ec6
tweak language around the email
2021-02-23 13:16:58 -06:00
Brian S. Stephan
70a8d4f06a
add configurable contact email for error pages
2021-02-23 13:11:52 -06:00
Brian S. Stephan
0bfea79a8f
log the OSError before returning 500
2021-02-21 19:37:59 -06:00
Brian S. Stephan
39d78af524
add error handler pages for 400, 404, 500
2021-02-21 19:35:52 -06:00
Brian S. Stephan
e570ee26b5
clean up unused imports
2021-02-21 18:41:09 -06:00
Brian S. Stephan
411ecebbc6
fold some nav/style menu styles into header
...
unnecessarily duplicated now that I have div.header, and also useful for
when I start the error handling pages
2021-02-21 10:14:42 -06:00
Brian S. Stephan
c1801b0086
move render() into shared spot
...
going to be used by error page handling code, once it exists
2021-02-20 23:36:03 -06:00
Brian S. Stephan
f08c1117d8
move site suffix into title always
...
this tweaks the behavior of the title to always append ' - suffix' to
any title (from the meta tag, or generated via request path), unless the
page explicitly specifies an empty Title meta tag
2021-02-20 23:21:29 -06:00
Brian S. Stephan
dd7687884a
remove resolve_page_file, been refactored away
2021-02-20 22:50:56 -06:00
Brian S. Stephan
15c88d920b
use request path as an alternative to Title metadata
2021-02-20 22:43:42 -06:00
Brian S. Stephan
1cef3b8196
rewrite generate_parent_navs to work on resource paths
...
the old code was kind of impossible to understand by reading it, so this
is hopefully considerably clearer
2021-02-20 21:47:39 -06:00
Brian S. Stephan
4dcc1c91c2
add method to from resource path to request path
2021-02-20 19:19:36 -06:00
Brian S. Stephan
1c40f45ffd
clarify name of request_path_to_instance_resource_path
2021-02-20 17:53:32 -06:00
Brian S. Stephan
2e0e87fe95
begin rewriting path to resource resolver
...
this code was getting too messy and scattered, and I realized that Flask
wasn't doing as much as I thought it was here, so now we need more
safety and sanity checks
2021-02-20 17:42:58 -06:00
Brian S. Stephan
b6aa125b8d
add sane_lists to markdown extensions
...
this fixes stuff like
* foo
* bar
1. hax
2021-02-13 11:07:00 -06:00
Brian S. Stephan
15142054da
tweak the appearance of footnotes
2021-02-12 19:37:25 -06:00
Brian S. Stephan
dc81ef35de
float image left/right for inlining in an article
2021-02-12 12:51:43 -06:00
Brian S. Stephan
c292f33334
CSS for framing an image inline the article
2021-02-12 12:51:12 -06:00
Brian S. Stephan
7cf8a427ce
add an .img-25 for 25% wide images
2021-02-12 09:26:10 -06:00
Brian S. Stephan
e8a749d9ba
Revert "tweak the base text line height, again"
...
This reverts commit 1878d5951b
.
the more I look at this, the more I like the old text spacing
2021-02-12 09:21:21 -06:00
Brian S. Stephan
ae72fe87b5
class to center an image as a block element
...
this is effectively a replacement for div.splash means of getting a
centered header image, and can be used anywhere
2021-02-12 09:19:35 -06:00
Brian S. Stephan
bb0e71e9e4
give *all* images max-width of the inner column
...
this was done for the giant splash logo but I should really just
restrain this everywhere
2021-02-12 09:18:54 -06:00
Brian S. Stephan
3bfdacdb6d
add attr_list to markdown extensions
...
this will lead to me putting less HTML in the .md files, which is a good
thing
2021-02-12 09:15:41 -06:00
Brian S. Stephan
e6d2015de5
use smarty markdown extension for dashes, ellipses
2021-02-11 19:05:01 -06:00
Brian S. Stephan
56eb767e33
don't let sub/superscripts affect line height
2021-02-11 18:53:57 -06:00
Brian S. Stephan
07031fe667
enable footnotes extra for markdown
2021-02-11 18:36:48 -06:00
Brian S. Stephan
48c6e8495a
provide some styling of footnotes
2021-02-11 18:20:42 -06:00
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
b26ea6a661
add html tag in order to specify lang="en"
2021-02-11 09:36:24 -06:00
Brian S. Stephan
1878d5951b
tweak the base text line height, again
2021-02-11 09:35:21 -06:00
Brian S. Stephan
829165ad8c
style link underline same color as the hover
2021-02-11 09:35:21 -06:00
Brian S. Stephan
7d982b96c9
tweak text colors; less normal, more bold
2021-02-11 09:35:21 -06:00
Brian S. Stephan
5e41cde52e
use a flexbox for the header sections
...
this is better than a float because I have always kind of hated how
floating divs work, and this also orders and displays the navs better in
elinks
2021-02-11 00:23:19 -06:00
Brian S. Stephan
ad33cf2e83
replace section tags with div tags
...
syntactically incorrect usage, as picked up by a W3C validator
2021-02-11 00:08:19 -06:00
Brian S. Stephan
87ad48d8d2
add mdx-linkify to markdown extensions
2021-01-22 09:51:53 -06:00
Brian S. Stephan
c25fefa9e3
add opengraph metadata to pages, via Markdown meta
2021-01-17 23:02:14 -06:00
Brian S. Stephan
b0795999fe
make splash images look better on small devices
2020-12-14 16:26:08 -06:00
Brian S. Stephan
aaced9d0e1
add polycephaly-style figure support
...
this is really pushing my patience for CSS, but I've always thought this
looked nice, so I'm going to try to retain it
2020-12-14 16:25:35 -06:00
Brian S. Stephan
4042932240
tone down the line-height a bit
...
I think the color changes and using viewport magic has helped
readability a bit
2020-12-08 18:56:49 -06:00
Brian S. Stephan
49ab2befb6
disable browser resize magic, do viewport magic instead
2020-12-08 18:47:02 -06:00
Brian S. Stephan
fbf6a81e0b
use my old "square" logo as favicon
...
also provide a backgroundless version as a possible splash page image
2020-12-08 18:46:04 -06:00
Brian S. Stephan
dabf9f7544
more corrections of the link colors
2020-12-08 18:27:55 -06:00
Brian S. Stephan
d2c1c2e3ce
why did I make user styles a config setting???
...
this moves it into the code, where it's sensible, and leaves the default
to the config
2020-12-08 16:43:20 -06:00
Brian S. Stephan
67e1890629
increase the line height for readability(?)
2020-12-07 21:55:56 -06:00
Brian S. Stephan
e1cb541ea5
highlight links in light theme as in dark theme
2020-12-07 21:55:32 -06:00
Brian S. Stephan
93e9c8dc24
tweaks to the dark theme
2020-12-07 21:54:43 -06:00
Brian S. Stephan
7cf11986c5
user-selectable light and dark themes
...
cookies, template rendering with different CSS files via default or
request param or cookie, etc.
2020-10-30 00:19:19 -05: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
fe7d61e1f7
actually style the white bg beyond the viewport scroll
2020-10-25 18:05:48 -05:00
Brian S. Stephan
1398cfe3db
put some sidebars on the site for readability
2020-10-25 17:48:19 -05:00
Brian S. Stephan
0f7495bf2b
add the ability to redirect a file-looking request to a dir
...
if the client has requested /foo, and foo is actually a directory,
this redirects the client to /foo/
2020-06-19 19:58:12 -05:00
Brian S. Stephan
cf8f0325a2
fix /most/ isort problems, but conftest.py is being weird
2020-06-19 19:54:01 -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
5994b73b2e
give tables a lighter border
2020-06-14 10:56:57 -05:00
Brian S. Stephan
dadc902c49
put a bit of a background behind blockquote
...
closes #2
2020-06-14 10:55:24 -05:00
Brian S. Stephan
5c8251d01a
explicitly set the footer margin-top
2020-06-14 10:01:07 -05:00
Brian S. Stephan
ce06de78a8
tests misleadingly had a leading /, need to append it ourselves
2020-05-28 16:52:43 -05:00
Brian S. Stephan
beea0c80bf
CSS: slightly tweak/specify the text size/height
2020-05-28 12:18:28 -05:00
Brian S. Stephan
ab977f7e81
header CSS tweaks
2020-05-28 12:18:04 -05:00
Brian S. Stephan
05f879ab80
display untitled-page paths as /path rather than path.md
2020-05-28 12:17:27 -05:00
Brian S. Stephan
059108c37b
rewrite generate_parent_navs
...
* works on a path now, not a file location
* as such is sliiiiiightly easier to understand
* now also puts the current page in the nav
* fixed failing test where this caused an error (rather than 404) on
non-existent paths
2020-05-28 12:09:59 -05:00
Brian S. Stephan
0993147dea
give tables a bottom margin
...
otherwise they look bad, for instance, at the very end of the page, too
close to the "Last modified" text.
2020-05-28 08:20:24 -05:00
Brian S. Stephan
da2476bbda
enable table support in the markdown parser
2020-04-05 10:25:46 -05:00
Brian S. Stephan
576ffc359c
show some navigation on every page
...
closes #1
2020-03-15 20:33:23 -05:00
Brian S. Stephan
582cc9a2d1
rename: page_file_resolver -> resolve_page_file
2020-03-15 18:52:49 -05:00
Brian S. Stephan
5ce44ba31c
move display_page path resolution logging to DEBUG
2020-03-15 18:43:41 -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
16373d3e55
custom styling to links, lighten up text a bit
2020-03-08 11:32:34 -05:00
Brian S. Stephan
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
Brian S. Stephan
ab009e4f59
reorder config imports for more specific overrides
2020-03-07 19:37:02 -06:00
Brian S. Stephan
01cd6587e0
add a HTML5 favicon icon
...
mostly so browsers stop requesting the old ancient path
2020-03-07 17:40:24 -06:00
Brian S. Stephan
438cc08edc
more style.css into a static/css/ directory
2020-03-07 17:26:32 -06:00