Commit Graph

99 Commits

Author SHA1 Message Date
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 8a6f4d6b45 test multi-line metadata entries 2021-01-17 23:58:57 -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 dcf173ab61 add a test to ensure style selection works 2020-12-08 17:12:35 -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 3fcf916317 requirements bump 2020-12-08 16:33:19 -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 f63de031f6 tox updates: run py38, combine coverage, dist-as-dir 2020-10-20 16:07:49 -05:00
Brian S. Stephan 46bce5a0a5 recompile all requirements, add flake8-mutable 2020-10-20 16:05:17 -05:00
Brian S. Stephan 0af0f4e8aa tox.ini updates, use requirements-dev.txt, fix pathing 2020-06-23 13:33:15 -05:00
Brian S. Stephan 08896a18c1 reorganize requirements-dev.in, add dlint and flake8-fixme, bandit 2020-06-23 13:30:49 -05:00
Brian S. Stephan ea7c9a1e07 let TODOs through linting, but warn about them 2020-06-22 19:09:39 -05:00
Brian S. Stephan 63da59efd5 enable flake8-logging-format violations 2020-06-22 18:50:13 -05:00
Brian S. Stephan c7d4a1c930 add any suppressed flake8-fixme messages in the fail-open run 2020-06-22 18:49:34 -05:00
Brian S. Stephan 421d0e6f8e properly create the symlink to dist/ across multiple runs of tox 2020-06-22 18:48:22 -05:00
Brian S. Stephan 5c1fc93ff9 combine tox deps in order to unconfuse flake8-isort
with pytest not being included in the lint environment, flake8-isort
didn't know how to treat it vs. incorporealcms imports, leading to false
positives only inside tox. this makes it so that certain packages
(defined in base deps) can be imported in any/all envs, because they
show up in analyzed/imported/etc code rather than being merely tools
2020-06-22 18:48:18 -05:00
Brian S. Stephan 7b5f7ff00b add dlint and flake8-fixme 2020-06-20 10:48:46 -05:00
Brian S. Stephan 9db5189c65 add flake8-isort, with a caveat 2020-06-19 20:23:23 -05:00
Brian S. Stephan ab2d754e43 reorganize tox.ini a bit and use pytest-cov rather than coverage directly 2020-06-19 20:01:06 -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 718b217868 add flake8 and many plugins to requirements-dev, for vim's sake 2020-06-19 19:40:01 -05:00
Brian S. Stephan ebaccbd0ad organize tests a bit better between unit and functional tests 2020-06-18 23:36:51 -05:00
Brian S. Stephan 63f13398e0 versioneer.py doesn't need to be included in the package 2020-06-18 23:29:37 -05:00
Brian S. Stephan 605a82680d add bandit and flake8 plugins to tox, remove redundant deps 2020-06-18 17:39:34 -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 21f65813fb properly run pytest + cov in the tox env 2020-06-17 16:34:50 -05:00
Brian S. Stephan f77aebb097 replace CI tools with tox invocation 2020-06-16 23:00:49 -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