Commit Graph

60 Commits

Author SHA1 Message Date
Jake Howard 2779a3e97f
Fix arguments on `after_move_page` hook 2024-05-04 20:56:23 +01:00
Jake Howard ac2ba1ef17
Return when a colours error is found 2024-05-04 20:53:45 +01:00
Jake Howard a1808f4bb4
Add description to image lightbox 2024-04-07 20:05:31 +01:00
Jake Howard 5ff5ad113b
Load potentially external images without referrer 2024-01-17 19:38:42 +00:00
Jake Howard 48e36bc5b9
Update to Wagtail 5.2 (and others) 2024-01-05 15:30:31 +00:00
Jake Howard 36749ceac3
Create a global requests session
This should massively cut down on the number of TCP handshakes
2023-09-04 21:48:10 +01:00
Jake Howard 4d3d6bbc9a
Remove unsplash healthchecks
Their API is more annoying
2023-08-19 13:59:43 +01:00
Jake Howard 8c7f6b7f69
Better handle healthcheck errors 2023-08-19 13:19:42 +01:00
Jake Howard e870f4b162
Add unsplash healthcheck 2023-08-19 13:19:32 +01:00
Jake Howard 6b3f0273a1
Add Healthcheck for Linguist colours 2023-08-19 13:09:26 +01:00
Jake Howard 530503d769
Add in-memory cache around linguist data
Mostly useful for local development, but should help a little in production too
2023-07-15 17:47:21 +01:00
Jake Howard 29bd939ae4
Replace flake8 and isort with ruff 2023-07-15 15:10:05 +01:00
Jake Howard c2150b66f3
Reduce cache times
This means content will be updated faster after changes
2023-06-26 13:26:28 +01:00
Jake Howard e4a8fbd14f
Remove blank line in migrations
Keep `black` happy
2023-06-17 12:49:31 +01:00
Jake Howard 2024aa0ad5
Support more images for hero sizes 2023-06-14 09:13:49 +01:00
Jake Howard c2d8ef260a
Add tests for linguist integration 2023-06-04 19:25:38 +01:00
Jake Howard 8f5ab16891
Add display and linguist mapping for postgres 2023-06-04 18:20:21 +01:00
Jake Howard 32f1360362
Reflow HTML based on updated `djlint` 2023-05-05 13:09:16 +01:00
Jake Howard a12bbbfe8d
Remove unnecessary type comment 2023-05-05 13:01:04 +01:00
Jake Howard d85065d914
Colour language tag using GitHub's linguist colours 2023-04-21 21:22:59 +01:00
Jake Howard e504da0bcf
Restyle code block header
This looks much nicer, and removes a DB field.
2023-04-19 21:34:38 +01:00
Jake Howard 0ac4fd1135
Don't fill full width in lightbox 2022-10-29 16:25:51 +01:00
Jake Howard 549a48769d
Swap curlylint and djhtml with djlint 2022-10-05 14:17:00 +01:00
Jake Howard 9096bd4b0b
Fix sizing of content images 2022-10-02 22:38:10 +01:00
Jake Howard 04aa301c75
Add management command to purge caches 2022-10-02 20:47:40 +01:00
Jake Howard 2d537d3b10
Correctly get language
Operator precedence is important
2022-09-21 13:29:57 +01:00
Jake Howard e62f9de9fc
Add indexing of unsplash photos 2022-09-20 09:24:00 +01:00
Jake Howard d5aac8ac50
Don't show header if there's nothing useful to show 2022-09-19 16:34:02 +01:00
Jake Howard f3b248110e
Hide updated date when creating unsplash photos 2022-09-15 08:19:22 +01:00
Jake Howard c56cc2f995
Correctly get lexer for language
`get_lexer_by_name` doesn't actually get the lexer by its name...
2022-09-07 14:44:39 +01:00
Jake Howard 71f74251bb
Don't require code header 2022-09-06 08:58:44 +01:00
Jake Howard 7cd88c9fbd
Just set cache control rather than caching page content
This avoids storing tonnes of stuff in the cache, when it doesn't matter
_too_ much
2022-09-04 17:29:04 +01:00
Jake Howard e21d525259
Reset migrations
During dev I made loads, but I don't need them now
2022-09-04 15:56:51 +01:00
Jake Howard ee307bcfbf
Define rich text features in settings
This removes them from migrations, avoiding the need to create new ones
when they change
2022-09-03 21:07:27 +01:00
Jake Howard 7fff13f0ab
Add lightbox for content images 2022-09-02 17:18:40 +01:00
Jake Howard 5d370a0712
Unify pygments stylesheet
It's less generic and less cool, but this bakes the styles for dark and
light into a single stylesheet, and deals with switching without any JS.
2022-08-31 23:02:13 +01:00
Jake Howard 488369a247
Add filename and header show checkbox to code block 2022-08-31 22:30:08 +01:00
Jake Howard 27dc383d17
Use relative URL for singletons
It's rare they'll be needed externally, and this way there's less to do
2022-08-31 09:16:25 +01:00
Jake Howard ce3690384e
Make code header a solid bar instead
This is much easier to layout, and has the benefit of being able to fit
more in.

The transform was still leaving space allocated, which looked odd
2022-08-31 09:05:32 +01:00
Jake Howard 768223ba67
Add spacing around plusses in language dropdown
It looks so much better!
2022-08-30 22:49:05 +01:00
Jake Howard f3b603a82a
Add language and clipboard buttons to code blocks 2022-08-30 22:48:45 +01:00
Jake Howard 6f073c6cfc
Update module name
This will handle more than just URLs
2022-08-28 20:30:50 +01:00
Jake Howard ac46c0ae0b
Add start of simple module to help with caching singleton URLs 2022-08-28 17:42:21 +01:00
Jake Howard 309955a052
Load images async 2022-08-25 22:42:33 +01:00
Jake Howard 32a1486840
Ensure captions are optional 2022-08-20 18:38:28 +01:00
Jake Howard 900aaad850
Simplify caching for pygments styles 2022-08-20 18:32:25 +01:00
Jake Howard 24d92f4760
Use smaller image URL for listing 2022-08-19 14:33:57 +01:00
Jake Howard 5affe274bd
Don't serialize all language options in migrations 2022-08-19 13:40:40 +01:00
Jake Howard ba7a2d7b4d
Use SVG versions of mermaid diagrams for better quality 2022-07-20 23:31:02 +01:00
Jake Howard 85afe6c41b
Add alt tags to image blocks 2022-07-16 16:04:06 +01:00