Commit Graph

14 Commits

Author SHA1 Message Date
315412ff5d
Remove unused import and update query count 2022-10-05 09:23:58 +01:00
b515b6368c
Optimise for cache hits
Don't select/prefetch for listing, because we cache the entire listing item. This makes the main query more efficient, thus page loads faster.
2022-10-04 20:49:29 +01:00
e4476e1b2a
Ensure heading ids are always valid ids 2022-09-23 15:36:23 +01:00
c660e54bae
Add method to prefetch for listing 2022-08-28 14:52:27 +01:00
65044361a6
Only parse header tags when looking for ToC 2022-07-04 18:56:11 +01:00
60e4913e43
Add basic tests for extract_text 2022-07-04 09:21:12 +01:00
4702afd5dd
Reduce complexity trying to save computation on rendering streamfield
This replaces more custom iteration with caching, which will end up faster anyway, and is more drop-in with the new structure.

Sadly it still renders the content twice, as `get_content_html` requires access to the blocks.
2022-07-03 23:10:57 +01:00
03e9da57a1
Add anchor links to headers 2022-07-01 09:25:57 +01:00
1c7917cb86
Add tests for ToC generator 2022-07-01 08:55:42 +01:00
af2dba84cd
Get table of contents from body 2022-06-30 23:27:50 +01:00
6600b9ccb7
Build ToC from python 2022-06-19 20:14:22 +01:00
d5d0b293f7
Add debug toolbar 2022-06-14 22:29:08 +01:00
e2d5101a56
Add linting 2022-06-12 15:24:17 +01:00
d17b0af9f6
Add tests for unique body classes 2022-06-10 16:22:20 +01:00