1
Fork 0
Commit Graph

48 Commits

Author SHA1 Message Date
Jake Howard 22acce3941
Prebuild index 2023-09-27 20:45:26 +01:00
Jake Howard d706f357e4
Use `max` to efficiently get latest list item 2023-09-25 22:56:26 +01:00
Jake Howard 6900aa08f5
Find the latest page 2023-09-25 22:20:55 +01:00
Jake Howard f3edcc1752
Mutate external URLs 2023-09-24 18:04:13 +01:00
Jake Howard 8da317e061
Dynamically get supported kroki languages 2023-09-24 17:42:42 +01:00
Jake Howard 61f0bd2a43
Optimise SVG compression
Actually strip out some tags and newlines
2023-09-18 11:26:42 +01:00
Jake Howard 4d36f4f1e3
Allow escaping markdown from external data 2023-09-17 20:13:45 +01:00
Jake Howard c826bda91b
move opener config to startup hook 2023-09-17 17:53:59 +01:00
Jake Howard a6900908b0
Exclude certain files from output 2023-09-17 17:41:09 +01:00
Jake Howard 0305754b83
Render pages with config
Mostly useful if template tags want to use it
2023-09-17 17:15:28 +01:00
Jake Howard 34acb96ec1
Download images with unsplash 2023-09-17 16:15:03 +01:00
Jake Howard ce7bb446d6
Improve error handling 2023-09-15 22:39:35 +01:00
Jake Howard c18f29bd39
Add SRI extension 2023-09-15 22:29:43 +01:00
Jake Howard 425f87c609
Get env once 2023-09-15 22:06:39 +01:00
Jake Howard 76fa263379
Allow custom content for tag list page 2023-09-15 22:05:07 +01:00
Jake Howard e23e44bfe9
Simplify tempfile setup 2023-09-15 21:56:31 +01:00
Jake Howard 5f5a057c34
Add title to diagram filename 2023-09-15 21:41:46 +01:00
Jake Howard 2f94dc4231
Move generated to their own location 2023-09-15 21:23:33 +01:00
Jake Howard d0fea7851a
Extract out diagram types 2023-09-15 21:14:06 +01:00
Jake Howard b501c34afb
Ensure parent page is actually a page 2023-09-15 21:11:44 +01:00
Jake Howard 2b49b04154
Fix tag navigation tree 2023-09-15 21:09:19 +01:00
Jake Howard e12e8e682b
Extend main in tag template 2023-09-15 19:15:14 +01:00
Jake Howard 495f64c10e
Correctly find parent for single-child sections
More like pages with associated files, really
2023-09-15 18:19:06 +01:00
Jake Howard 4497904ce2
Show child sections as children 2023-09-15 18:11:06 +01:00
Jake Howard d247f39d0b
Allow reading diagrams from file 2023-09-15 18:05:28 +01:00
Jake Howard fa3cfce34a
Compress and filter SVGs before saving 2023-09-15 17:41:31 +01:00
Jake Howard bbdaebfcb0
Build my own kroki integration
It's faster, easier to work with, and properly supports superfences
2023-09-15 16:48:31 +01:00
Jake Howard 2c8e841a44
Actually install bs4 2023-09-15 15:15:13 +01:00
Jake Howard ed9c4a8dfe
Disable Kroki for now
It increases my iteration time
2023-09-14 22:02:52 +01:00
Jake Howard ae44083c72
Add function to get page URL
This is much easier to work with
2023-09-14 22:02:40 +01:00
Jake Howard c25fb3e76c
Stop removing tag metadata file
This breaks URL resolution for them
2023-09-14 21:57:10 +01:00
Jake Howard a8087a2508
Write files with utils 2023-09-14 21:40:14 +01:00
Jake Howard 27f068a82f
Write pygments styles 2023-09-14 21:28:35 +01:00
Jake Howard e0508041a6
Add highlighting 2023-09-14 20:01:36 +01:00
Jake Howard 9eb09cf695
Add hook for setting global variables 2023-09-13 21:23:43 +01:00
Jake Howard d2777ba027
Write nginx-compatible map file for redirects 2023-09-12 22:42:33 +01:00
Jake Howard 8038bb819d
Render page content before anything else 2023-09-12 18:29:50 +01:00
Jake Howard e393c7c5c1
Only write search index, not supporting JS 2023-09-12 17:59:29 +01:00
Jake Howard ed8c42ce86
Add cachebust hash to static files 2023-09-11 22:49:52 +01:00
Jake Howard e8e48a3983
Add kroki plugin for diagrams 2023-09-10 15:08:45 +01:00
Jake Howard b68cb5d337
Render page content 2023-09-10 14:44:04 +01:00
Jake Howard 641a157a7b
Add skeleton for image resizing 2023-09-09 12:05:16 +01:00
Jake Howard cb3dfeea75
Remove found tag page afterwards
Save rendering it twice
2023-09-09 11:01:23 +01:00
Jake Howard 9c06ead675
Add util for finding page 2023-09-09 10:56:04 +01:00
Jake Howard b04042a839
Dynamically create tag pages 2023-09-09 10:48:03 +01:00
Jake Howard c8eb405165
Reliably get page children for list pages 2023-09-08 22:32:51 +01:00
Jake Howard f3bb6b0b3c
Detect whether page is list page 2023-09-08 22:10:52 +01:00
Jake Howard 9800836c52
Bootstrap an mkdocs 2023-09-08 21:49:57 +01:00