Commit graph

492 commits

Author SHA1 Message Date
8b963d7936
Add some flake8 plugins 2022-09-01 09:01:32 +01:00
22e99502cb
Add 2FA
This should only be required in production, but we'll see how it goes.
It doesn't work quite how I expected it to.
2022-09-01 08:53:54 +01:00
54af457d8e
Add SRI 2022-09-01 08:36:39 +01:00
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
488369a247
Add filename and header show checkbox to code block 2022-08-31 22:30:08 +01:00
55f15bc974
Fix height on 404 page 2022-08-31 19:14:31 +01:00
df09ec0f38
Ensure request is passed into the singleton URL cache
This removes needing extra queries
2022-08-31 19:06:02 +01:00
25e49de081
Don't cache page bodies
They're still pretty fast to generate, and doing this breaks previews
completely
2022-08-31 18:54:09 +01:00
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
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
768223ba67
Add spacing around plusses in language dropdown
It looks so much better!
2022-08-30 22:49:05 +01:00
f3b603a82a
Add language and clipboard buttons to code blocks 2022-08-30 22:48:45 +01:00
da89510eee
Restart workers after a given number of requests 2022-08-30 21:39:11 +01:00
ca835a33b4
Run migrations on container start 2022-08-30 09:13:43 +01:00
ad894a30a1
Correctly override gunicorn server header 2022-08-30 08:48:16 +01:00
1e9ff9f24b
Remove CORS header from static files 2022-08-28 22:28:43 +01:00
e7c4acce8b
Add the ability to password protect pages
Useful for sharing drafts
2022-08-28 22:02:02 +01:00
9ee46721c9
Use Wagtail login screen for admin-protected pages
Should never happen, but at least it won't look terrible
2022-08-28 20:34:23 +01:00
6f073c6cfc
Update module name
This will handle more than just URLs
2022-08-28 20:30:50 +01:00
442aeb21b8
Use singleton URL cache 2022-08-28 20:22:55 +01:00
7a4388bd69
Ensure git is installed on CI 2022-08-28 17:49:21 +01:00
ac46c0ae0b
Add start of simple module to help with caching singleton URLs 2022-08-28 17:42:21 +01:00
557a28833b
Only show public pages 2022-08-28 16:51:27 +01:00
47980032b0
Add autocomplete for blog pots tags 2022-08-28 16:18:31 +01:00
c660e54bae
Add method to prefetch for listing 2022-08-28 14:52:27 +01:00
735ab73ec0
Inline select_related calls 2022-08-28 12:59:09 +01:00
6403aca2a2
Add tests for search page 2022-08-28 12:57:10 +01:00
edbedcd0fa
Remove unnecessary extra query during search
Just pass the original queryset, which helps ordering and performance
2022-08-28 12:56:26 +01:00
4ca2a97b2a
Update queries for favicon and add cache
It shouldn't change much, so let's cache it
2022-08-28 00:13:19 +01:00
4b1d873bf8
Extend time for session cookies 2022-08-27 23:54:31 +01:00
358013e16a
Add favicon 2022-08-27 23:44:56 +01:00
46836a6d30
dark-mode 2022-08-27 23:20:30 +01:00
eddf4c88d1
Use monokai as the dark mode
I prefer how it looks
2022-08-27 22:48:22 +01:00
1a2320d14a
Use consistent styles for image and mermaid blocks 2022-08-27 22:47:56 +01:00
8c9589a497
Ensure table block has a dark mode 2022-08-27 22:47:03 +01:00
e5c8c6d7eb
Add dark mode for spotify table 2022-08-27 22:31:19 +01:00
ee1eaf6593
Correctly set max height of list item 2022-08-27 21:57:17 +01:00
fea5a1f58b
Don't define classes immediately inside dark-mode mixin
This causes with the automatic transition animation.
2022-08-27 21:24:49 +01:00
245d2ee146
Add dark mode for contact page 2022-08-27 21:13:15 +01:00
e6244bee51
Ensure subtitle is also dark 2022-08-27 20:42:44 +01:00
f7552e9565
Add dark mode for search input 2022-08-27 20:34:23 +01:00
7c7e81f841
Only animate loading spinner when it's visible 2022-08-27 20:24:27 +01:00
7e53cf76f4
Install git in container 2022-08-27 20:22:20 +01:00
27bce00c46
Remove subtitle from listing pages 2022-08-27 19:55:44 +01:00
e6ee7d475a
Fix bash conditional syntax
God I hate bash!
2022-08-27 19:02:13 +01:00
6272307e35
Stop removing dependencies
The container is layered, and this layer is in there. Until the layers are removed, it doesn't make any difference
2022-08-27 19:01:14 +01:00
c6776faa8c
Use slim container variant
This reduces the size of the container, which makes working with it much easier
2022-08-27 18:44:05 +01:00
54a7dd2660
Just use a single container task
Pulling, tagging and pushing a container takes a while, so do it all at once
2022-08-27 16:31:54 +01:00
0da37bb064
Use slim container for node build 2022-08-27 15:25:28 +01:00
6c19835cac
Remove POETRY_HOME 2022-08-27 15:17:10 +01:00