Commit Graph

983 Commits

Author SHA1 Message Date
Jake Howard e5392fa95d
Add stylelint 2022-08-03 21:22:11 +01:00
Jake Howard eae2953b89
Add eslint 2022-08-03 21:19:19 +01:00
Jake Howard 512f9cd3b9
Add djhtml 2022-08-03 20:37:34 +01:00
Jake Howard e096dd8cf5
Install curlylint 2022-08-03 20:34:18 +01:00
Jake Howard 668bcc7d5b
Add sitemap 2022-08-02 22:20:36 +01:00
Jake Howard bc18764ccf
Hide "to top" footer buttons on homepage
The homepage doesn't scroll, so it's a bit pointless
2022-08-02 22:10:34 +01:00
Jake Howard 1b1971f09d
Account for hero not always existing
This is mostly true for the homepage
2022-08-02 22:03:08 +01:00
Jake Howard cdb037a9c8
Remove django admin 2022-08-02 21:33:48 +01:00
Jake Howard 96e623e3db
Move serializer to different file 2022-08-02 21:28:51 +01:00
Jake Howard 809cc5d454
Require search results be HTMX 2022-08-02 21:22:35 +01:00
Jake Howard 34293553a8
Don't browse to hash if there isn't one 2022-08-02 21:12:42 +01:00
Jake Howard 996f7b9c2a
Add all the relevant search messages 2022-08-02 21:11:35 +01:00
Jake Howard bcc9a2c2f2
Add search results counter 2022-08-02 09:27:43 +01:00
Jake Howard 7647ace4a0
Add a loading spinner 2022-08-01 22:23:06 +01:00
Jake Howard 5b4ff2b4e9
Only allow GET for search results 2022-08-01 21:42:06 +01:00
Jake Howard 750ed5aa39
Remove unnecessary method 2022-08-01 21:27:40 +01:00
Jake Howard 93030852b5
Do search if querystring is provided 2022-08-01 21:23:55 +01:00
Jake Howard fb78f3f993
Use HTMX for search page 2022-07-31 15:28:48 +01:00
Jake Howard 53123ad93e
Install django-htmx 2022-07-29 23:00:44 +01:00
Jake Howard 5da96236be
Add a basic search input to search page 2022-07-29 22:49:08 +01:00
Jake Howard 2ae2a2c158
Show message when there's no search terms 2022-07-29 22:34:48 +01:00
Jake Howard 71a2186cc0
Additionally ignore virtualenv
This is mostly necessary on CI
2022-07-29 22:03:31 +01:00
Jake Howard c4109e42f1
Use serializer to validate search params 2022-07-29 16:50:44 +01:00
Jake Howard 639f5885a4
Ensure containers are running before shelling into them 2022-07-29 15:48:43 +01:00
Jake Howard 87de211c73
Explicitly depend on DRF 2022-07-29 15:48:30 +01:00
Jake Howard 87f549dfec
Use backtracking resolver for pip-tools
It's newer, faster and better
2022-07-29 15:48:16 +01:00
Jake Howard d92d41d075
Use init to ensure the web container stops quicker
`sleep` discards a lot of signals, so we need the init system to do it for us
2022-07-29 15:41:23 +01:00
Jake Howard 3bce2fb880
Exclude some page types from search 2022-07-29 09:18:09 +01:00
Jake Howard ef30a91067
Move page size to model 2022-07-29 09:11:14 +01:00
Jake Howard 11932fa49e
Don't show code in plaintext 2022-07-29 09:11:04 +01:00
Jake Howard 8a55275db7
Add alias to exec into web container 2022-07-29 09:02:09 +01:00
Jake Howard 24e9fd7881
Bind dev server to all interfaces 2022-07-29 09:02:01 +01:00
Jake Howard c3e0bdd8a2
Correctly expose ports to host 2022-07-29 09:01:43 +01:00
Jake Howard 856079c118
Don't explicitly list python directories
This means as others are added, they'll be automatically linted
2022-07-29 08:46:44 +01:00
Jake Howard 9a15fcbe60
Move gunicorn conf to etc directory 2022-07-29 08:29:50 +01:00
Jake Howard c88fddf835
Use full debian for CI
The containers are bigger, but it has all the required dependencies.
It's also what's run in production anyway.
2022-07-28 23:20:06 +01:00
Jake Howard cf0a365277
Ensure additional content fields get indexed 2022-07-28 23:06:11 +01:00
Jake Howard 863b0f67c5
Actually gitignore docker volumes
The reason they weren't coming up is because I don't have access to them
2022-07-28 22:44:57 +01:00
Jake Howard 86c9ac5e7f
Automatically rebuild site indexes in local dev 2022-07-28 22:41:11 +01:00
Jake Howard a0f115fdc4
Add the basics of a search view 2022-07-28 22:40:23 +01:00
Jake Howard ce5e6cbdbd
Ignore vscode directory
I have this ignored globally, but it's annoying in the dev container
2022-07-28 21:10:53 +01:00
Jake Howard 6f889b9b96
Remove unnecessary python path 2022-07-28 21:10:44 +01:00
Jake Howard a4c69525fc
Install inotifywait in dev 2022-07-28 20:50:09 +01:00
Jake Howard ed039ce6ed
Use postgres for project db 2022-07-28 20:41:30 +01:00
Jake Howard d995b412a0
Remove django-stubs
It's just not quite there yet for a lot of things, and makes certain things a right pain!
2022-07-28 20:15:20 +01:00
Jake Howard 30135e53be
Update readme instructions for new docker setup 2022-07-28 19:24:16 +01:00
Jake Howard 196775d5eb
Fix constraint for mypy
pip-tools resolves mypy to an incompatible version

Raised upstream as https://github.com/jazzband/pip-tools/issues/1658
2022-07-28 19:23:50 +01:00
Jake Howard 13c355bf0a
Use pip-tools for dependency management 2022-07-28 18:55:47 +01:00
Jake Howard 7132fb743c
Create user to match mine 2022-07-28 18:22:07 +01:00
Jake Howard b5391bc918
Change install command to do docker build 2022-07-28 18:21:19 +01:00