Commit Graph

295 Commits

Author SHA1 Message Date
f72894f437 add a class for forcing something full width
using this for the occasional figure that I want to be full width but
also have the caption stuff, since the default (that I use often) is
figures are 30%

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-25 14:38:20 -06:00
34639edd74 remove the broken/deprecated redirect tag support
when this project *wasn't* a SSG, it could serve up redirects, which is
something that was only rarely needed, and looking now, I don't do it at
all on any of my current sites, so I'm just going to remove the tiny bit
of code for it that remained in the SSG project

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-25 09:54:16 -06:00
bcb2b1be7e add the ability to specify the content license in the footer
e.g. for marking all pages as CC BY-SA 4.0

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-24 10:08:20 -06:00
d22c3f84ac have floating img/figure clear their side, to avoid "waterfalls"
I have many things floating to the right on the ttrpg site, where the
first would be most right, the second would be right but left of the
first thing, and so on. this forces those to clear their respective side
and create a quasi-column of things rather than making a bizarre ratchet
of content.

.......... A
.......... A
.......... B
(good)

vs.

.......... A
........ B A
(bad)

I can't see why I'd want the bad behavior on my other sites, but I'll
just mention that I didn't check to see what they were doing

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-24 10:02:57 -06:00
2d5528fa82 style super links for footnotes
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-24 10:00:31 -06:00
23c4c57f2f give the plain HTML table some borders
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-24 10:00:30 -06:00
6a7d009f35 style hr in the main light/dark styles, used in footnotes
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-24 10:00:28 -06:00
7ec8c05bb4 slightly tweak footnote refs, and actually style footnotes
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-24 10:00:26 -06:00
b10fe555df tweak table header bg color to stand out less
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-24 10:00:24 -06:00
20e8cdbbf1 remove unnecessary type="text/javascript"
CSS validator says: Warning: The type attribute is unnecessary for JavaScript resources

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-02-24 10:00:15 -06:00
e056f57797 Changelog for v2.1.1
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
v2.1.1
2026-01-28 16:16:11 -06:00
9b7ab74644 remove unused request_path_to_breadcrumb_display
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-01-28 16:10:53 -06:00
204e7bc416 use h1-as-title logic while generating breadcrumbs
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-01-28 16:08:41 -06:00
ee4215ede2 Changelog for v2.1.0
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
v2.1.0
2026-01-28 14:46:54 -06:00
f7e211564e refer to py3.10 in instructions, now that 3.9 is unsupported
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-01-28 14:40:45 -06:00
8238787900 use beautifulsoup to parse the description from the first paragraph
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-01-28 14:40:45 -06:00
20673c178a use beautifulsoup to derive title from HTML h1
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-01-28 14:40:45 -06:00
3ca13cc6f8 requirements bump
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-01-28 14:40:45 -06:00
7b2bf6905a test the high level SSG build command
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-01-28 14:40:45 -06:00
dd2f5eeaea remove python 3.9 from supported versions
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2026-01-28 14:40:45 -06:00
d66a471c76 Changelog for v2.0.5
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
v2.0.5
2025-09-18 16:45:36 -05:00
bbab9de1f6 regenerate requirements-dev.txt to get some safety stuff to shut up
weirdly, if I rebuild the whole requirements-dev.txt, test coverage
drops, so I'm sure that's a problem to worry about later

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-09-18 16:45:01 -05:00
d4f27c9ad8 add python3.13 to tox environments
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-09-18 16:36:14 -05:00
424ec3621d replace links that have .md suffixes with clean links
to aid viewing the raw markdown source in e.g. a gitlab source browser,
or to aid navigation in vim with "gf" style commands to jump between
files, allow the markdown source to specify foo.md or whatever/index.md
explicitly, yet generate the clean URLs for linking in the HTML output

this assumes that nginx is serving "foo" with foo.html, and "bar/" with
bar/index.html

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-09-18 14:19:48 -05:00
7205bb2aa5 changelog for v2.0.4
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
v2.0.4
2025-03-21 11:48:20 -05:00
88b678931e properly handle symlinks as relative to the output dir
the code meant to make symlinks relative to the output directory, but
only actually succeeded at it for targets in the root of the output
directory; since we already check that the target is not breaking out of
the instance, we can generate the output symlink relative to itself and
fix the subdirred-symlink behavior

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-21 11:43:18 -05:00
8c75947088 remove os.chdir usage, rely on absolute and relative paths more
os.chdir was getting confusing and hurting the log output, and
potentially the cause of a couple bugs left to fix, so this removes it,
but it means we need to pass around the pages/ absolute path into the
markdown parser, because it relies on knowing both the absolute path
now (to open files), and also the path relative to the pages dir in
order to know where to stop reading parent files/how to generate proper
URL-like references to other files.

probably this should be refactored at some point to inherit the pages/
path from the SSG somehow, rather than passing it through a bunch of
methods, but this seems to work for now

fixes #22

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-21 10:47:42 -05:00
e75d5c48d2 changelog for v2.0.3, though I forgot to put it in the tag
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-21 08:36:29 -05:00
201cd80804 when symlinking foo.md, also symlink foo.html if generating .html
fixes #24

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
v2.0.3
2025-03-21 08:31:31 -05:00
a327c6b89c remove the Flask classifier, since we don't do it anymore
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-21 08:23:31 -05:00
27d4d16572 go back to using the "or any later version" clause of GPLv3
I think arguments that "Such new versions will be similar in spirit to
the present version", in my own reading and readings such as in
https://www.draketo.de/software/gpl-or-later, convince me for now that
it is acceptable to allow the "or later" for compatibility and future
problem's sake

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-21 08:22:49 -05:00
b69bdb424a CHANGELOG for v2.0.2
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
v2.0.2
2025-03-18 21:28:15 -05:00
c46a1c0bae don't handle custom-static dirs specially anymore
they're just more static files among all the static files we serve, they
should go into pages/ like everything else

fixes #20

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-18 21:26:25 -05:00
359916e7d9 do some trivial cleanups in README
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-18 21:20:12 -05:00
d49b9d48a8 don't add an artificial ./ subdir due to how os.path.relpath works
this fixes stuff like og:urls of https://foo/./ or https://foo/./page
and also removes an extra layer of depth in the breadcrumb hierarchy,
just by suppressing the '.' in relpath output at the root of pages/

fixes #21

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-18 21:09:50 -05:00
9caf08a277 changelog for v2.0.1
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
v2.0.1
2025-03-18 08:24:46 -05:00
8aabd93273 don't copy .files into the SSG output dir
they may be vim swap files and that kind of garbage

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-18 08:20:58 -05:00
6d7987cfae don't require the host to be in the Image tag
now that we know our base host via config, we can stop hardcoding it in
each Image tag

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-18 08:13:18 -05:00
abc05ee4e8 fix how my email address displays in gitea
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 13:22:30 -05:00
f623ffdd7c don't refer to my manual uploads now that I push to PyPI
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 13:13:25 -05:00
2a4cc26c06 slight tweak to the description, and clarify what isn't GPLv3
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
v2.0.0
2025-03-17 11:01:23 -05:00
4f39bea3a9 fix up the object attributes for in/out dirs in the generator
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 10:39:18 -05:00
9104769299 document my regrettable opening of Pandora's box
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 10:12:18 -05:00
5b17041b66 move the style switcher to the a separate .js file
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 10:06:15 -05:00
d52fc4df9a fix where the feed generator outputs to, and also output error pages
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 09:07:56 -05:00
4644aea4b0 bump the copyright on some new/rewritten modules
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 08:06:06 -05:00
749576f535 README cleanups
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 07:13:53 -05:00
afc85faa2f make the style cookie apply to the whole site
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 01:00:10 -05:00
f3eed9d4f2 fix and test the linking to the style switcher
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 00:47:00 -05:00
41350d4b7a remove debug stuff from the style switcher JS
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2025-03-17 00:38:37 -05:00