Commit graph

579 commits

Author SHA1 Message Date
Oliver Davies 3fe97b7081 Add the gin toolbar module 2020-10-08 20:59:41 +01:00
Oliver Davies 40179ca89e Add pull-from-prod command
Add a `pull-from-prod` host command for DDEV, to do what was previously
being done in the Makefile.
2020-10-08 19:49:41 +01:00
Oliver Davies b83317634f Move ansible.cfg into the tools directory 2020-10-08 19:38:30 +01:00
Oliver Davies ed98118652 Run database updates before importing config
References #245
2020-10-08 18:29:00 +01:00
Oliver Davies c23c9cf548 Update commands in GitHub Actions 2020-10-08 18:24:04 +01:00
Oliver Davies 27cc670152 Remove old Symfony server files 2020-10-08 17:13:16 +01:00
Oliver Davies b1537dc0a8 Remove Fathom Analytics settings from config 2020-10-07 23:41:50 +01:00
Oliver Davies e924c94dae Remove Fathom from live config split 2020-10-07 23:34:37 +01:00
Oliver Davies ef22a891cb Add "Find me on" block 2020-10-07 23:33:03 +01:00
Oliver Davies 19c5529094 Add Send to social media checkbox to posts
Also add it to the `opdavies_blog_test` module config so that the
existing tests continue to work and pass.

References #249
2020-10-07 23:17:07 +01:00
Oliver Davies eb23d93fe0 Return early if should not be sent to social media
Return early and don't send the post to social media if the `Post to
social media` checkbox is not checked.

References #249
2020-10-07 23:11:22 +01:00
Oliver Davies 2d06f5e8d4 Add a method to check if send to social media
Add a method to check if a post should be sent automatically to social
media.

References #249
2020-10-07 22:57:40 +01:00
Oliver Davies fc691424bf Remove Fathom Analytics 2020-09-28 12:39:04 +01:00
Oliver Davies 6c9e5746ca Add module for Plausible Analytics 2020-09-26 19:32:49 +01:00
Oliver Davies 3dd7608a87 Update PurgeCSS config 2020-09-24 12:42:53 +01:00
Oliver Davies 5518aeb799 Update Drupal to 8.9.6
https://www.drupal.org/project/drupal/releases/8.9.6
2020-09-16 20:07:14 +01:00
Oliver Davies ef89f5f5c1 Add DDEV configuration 2020-09-16 19:41:48 +01:00
Oliver Davies b70b30bc99 Refactor existing CSS
Fixes #190
2020-09-16 01:47:00 +01:00
Oliver Davies 390c3ba44d Enable the 'apply complex classes' feature
Enable the experimental feature to use `@apply` with complex classes
including interactive states. I tried this on the Rebuilding Symfony
demo project and it worked well.

This would mean that I could refactor some of my existing styles on this
project.

References #190
2020-09-16 01:39:06 +01:00
Oliver Davies b8b1766429 Update tailwindcss to 1.8
References #190
2020-09-16 01:34:26 +01:00
Oliver Davies 3809d5a02f Add token for getting the number of talks given
Add a new custom token, `[opdavies_talks:talk_count]`, that replaces the
placeholder text with the talk count value from the `TalkCounter`
service.

References #31
2020-09-16 01:25:09 +01:00
Oliver Davies 4207b32e7d Trigger deploy on closed PRs 2020-09-16 01:20:33 +01:00
Oliver Davies e1e8a54b36 Use npm ci instead of npm install 2020-09-15 22:15:00 +01:00
Oliver Davies a55da019c7 Add field_notes to blog posts 2020-09-14 08:02:01 +01:00
Oliver Davies fec4d90943 Add HTML slides link
Fixes #222
2020-09-09 21:38:10 +01:00
Oliver Davies c023caf44c Hide the feedback URL on events 2020-09-09 21:18:51 +01:00
Oliver Davies 2d62c8ee54 Add feedback URL to event paragraphs 2020-09-09 21:17:52 +01:00
Oliver Davies fd274cda97 Remove references to slides
This is not being done with Nginx. I've pushed the slides to Netlify and
added CNAME records in Cloudflare to serve them as subdomains as
oliverdavies.uk in the same way that I am for Rebuilding Bartik,
Rebuilding Acquia etc.

Fixes #221
2020-09-09 08:43:34 +01:00
Oliver Davies 0f01551f26 Update Hook Event Dispatcher module
- Update the Hook Event Dispatcher module from `8.x-1.29` to `8.x-2.02`.
- Update custom modules after breaking changes from upgrading.

References #112
2020-09-06 12:15:59 +01:00
Oliver Davies 61442ed74c Make opdavies theme Drupal 9 compatible
References #112
2020-09-06 11:57:41 +01:00
Oliver Davies 596ee4979d Fix PHPCS issues 2020-09-04 22:20:30 +01:00
Oliver Davies 98fba9306f Fix PHPStan issues 2020-09-04 22:20:30 +01:00
Oliver Davies a08f93c188 Run PHPCS and PHPStan in GitHub Actions
Fixes #76
2020-09-04 22:20:29 +01:00
Oliver Davies cbe60209e6 Rename custom module directories
- Rename `opdavies_blog` to `blog`.
- Rename `opdavies_blog_test` to `blog_test`.
- Rename `opdavies_talks` to `talks`.
- Rename `opdavies_talks_test` to `talks_test`.

The files within the directories haven't changed, so there is no
breaking change caused by renaming the directories.

 Please enter the commit message for your changes. Lines starting
2020-09-04 21:25:36 +01:00
Oliver Davies d7d5a6c8a3 Split ci.yml into separate workflows
Split the `install` and `tests` jobs from `ci.yml` into their own
separate workflows.
2020-09-04 21:13:05 +01:00
Oliver Davies 1781a2cf01 Add Ansible role to fix Drupal file permissions
Add a new `drupal-permissions` Ansible role that resets the file and
directory permissions to match the ones described in
https://www.drupal.org/node/244924.

This will later be released to Ansible Galaxy, but for now it will
remain in this repository until the required changes are made and the
appropriate documentation is added.

Fixes #191
2020-09-04 20:23:07 +01:00
Oliver Davies 9b26d772a8 Remove dashes in hashtags, and don't lowercase
References #24
2020-09-04 19:45:30 +01:00
Oliver Davies 9219d10137 Run on insert and update rather than pre-save 2020-09-04 19:19:18 +01:00
Oliver Davies 061b1177f5 Fix config names 2020-09-04 19:18:25 +01:00
Oliver Davies 2617e29dec Refactor to use a factory class 2020-09-04 13:46:49 +01:00
Oliver Davies 10e4616e01 Don't include certain terms as hashtags in tweets
References #24
2020-09-04 12:31:53 +01:00
Oliver Davies c5c774290d Include tags as hashtags for automated tweets
References #24
2020-09-04 12:31:29 +01:00
Oliver Davies 150c974040 Add a test for converting a post to a tweet
References #24
2020-09-04 12:06:51 +01:00
Oliver Davies b77c301d8c Refactor to use a short function 2020-08-28 18:01:47 +01:00
Oliver Davies 59f85f02d5 Add new dependencies to fix PostTest 2020-08-28 13:08:40 +01:00
Oliver Davies 92f1c0f84c Refactor sending posts to social media 2020-08-28 13:02:20 +01:00
Oliver Davies 59a98b8d78 Automatically re-order tags on save
Fixes #167
2020-08-28 12:56:57 +01:00
Oliver Davies 5e107b48d6 Move test class
References #203
2020-08-28 10:59:07 +01:00
Oliver Davies ffe6fe9b68 Add tests for the TalkRepository
Fixes #203
2020-08-28 10:54:19 +01:00
Oliver Davies 87a9f28991 Update prose styling for code and pre elements
Fixes #210
2020-08-24 23:02:00 +01:00