diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index e4b7c76f..ca3c0de5 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -13,12 +13,12 @@ availability: full: no avatar: - url: /dist/images/me-precedent.jpg + url: /images/me-precedent.jpg email: oliver+url@oliverdavies.uk favicon: - url: /dist/images/me-phpnw.png + url: /images/me-phpnw.png irc: name: opdavies diff --git a/source/_partials/badges.html.twig b/source/_partials/badges.html.twig index 724283fd..0a722fe5 100644 --- a/source/_partials/badges.html.twig +++ b/source/_partials/badges.html.twig @@ -1,26 +1,26 @@
- Drupal Association Individual Member + Drupal Association Individual Member
- Acquia Certified Grand Master - Drupal 8 Exam Badge + Acquia Certified Grand Master - Drupal 8 Exam Badge
diff --git a/source/_partials/meetup.html.twig b/source/_partials/meetup.html.twig index ee8e7b33..b1b00fd2 100644 --- a/source/_partials/meetup.html.twig +++ b/source/_partials/meetup.html.twig @@ -2,7 +2,7 @@ {{ name }} logo diff --git a/source/_posts/2018-08-15-drupal-8-commerce-fixing-error-on-user-checkout.md b/source/_posts/2018-08-15-drupal-8-commerce-fixing-error-on-user-checkout.md index 8c2772d7..408448d6 100644 --- a/source/_posts/2018-08-15-drupal-8-commerce-fixing-error-on-user-checkout.md +++ b/source/_posts/2018-08-15-drupal-8-commerce-fixing-error-on-user-checkout.md @@ -21,7 +21,7 @@ Logging in to the Stripe account, I was able to confirm that the specified custo After some investigation, I found a table in the database named `user__commerce_remote_id` which stores the remote customer ID for each payment method (again, the customer ID has been redacted). -![A screenshot of a row in the user__commerce_remote_id table](/assets/images/blog/commerce-stripe-error/remote-id-table.png){.border.p-1} +![A screenshot of a row in the user__commerce_remote_id table](/images/blog/commerce-stripe-error/remote-id-table.png){.border.p-1} The `entity_id` and `revision_id` values in this case refer to the user that the Stripe customer has been associated with. diff --git a/source/_posts/2018-08-16-system-users-null-users.md b/source/_posts/2018-08-16-system-users-null-users.md index 5189aabe..67314f5b 100644 --- a/source/_posts/2018-08-16-system-users-null-users.md +++ b/source/_posts/2018-08-16-system-users-null-users.md @@ -33,7 +33,7 @@ A system user isn’t an account that we’d expect a person to log in with and System User module adds a base field to Drupal’s User entity, which determines whether or not each user is a system user - i.e. if this field is `TRUE`, that user is a system user. This means that users can easily be queried to identify which are system users, without having to rely on magic, environment and site specific user IDs. This also means that we can have multiple system users, if needed. -![](/assets/images/blog/null-users-system-users/drupal-8-users-field-data-table.png){.border .p-1} +![](/images/blog/null-users-system-users/drupal-8-users-field-data-table.png){.border .p-1} In the Drupal 8 version of the module, a `SystemUser` is a custom entity, that contains it’s own `create` method for creating new system users. This is a essentially a wrapper around `User::create()` that automatically sets the value of the system user field as part of the creation. diff --git a/source/_posts/2018-08-21-experimenting-with-events-in-drupal-8.md b/source/_posts/2018-08-21-experimenting-with-events-in-drupal-8.md index ea10eff1..fcf93182 100644 --- a/source/_posts/2018-08-21-experimenting-with-events-in-drupal-8.md +++ b/source/_posts/2018-08-21-experimenting-with-events-in-drupal-8.md @@ -14,7 +14,7 @@ I’ve been experimenting with moving some of the code to Drupal 8, and I’m qu {% block content %} Here is how this module is currently structured: -![](/assets/images/blog/events-drupal-8/1.png){.border .p-1} +![](/images/blog/events-drupal-8/1.png){.border .p-1} Note that there is no `opdavies_blog.module` file, and rather than calling actions from within a hook like `opdavies_blog_entity_update()`, each action becomes it’s own event subscriber class. diff --git a/source/_posts/2018-09-04-quick-project-switching-in-phpstorm.md b/source/_posts/2018-09-04-quick-project-switching-in-phpstorm.md index 20ac2582..e2c2ce31 100644 --- a/source/_posts/2018-09-04-quick-project-switching-in-phpstorm.md +++ b/source/_posts/2018-09-04-quick-project-switching-in-phpstorm.md @@ -17,7 +17,7 @@ Here is the original tweet and my initial response. I also have a lot of PhpStor On the PhpStorm welcome screen that displays when you first open it, your recent projects are displayed on the left-hand side of the screen, and are filterable. That means that I can start typing a project name, e.g. `oli`, and I will only see projects that start with that input. -![The PhpStorm welcome screen with filters applied to the project list](/assets/images/blog/quick-project-switching-phpstorm/welcome-screen.png){.with-border .with-padding} +![The PhpStorm welcome screen with filters applied to the project list](/images/blog/quick-project-switching-phpstorm/welcome-screen.png){.with-border .with-padding} That’s great when opening a project from scratch, but what about when we’re already within a project and just want to be able to switch to another? @@ -29,19 +29,19 @@ There’s also a way to access this list once PhpStorm is open, by clicking 'Ope You can also access this list using the keyboard, though the 'Search everywhere' or 'Find action' panes, and these are filterable. -![Using the 'find action' pane to find 'Open Recent'](/assets/images/blog/quick-project-switching-phpstorm/find-action.png){.with-border .with-padding} +![Using the 'find action' pane to find 'Open Recent'](/images/blog/quick-project-switching-phpstorm/find-action.png){.with-border .with-padding} Once the 'Open Recent' option is selected, you see the same project list as on the welcome screen, which is filtered in the same way by starting to type potential project names. -![The filtered project list](/assets/images/blog/quick-project-switching-phpstorm/open-recent.png){.with-border .with-padding} +![The filtered project list](/images/blog/quick-project-switching-phpstorm/open-recent.png){.with-border .with-padding} ## Adding a Keyboard Shortcut We can make this easier by adding a new keyboard shortcut. Within the Keymap preferences, you can search for 'Open Recent' and right-click it to add a new keyboard shortcut and define the key combination. -![Finding the 'Open Recent' shortcut in the Keymap preferences](/assets/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-1.png){.with-border .with-padding} +![Finding the 'Open Recent' shortcut in the Keymap preferences](/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-1.png){.with-border .with-padding} -![Assigning a keyboard shortcut](/assets/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-2.png){.with-border .with-padding} +![Assigning a keyboard shortcut](/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-2.png){.with-border .with-padding} This this shortcut added, you can now use it to instantly bring up your recent projects list, filter it and switch project. {% endblock %} diff --git a/source/_posts/announcing-the-drupal-vm-generator.md b/source/_posts/announcing-the-drupal-vm-generator.md index 1ad842fc..d26c8f16 100644 --- a/source/_posts/announcing-the-drupal-vm-generator.md +++ b/source/_posts/announcing-the-drupal-vm-generator.md @@ -14,7 +14,7 @@ For the past few weeks I’ve been working on a personal side project, based on {% endblock %} {% block content %} -![](/dist/images/blog/drupalvm-generate-repo.png) +![](/images/blog/drupalvm-generate-repo.png) ## What is Drupal VM? @@ -38,7 +38,7 @@ Based on the options passed to it and/or answers that you provide, it generates Here’s an example of it in action: -!['An animated gif showing the interaction process and the resulting config.yml file'](/dist/images/blog/drupalvm-generate-example-2.gif) +!['An animated gif showing the interaction process and the resulting config.yml file'](/images/blog/drupalvm-generate-example-2.gif) You can also define options when calling the command and skip any or all questions. Running the following would bypass all of the questions and create a new file with no interaction or additional steps. diff --git a/source/_posts/automating-sculpin-with-jenkins.md b/source/_posts/automating-sculpin-with-jenkins.md index 6b88752c..38d0be08 100644 --- a/source/_posts/automating-sculpin-with-jenkins.md +++ b/source/_posts/automating-sculpin-with-jenkins.md @@ -32,7 +32,7 @@ As we don’t need any write access back to the repo, using the HTTP URL rather Also, as I knew that I’d be working a lot with feature branches, I entered `*/master` as the only branch to build. This meant that pushing changes or making edits on any other branches would not trigger a build. -![Defining the Git repository in Jenkins](/dist/images/blog/oliverdavies-uk-jenkins-git-repo.png) +![Defining the Git repository in Jenkins](/images/blog/oliverdavies-uk-jenkins-git-repo.png) I also checked the **Poll SCM** option so that Jenkins would be routinely checking for updated code. This essentially uses the same syntax as cron, specifying minutes, hours etc. I entered `* * * * *` so that Jenkins would poll each minute, knowing that I could make this less frequent if needed. @@ -92,7 +92,7 @@ After originally thinking that I'd have to split the build steps into a separate I set this to `@daily` (the same `H H * * *` - `H` is a Jenkins thing), so that the build would be triggered automatically each day without a commit, and deploy any updates to the site. -![Setting Jenkins to periodically build a new version of the site.](/dist/images/blog/oliverdavies-uk-jenkins-git-timer.png) +![Setting Jenkins to periodically build a new version of the site.](/images/blog/oliverdavies-uk-jenkins-git-timer.png) ## Next Steps diff --git a/source/_posts/creating-custom-docksal-commands.md b/source/_posts/creating-custom-docksal-commands.md index 2d2e3e01..aebf2bc4 100644 --- a/source/_posts/creating-custom-docksal-commands.md +++ b/source/_posts/creating-custom-docksal-commands.md @@ -59,7 +59,7 @@ touch .docksal/commands/phpunit This will create a new, empty `.docksal/commands/phpunit` file, and now the `phpunit` command is now listed under "Custom commands" when we run `fin`. -![](/dist/images/blog/docksal-phpunit-command/1.gif) +![](/images/blog/docksal-phpunit-command/1.gif) You can write commands with any interpreter. I’m going to use bash, so I’ll add the shebang to the top of the file. @@ -84,7 +84,7 @@ fin interprets lines starting with `##` as documentation - the first of which it Now when I run it, I see the new description. -![](/dist/images/blog/docksal-phpunit-command/2.gif) +![](/images/blog/docksal-phpunit-command/2.gif) Any additional lines are used as help text with running `fin help phpunit`. Here I’ll add an example command to demonstrate how to run it as well as some more in-depth text about what the command will do. @@ -101,7 +101,7 @@ Any additional lines are used as help text with running `fin help phpunit`. Here Now when I run `fin help phpunit`, I see the new help text. -![](/dist/images/blog/docksal-phpunit-command/3.gif) +![](/images/blog/docksal-phpunit-command/3.gif) ## Adding some content diff --git a/source/_posts/drupalcamp-bristol-2018.md b/source/_posts/drupalcamp-bristol-2018.md index 782da37c..aa2724b4 100644 --- a/source/_posts/drupalcamp-bristol-2018.md +++ b/source/_posts/drupalcamp-bristol-2018.md @@ -13,7 +13,7 @@ meta: description: 'It’s with heavy hearts that we are announcing there won’t be a DrupalCamp Bristol 2018.' type: website image: - url: /dist/images/blog/drupalcamp-bristol-17-logo.jpg + url: /images/blog/drupalcamp-bristol-17-logo.jpg width: 228 height: 448 type: image/img diff --git a/source/_posts/drupalcamp-bristol-tickets-sessions-sponsors.md b/source/_posts/drupalcamp-bristol-tickets-sessions-sponsors.md index 54362bda..534597f4 100644 --- a/source/_posts/drupalcamp-bristol-tickets-sessions-sponsors.md +++ b/source/_posts/drupalcamp-bristol-tickets-sessions-sponsors.md @@ -17,7 +17,7 @@ meta: slug: drupalcamp-bristol-early-bird-tickets-sessions-sponsors --- {% block excerpt %} -

![DrupalCamp Bristol 2017 logo](/dist/images/blog/drupalcamp-bristol-17-logo.jpg)

+

![DrupalCamp Bristol 2017 logo](/images/blog/drupalcamp-bristol-17-logo.jpg)

In less than two months time, [DrupalCamp Bristol][0] will be back for our third year! (July seems to come around quicker each year). This is this year’s schedule and venues: {% endblock %} diff --git a/source/_posts/git-format-patch.md b/source/_posts/git-format-patch.md index 3158b427..3b419d2a 100644 --- a/source/_posts/git-format-patch.md +++ b/source/_posts/git-format-patch.md @@ -32,7 +32,7 @@ This differs slightly different for each Drupal user, and the code can be found If this is added to the end of the commit message, the resulting commit will show that it was committed by the maintainer but authored by a different user. This will then display on Drupal.org that you’ve made a commit to that project. -![A screenshot of a commit that was authored by rli but committed by opdavies](/dist/images/blog/git-format-patch.png) +![A screenshot of a commit that was authored by rli but committed by opdavies](/images/blog/git-format-patch.png) The problem is that some project maintainers either don’t know about this option or occasionally forget to add it. [Dreditor](http://dreditor.org) can suggest a commit message and assign an author, but it is optional and, of course, not all maintainers use Dreditor (although they probably should). diff --git a/source/_posts/introducing-the-drupal-meetups-twitterbot.md b/source/_posts/introducing-the-drupal-meetups-twitterbot.md index ed0a9be9..71298303 100644 --- a/source/_posts/introducing-the-drupal-meetups-twitterbot.md +++ b/source/_posts/introducing-the-drupal-meetups-twitterbot.md @@ -6,7 +6,7 @@ tags: - php --- {% block excerpt %} -

![](/dist/images/blog/drupal-meetups-twitterbot.png)

+

![](/images/blog/drupal-meetups-twitterbot.png)

The [Drupal Meetups Twitterbot][0] is a small project that I worked on a few months ago, but hadn't got around to promoting yet. It’s intention is to provide [one Twitter account][1] where people can get the up to date news from various Drupal meetups. {% endblock %} diff --git a/source/_posts/minimum-core-version.md b/source/_posts/minimum-core-version.md index 86070889..8bc6c16e 100644 --- a/source/_posts/minimum-core-version.md +++ b/source/_posts/minimum-core-version.md @@ -68,7 +68,7 @@ dependencies[] = system (>=7.36) Because we need to check for Drupal's core version, we're using the system module as the dependency and specifying that it needs to be either equal to or greater than 7.36. If this dependency is not met, e.g. Drupal 7.35 is being used, then the module cannot be enabled rather than showing a function not found error for `user_has_role()` when it is called. -![A screenshot of the modules page showing System as a dependency for a custom module.](/dist/images/blog/minimum-drupal-version-d7.png) +![A screenshot of the modules page showing System as a dependency for a custom module.](/images/blog/minimum-drupal-version-d7.png) ## External Links diff --git a/source/_posts/nginx-redirects-with-query-string-arguments.md b/source/_posts/nginx-redirects-with-query-string-arguments.md index 506a07af..bd815071 100644 --- a/source/_posts/nginx-redirects-with-query-string-arguments.md +++ b/source/_posts/nginx-redirects-with-query-string-arguments.md @@ -41,7 +41,7 @@ return 301 https://www.example.com$uri$is_args$args; Here is an demo of it working on this website: -![](/dist/images/blog/nginx-redirect-with-args.gif) +![](/images/blog/nginx-redirect-with-args.gif) ## Resources diff --git a/source/_posts/publishing-sculpin-sites-with-github-pages.md b/source/_posts/publishing-sculpin-sites-with-github-pages.md index 34b63fe7..31b92b91 100644 --- a/source/_posts/publishing-sculpin-sites-with-github-pages.md +++ b/source/_posts/publishing-sculpin-sites-with-github-pages.md @@ -6,13 +6,13 @@ meta: description: 'How I moved my Sculpin site to GitHub Pages.' og: image: - url: '/dist/images/blog/jackson-octocat.png' + url: '/images/blog/jackson-octocat.png' type: 'image/png' height: 200 width: 451 --- {% block excerpt %} -

![](/dist/images/blog/jackson-octocat.png)

+

![](/images/blog/jackson-octocat.png)

Earlier this week I moved this site from my personal Linode server to [GitHub Pages][0]. @@ -25,7 +25,7 @@ I’ve seen different implementations of this, mostly where the Sculpin code is This has been made simpler and tidier now that we can use a `docs` directory within the repository to serve content. queue($recipients, $message, $owner); These three pieces of data are then saved as part of the queued item. You can see these by checking the "queue" table in the database or by running `drush queue-list`. -![](/dist/images/blog/private-message-queue.png) +![](/images/blog/private-message-queue.png) ``` $ drush queue-list diff --git a/source/_posts/running-phpunit-tests-docksal-phpstorm.md b/source/_posts/running-phpunit-tests-docksal-phpstorm.md index 864298b5..810a32d6 100644 --- a/source/_posts/running-phpunit-tests-docksal-phpstorm.md +++ b/source/_posts/running-phpunit-tests-docksal-phpstorm.md @@ -56,7 +56,7 @@ Now PhpStorm can connect to Docksal, I can configure it to do so by adding a new - Click 'Add' to configure a new deployment server. - Enter a name like 'Docksal', and select SFTP as the server type. -![Adding a new deployment server](/assets/images/blog/phpstorm-phpunit-docksal/deployment-1.png){.with-border .sm:max-w-sm} +![Adding a new deployment server](/images/blog/phpstorm-phpunit-docksal/deployment-1.png){.with-border .sm:max-w-sm} ### Connection settings @@ -68,33 +68,33 @@ On the Connection tab: You should now be able to click "Test SFTP connection" and get a successfully connected confirmation message. -![Configuring a new deployment server](/assets/images/blog/phpstorm-phpunit-docksal/deployment-2.png) +![Configuring a new deployment server](/images/blog/phpstorm-phpunit-docksal/deployment-2.png) ### Mapping settings On the Mappings tab, add `/var/www` as the deployment path so that PhpStorm is looking in the correct place for the project code. -![Add mappings to the deployment server](/assets/images/blog/phpstorm-phpunit-docksal/deployment-3.png){.with-border} +![Add mappings to the deployment server](/images/blog/phpstorm-phpunit-docksal/deployment-3.png){.with-border} ## Configuring the PHP Interpreter In Preferences, search for 'PHP' within 'Languages & Frameworks', and add a new CLI interpreter. -![The PHP preferences in PhpStorm](/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-1.png){.with-border} +![The PHP preferences in PhpStorm](/images/blog/phpstorm-phpunit-docksal/cli-interpreter-1.png){.with-border} In this case I’ve called it 'Docksal PHP 7.1', used the Docksal deployment configuration, and set the path to the PHP executable to `/usr/local/bin/php` (the same path that we would get if we ran `fin run which php`). You should see both the deployment host URL displayed as well as the remote PHP version and configuration filenames. -![Configuring a new CLI interpreter](/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-2.png){.with-border} +![Configuring a new CLI interpreter](/images/blog/phpstorm-phpunit-docksal/cli-interpreter-2.png){.with-border} This can now be selected as the CLI interpreter for this project. -![Selecting the new CLI interpreter in the PHP preferences](/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-3.png){.with-border} +![Selecting the new CLI interpreter in the PHP preferences](/images/blog/phpstorm-phpunit-docksal/cli-interpreter-3.png){.with-border} ## Set up PHPUnit in PhpStorm In Preferences, search for 'Test Frameworks' and add a new framework. -![Adding a new test framework (PHPUnit) in PHPStorm](/assets/images/blog/phpstorm-phpunit-docksal/phpunit-1.png){.with-border} +![Adding a new test framework (PHPUnit) in PHPStorm](/images/blog/phpstorm-phpunit-docksal/phpunit-1.png){.with-border} Select 'PHPUnit by Remote Interpreter' and then the 'Docksal PHP 7.1' that we created in the last step. @@ -102,33 +102,33 @@ Select 'Use Composer autoloader' for the PHPUnit library setting so that PhpStor Also specify the path to the default (phpunit.xml) configration file. This will depend on how your project is structured, in this case it’s at `/var/www/web/core/phpunit.xml`. -![Configuring PHPUnit in PHPstorm](/assets/images/blog/phpstorm-phpunit-docksal/phpunit-4.png){.with-border} +![Configuring PHPUnit in PHPstorm](/images/blog/phpstorm-phpunit-docksal/phpunit-4.png){.with-border} ## Running tests With PHPUnit configured, next to each test class and method, you can see a green circle (or a red one if the test failed the last run). You can click the circle and select to run that test class or method. You can also right-click directories in the project sidebar to run all of the tests within that directory. -![Running a test within PhpStorm](/assets/images/blog/phpstorm-phpunit-docksal/running-tests-1.png){.with-border} +![Running a test within PhpStorm](/images/blog/phpstorm-phpunit-docksal/running-tests-1.png){.with-border} When the tests start running, a new tool window will open that shows you all of the selected tests, how long each test took to run and whether it passed or failed. You can also see the CLI output from PHPUnit itself next to it. -![The tests results being displayed](/assets/images/blog/phpstorm-phpunit-docksal/running-tests-2.png){.with-border} +![The tests results being displayed](/images/blog/phpstorm-phpunit-docksal/running-tests-2.png){.with-border} From here, you also have the ability to re-run all of the tests, as well as a single test method or a specific test class. Any test failures are shown here too, and for some failures like differences between two arrays you can use PhpStorm’s internal comparison tools to view the difference rather than needing to do so on the command line. -![Showing a failing test](/assets/images/blog/phpstorm-phpunit-docksal/test-failure-1.png){.with-border} +![Showing a failing test](/images/blog/phpstorm-phpunit-docksal/test-failure-1.png){.with-border} -![Displaying the difference between two arrays](/assets/images/blog/phpstorm-phpunit-docksal/test-failure-2.png){.with-border .sm:max-w-md} +![Displaying the difference between two arrays](/images/blog/phpstorm-phpunit-docksal/test-failure-2.png){.with-border .sm:max-w-md} ### Keyboard shortcuts As per the video, I’ve also added some keyboard shortcuts to my keymap, so I can press ⌘T to run the current test method or class that I’m in, and ⇧⌘T to re-run the last test. -![Adding a keyboard shortcut to run the current test](/assets/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-1.png){.with-border} +![Adding a keyboard shortcut to run the current test](/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-1.png){.with-border} -![Adding a keyboard shortcut to re-run the last test](/assets/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-2.png){.with-border} +![Adding a keyboard shortcut to re-run the last test](/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-2.png){.with-border} ### Database issues diff --git a/source/_posts/splitting-a-new-contrib-module-from-a-project-repo.md b/source/_posts/splitting-a-new-contrib-module-from-a-project-repo.md index 763434a8..2a4531f1 100644 --- a/source/_posts/splitting-a-new-contrib-module-from-a-project-repo.md +++ b/source/_posts/splitting-a-new-contrib-module-from-a-project-repo.md @@ -113,7 +113,7 @@ In this case, the new branch will be `8.x-1.x`. Here is a screenshot of example module that I’ve split and pushed to GitLab. Notice that there are multiple commits in the history, and each still attributed to it’s original author. -![Screenshot of a split project repo on GitLab](/dist/images/blog/subtree-split-drupal-module.png) +![Screenshot of a split project repo on GitLab](/images/blog/subtree-split-drupal-module.png) Also, as this is standard Git functionality, you can follow the same process to extract PHP libraries, Symfony bundles, WordPress plugins or anything else. {% endblock %} diff --git a/source/_posts/tdd-test-driven-drupal.md b/source/_posts/tdd-test-driven-drupal.md index f65081c1..556e3f65 100644 --- a/source/_posts/tdd-test-driven-drupal.md +++ b/source/_posts/tdd-test-driven-drupal.md @@ -10,13 +10,13 @@ meta: description: "How to write tests and follow TDD for Drupal applications." type: website image: - url: /dist/images/talks/test-driven-drupal-development.png + url: /images/talks/test-driven-drupal-development.png width: 2560 height: 1440 type: image/png --- {% block excerpt %} -

![](/dist/images/blog/drupalcamp-dublin.jpg)

+

![](/images/blog/drupalcamp-dublin.jpg)

I recently gave a [talk on automated testing in Drupal][0] talk at [DrupalCamp Dublin][1] and as a lunch and learn session for my colleagues at Microserve. As part of the talk, I gave an example of how to build a Drupal 8 module using a test driven approach. I’ve released the [module code on GitHub][2], and this post outlines the steps of the process. {% endblock %} @@ -119,11 +119,11 @@ Now we can make it pass by adding the page. For this, I will use the Views modul To begin with, I will create a view showing all types of content with a default sort order of newest first. We will use further tests to ensure that only the correct content is returned and that it is ordered correctly. -![](/dist/images/blog/tdd-drupal-1.png) { .with-border } +![](/images/blog/tdd-drupal-1.png) { .with-border } The only addition I will make to the view is to add a path at `pages`, as per the acceptance criteria. -![](/dist/images/blog/tdd-drupal-2.png) { .with-border } +![](/images/blog/tdd-drupal-2.png) { .with-border } ### Exporting the View @@ -458,7 +458,7 @@ Tests: 1, Assertions: 3, Failures: 1. We can fix this by adding another condition to the view, to only show content based on the node type - i.e. only return page nodes. -![](/dist/images/blog/tdd-drupal-3.png) { .with-border } +![](/images/blog/tdd-drupal-3.png) { .with-border } Once the view is updated and the configuration is updated within the module, the test should then pass - and it does. @@ -547,7 +547,7 @@ Tests: 1, Assertions: 2, Failures: 1. This can be fixed by removing the default sort criteria and adding a new one based on "Content: Title". -![](/dist/images/blog/tdd-drupal-4.png) { .with-border } +![](/images/blog/tdd-drupal-4.png) { .with-border } Again, once the view has been updated and exported, the test should pass - and it does. diff --git a/source/_posts/turning-your-custom-drupal-module-into-a-feature.md b/source/_posts/turning-your-custom-drupal-module-into-a-feature.md index 31c2918c..80b47280 100644 --- a/source/_posts/turning-your-custom-drupal-module-into-a-feature.md +++ b/source/_posts/turning-your-custom-drupal-module-into-a-feature.md @@ -26,7 +26,7 @@ features[features_api][] = api:2 After clearing the cache, the module is now visible in the Features list - and ready to have the appropriate configuration added to it. -!['The features list showing the custom module'](/dist/images/blog/custom-module-as-a-feature.png) +!['The features list showing the custom module'](/images/blog/custom-module-as-a-feature.png) {% endblock %} [0]: https://www.drupal.org/project/features diff --git a/source/_posts/updating-forked-github-repos.md b/source/_posts/updating-forked-github-repos.md index 2869b862..50b113de 100644 --- a/source/_posts/updating-forked-github-repos.md +++ b/source/_posts/updating-forked-github-repos.md @@ -55,12 +55,12 @@ $ git push origin master This seems to have worked OK - the commits are still authored by the correct people and at the correct date and time - and I went ahead and created a new feature branch and pull request based on that master branch.
- The commits on my master branch after rebasing + The commits on my master branch after rebasing
The commits on my forked master branch after rebasing and pushing. All good!
- The new feature branch with my additional commit. + The new feature branch with my additional commit.
The new feature branch with the new commit.
@@ -76,7 +76,7 @@ I believe that it will use an existing "upstream" remote if it exists, otherwise Once you’ve completed the rebase, you can then push your updated branch either from the terminal, or using the *Push* command from the same menu. -![Rebasing a forked repository in PhpStorm using the VCS menu.](/dist/images/blog/github-fork-rebase-phpstorm.png) +![Rebasing a forked repository in PhpStorm using the VCS menu.](/images/blog/github-fork-rebase-phpstorm.png) It would be great to see something similar added to [hub](https://hub.github.com) too (I’ve created [an issue](https://github.com/github/hub/issues/1047))! diff --git a/source/_posts/updating-override-node-options-tests.md b/source/_posts/updating-override-node-options-tests.md index 0741ae31..485ccdec 100644 --- a/source/_posts/updating-override-node-options-tests.md +++ b/source/_posts/updating-override-node-options-tests.md @@ -193,7 +193,7 @@ Override node options 213 passes, 0 fails, 0 exceptions, and 60 debug messages Test run duration: 25 sec ``` - + [Here][3] are my full changes from the previous patch, where I added the new tests as well as some small refactors. {% endblock %} diff --git a/source/_posts/using-tailwind-css-in-your-drupal-theme.md b/source/_posts/using-tailwind-css-in-your-drupal-theme.md index d96892c4..4bd91b91 100644 --- a/source/_posts/using-tailwind-css-in-your-drupal-theme.md +++ b/source/_posts/using-tailwind-css-in-your-drupal-theme.md @@ -58,11 +58,11 @@ By adding a prefix like `tw-`, we can ensure that the Tailwind classes don’t c No prefix: -![](/dist/images/blog/using-tailwind-drupal/prefix-1.png){.with-border} +![](/images/blog/using-tailwind-drupal/prefix-1.png){.with-border} With prefix: -![](/dist/images/blog/using-tailwind-drupal/prefix-2.png){.with-border} +![](/images/blog/using-tailwind-drupal/prefix-2.png){.with-border} ### Important @@ -78,11 +78,11 @@ For example: if I had this core markup then the left margin added by `tw-ml-4` w
``` -![](/dist/images/blog/using-tailwind-drupal/important-1.png){.with-border} +![](/images/blog/using-tailwind-drupal/important-1.png){.with-border} With the `!important` rule enabled though, the Tailwind’s class takes precedence and is applied. -![](/dist/images/blog/using-tailwind-drupal/important-2.png){.with-border} +![](/images/blog/using-tailwind-drupal/important-2.png){.with-border} ## Example diff --git a/source/_talks/deploying-php-fabric.md b/source/_talks/deploying-php-fabric.md index b73919d5..9b5112ee 100644 --- a/source/_talks/deploying-php-fabric.md +++ b/source/_talks/deploying-php-fabric.md @@ -11,7 +11,7 @@ meta: description: "You've built your PHP application, now learn how to deploy it with Fabric." type: website image: - url: /assets/images/talks/deploying-php-fabric.png + url: /images/talks/deploying-php-fabric.png width: 2560 height: 1440 type: image/png diff --git a/source/_talks/drupal-8-module-development.md b/source/_talks/drupal-8-module-development.md index 8d5e655f..8e829f8a 100644 --- a/source/_talks/drupal-8-module-development.md +++ b/source/_talks/drupal-8-module-development.md @@ -13,7 +13,7 @@ meta: og: title: Getting Started with Drupal 8 Module Development image: - url: /assets/images/talks/dclondon16.png + url: /images/talks/dclondon16.png type: 'image/png' height: 540 width: 960 diff --git a/source/_talks/getting-your-data-into-drupal-8.md b/source/_talks/getting-your-data-into-drupal-8.md index 49aea6e9..ead9df48 100644 --- a/source/_talks/getting-your-data-into-drupal-8.md +++ b/source/_talks/getting-your-data-into-drupal-8.md @@ -13,7 +13,7 @@ meta: description: "How I migrated the Drupal Bristol website onto Drupal 8." type: website image: - url: /assets/images/talks/getting-your-data-into-drupal-8.png + url: /images/talks/getting-your-data-into-drupal-8.png width: 2560 height: 1440 type: image/png diff --git a/source/_talks/taking-flight-with-tailwind-css.md b/source/_talks/taking-flight-with-tailwind-css.md index 086ab490..82b95bc9 100644 --- a/source/_talks/taking-flight-with-tailwind-css.md +++ b/source/_talks/taking-flight-with-tailwind-css.md @@ -17,7 +17,7 @@ meta: description: An introduction to utility CSS and Tailwind. type: website image: - url: '/assets/images/talks/taking-flight-tailwind.png' + url: '/images/talks/taking-flight-tailwind.png' width: 2560 height: 1440 type: 'image/png' diff --git a/source/_talks/tdd-test-driven-drupal.md b/source/_talks/tdd-test-driven-drupal.md index 7cdd614e..0d719495 100644 --- a/source/_talks/tdd-test-driven-drupal.md +++ b/source/_talks/tdd-test-driven-drupal.md @@ -14,7 +14,7 @@ meta: description: "How to write tests and follow TDD for Drupal applications." type: website image: - url: /assets/images/talks/test-driven-drupal-development.png + url: /images/talks/test-driven-drupal-development.png width: 2560 height: 1440 type: image/png diff --git a/source/experience.html.twig b/source/experience.html.twig index ed7d74ff..09c87380 100644 --- a/source/experience.html.twig +++ b/source/experience.html.twig @@ -120,7 +120,7 @@ experiences:
{% if company.logo %}
- {{ company.name }} logo + {{ company.name }} logo
{% endif %} diff --git a/assets/images/badges/acquia-d8-back-end.png b/source/images/badges/acquia-d8-back-end.png similarity index 100% rename from assets/images/badges/acquia-d8-back-end.png rename to source/images/badges/acquia-d8-back-end.png diff --git a/assets/images/badges/acquia-d8-developer.png b/source/images/badges/acquia-d8-developer.png similarity index 100% rename from assets/images/badges/acquia-d8-developer.png rename to source/images/badges/acquia-d8-developer.png diff --git a/assets/images/badges/acquia-d8-front-end.png b/source/images/badges/acquia-d8-front-end.png similarity index 100% rename from assets/images/badges/acquia-d8-front-end.png rename to source/images/badges/acquia-d8-front-end.png diff --git a/assets/images/badges/acquia-d8-grand-master.png b/source/images/badges/acquia-d8-grand-master.png similarity index 100% rename from assets/images/badges/acquia-d8-grand-master.png rename to source/images/badges/acquia-d8-grand-master.png diff --git a/assets/images/badges/da-individual-member.png b/source/images/badges/da-individual-member.png similarity index 100% rename from assets/images/badges/da-individual-member.png rename to source/images/badges/da-individual-member.png diff --git a/assets/images/badges/drupal-8.jpg b/source/images/badges/drupal-8.jpg similarity index 100% rename from assets/images/badges/drupal-8.jpg rename to source/images/badges/drupal-8.jpg diff --git a/assets/images/badges/drupal-dev-days-2018.png b/source/images/badges/drupal-dev-days-2018.png similarity index 100% rename from assets/images/badges/drupal-dev-days-2018.png rename to source/images/badges/drupal-dev-days-2018.png diff --git a/assets/images/badges/phpnw17.png b/source/images/badges/phpnw17.png similarity index 100% rename from assets/images/badges/phpnw17.png rename to source/images/badges/phpnw17.png diff --git a/source/assets/images/blog/commerce-stripe-error/remote-id-table.png b/source/images/blog/commerce-stripe-error/remote-id-table.png similarity index 100% rename from source/assets/images/blog/commerce-stripe-error/remote-id-table.png rename to source/images/blog/commerce-stripe-error/remote-id-table.png diff --git a/assets/images/blog/custom-module-as-a-feature.png b/source/images/blog/custom-module-as-a-feature.png similarity index 100% rename from assets/images/blog/custom-module-as-a-feature.png rename to source/images/blog/custom-module-as-a-feature.png diff --git a/assets/images/blog/docksal-phpunit-command/1.gif b/source/images/blog/docksal-phpunit-command/1.gif similarity index 100% rename from assets/images/blog/docksal-phpunit-command/1.gif rename to source/images/blog/docksal-phpunit-command/1.gif diff --git a/assets/images/blog/docksal-phpunit-command/2.gif b/source/images/blog/docksal-phpunit-command/2.gif similarity index 100% rename from assets/images/blog/docksal-phpunit-command/2.gif rename to source/images/blog/docksal-phpunit-command/2.gif diff --git a/assets/images/blog/docksal-phpunit-command/3.gif b/source/images/blog/docksal-phpunit-command/3.gif similarity index 100% rename from assets/images/blog/docksal-phpunit-command/3.gif rename to source/images/blog/docksal-phpunit-command/3.gif diff --git a/assets/images/blog/drupal-meetups-twitterbot.png b/source/images/blog/drupal-meetups-twitterbot.png similarity index 100% rename from assets/images/blog/drupal-meetups-twitterbot.png rename to source/images/blog/drupal-meetups-twitterbot.png diff --git a/assets/images/blog/drupalcamp-bristol-17-logo.jpg b/source/images/blog/drupalcamp-bristol-17-logo.jpg similarity index 100% rename from assets/images/blog/drupalcamp-bristol-17-logo.jpg rename to source/images/blog/drupalcamp-bristol-17-logo.jpg diff --git a/assets/images/blog/drupalcamp-dublin.jpg b/source/images/blog/drupalcamp-dublin.jpg similarity index 100% rename from assets/images/blog/drupalcamp-dublin.jpg rename to source/images/blog/drupalcamp-dublin.jpg diff --git a/assets/images/blog/drupalvm-generate-example-2.gif b/source/images/blog/drupalvm-generate-example-2.gif similarity index 100% rename from assets/images/blog/drupalvm-generate-example-2.gif rename to source/images/blog/drupalvm-generate-example-2.gif diff --git a/assets/images/blog/drupalvm-generate-example.gif b/source/images/blog/drupalvm-generate-example.gif similarity index 100% rename from assets/images/blog/drupalvm-generate-example.gif rename to source/images/blog/drupalvm-generate-example.gif diff --git a/assets/images/blog/drupalvm-generate-release.png b/source/images/blog/drupalvm-generate-release.png similarity index 100% rename from assets/images/blog/drupalvm-generate-release.png rename to source/images/blog/drupalvm-generate-release.png diff --git a/assets/images/blog/drupalvm-generate-repo.png b/source/images/blog/drupalvm-generate-repo.png similarity index 100% rename from assets/images/blog/drupalvm-generate-repo.png rename to source/images/blog/drupalvm-generate-repo.png diff --git a/source/assets/images/blog/events-drupal-8/1.png b/source/images/blog/events-drupal-8/1.png similarity index 100% rename from source/assets/images/blog/events-drupal-8/1.png rename to source/images/blog/events-drupal-8/1.png diff --git a/source/assets/images/blog/events-drupal-8/1_.png b/source/images/blog/events-drupal-8/1_.png similarity index 100% rename from source/assets/images/blog/events-drupal-8/1_.png rename to source/images/blog/events-drupal-8/1_.png diff --git a/assets/images/blog/forked-github-repo-commits.png b/source/images/blog/forked-github-repo-commits.png similarity index 100% rename from assets/images/blog/forked-github-repo-commits.png rename to source/images/blog/forked-github-repo-commits.png diff --git a/assets/images/blog/git-format-patch.png b/source/images/blog/git-format-patch.png similarity index 100% rename from assets/images/blog/git-format-patch.png rename to source/images/blog/git-format-patch.png diff --git a/assets/images/blog/github-fork-rebase-phpstorm.png b/source/images/blog/github-fork-rebase-phpstorm.png similarity index 100% rename from assets/images/blog/github-fork-rebase-phpstorm.png rename to source/images/blog/github-fork-rebase-phpstorm.png diff --git a/assets/images/blog/github-pages.png b/source/images/blog/github-pages.png similarity index 100% rename from assets/images/blog/github-pages.png rename to source/images/blog/github-pages.png diff --git a/assets/images/blog/jackson-octocat.png b/source/images/blog/jackson-octocat.png similarity index 100% rename from assets/images/blog/jackson-octocat.png rename to source/images/blog/jackson-octocat.png diff --git a/assets/images/blog/minimum-drupal-version-d7.png b/source/images/blog/minimum-drupal-version-d7.png similarity index 100% rename from assets/images/blog/minimum-drupal-version-d7.png rename to source/images/blog/minimum-drupal-version-d7.png diff --git a/assets/images/blog/my-commit-to-the-rebased-branch.png b/source/images/blog/my-commit-to-the-rebased-branch.png similarity index 100% rename from assets/images/blog/my-commit-to-the-rebased-branch.png rename to source/images/blog/my-commit-to-the-rebased-branch.png diff --git a/assets/images/blog/nginx-redirect-with-args.gif b/source/images/blog/nginx-redirect-with-args.gif similarity index 100% rename from assets/images/blog/nginx-redirect-with-args.gif rename to source/images/blog/nginx-redirect-with-args.gif diff --git a/source/assets/images/blog/null-users-system-users/drupal-8-users-field-data-table.png b/source/images/blog/null-users-system-users/drupal-8-users-field-data-table.png similarity index 100% rename from source/assets/images/blog/null-users-system-users/drupal-8-users-field-data-table.png rename to source/images/blog/null-users-system-users/drupal-8-users-field-data-table.png diff --git a/assets/images/blog/oliverdavies-uk-jenkins-git-poll.png b/source/images/blog/oliverdavies-uk-jenkins-git-poll.png similarity index 100% rename from assets/images/blog/oliverdavies-uk-jenkins-git-poll.png rename to source/images/blog/oliverdavies-uk-jenkins-git-poll.png diff --git a/assets/images/blog/oliverdavies-uk-jenkins-git-repo.png b/source/images/blog/oliverdavies-uk-jenkins-git-repo.png similarity index 100% rename from assets/images/blog/oliverdavies-uk-jenkins-git-repo.png rename to source/images/blog/oliverdavies-uk-jenkins-git-repo.png diff --git a/assets/images/blog/oliverdavies-uk-jenkins-git-timer.png b/source/images/blog/oliverdavies-uk-jenkins-git-timer.png similarity index 100% rename from assets/images/blog/oliverdavies-uk-jenkins-git-timer.png rename to source/images/blog/oliverdavies-uk-jenkins-git-timer.png diff --git a/assets/images/blog/oliverdavies-uk-jenkins-shell.png b/source/images/blog/oliverdavies-uk-jenkins-shell.png similarity index 100% rename from assets/images/blog/oliverdavies-uk-jenkins-shell.png rename to source/images/blog/oliverdavies-uk-jenkins-shell.png diff --git a/assets/images/blog/override-node-options-refactor-tests-new-passing.png b/source/images/blog/override-node-options-refactor-tests-new-passing.png similarity index 100% rename from assets/images/blog/override-node-options-refactor-tests-new-passing.png rename to source/images/blog/override-node-options-refactor-tests-new-passing.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-1.png b/source/images/blog/phpstorm-phpunit-docksal/cli-interpreter-1.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-1.png rename to source/images/blog/phpstorm-phpunit-docksal/cli-interpreter-1.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-2.png b/source/images/blog/phpstorm-phpunit-docksal/cli-interpreter-2.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-2.png rename to source/images/blog/phpstorm-phpunit-docksal/cli-interpreter-2.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-3.png b/source/images/blog/phpstorm-phpunit-docksal/cli-interpreter-3.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/cli-interpreter-3.png rename to source/images/blog/phpstorm-phpunit-docksal/cli-interpreter-3.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/deployment-1.png b/source/images/blog/phpstorm-phpunit-docksal/deployment-1.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/deployment-1.png rename to source/images/blog/phpstorm-phpunit-docksal/deployment-1.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/deployment-2.png b/source/images/blog/phpstorm-phpunit-docksal/deployment-2.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/deployment-2.png rename to source/images/blog/phpstorm-phpunit-docksal/deployment-2.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/deployment-3.png b/source/images/blog/phpstorm-phpunit-docksal/deployment-3.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/deployment-3.png rename to source/images/blog/phpstorm-phpunit-docksal/deployment-3.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-1.png b/source/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-1.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-1.png rename to source/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-1.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-2.png b/source/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-2.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-2.png rename to source/images/blog/phpstorm-phpunit-docksal/keyboard-shortcuts-2.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/phpunit-1.png b/source/images/blog/phpstorm-phpunit-docksal/phpunit-1.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/phpunit-1.png rename to source/images/blog/phpstorm-phpunit-docksal/phpunit-1.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/phpunit-2.png b/source/images/blog/phpstorm-phpunit-docksal/phpunit-2.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/phpunit-2.png rename to source/images/blog/phpstorm-phpunit-docksal/phpunit-2.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/phpunit-3.png b/source/images/blog/phpstorm-phpunit-docksal/phpunit-3.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/phpunit-3.png rename to source/images/blog/phpstorm-phpunit-docksal/phpunit-3.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/phpunit-4.png b/source/images/blog/phpstorm-phpunit-docksal/phpunit-4.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/phpunit-4.png rename to source/images/blog/phpstorm-phpunit-docksal/phpunit-4.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/running-tests-1.png b/source/images/blog/phpstorm-phpunit-docksal/running-tests-1.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/running-tests-1.png rename to source/images/blog/phpstorm-phpunit-docksal/running-tests-1.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/running-tests-2.png b/source/images/blog/phpstorm-phpunit-docksal/running-tests-2.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/running-tests-2.png rename to source/images/blog/phpstorm-phpunit-docksal/running-tests-2.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/test-failure-1.png b/source/images/blog/phpstorm-phpunit-docksal/test-failure-1.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/test-failure-1.png rename to source/images/blog/phpstorm-phpunit-docksal/test-failure-1.png diff --git a/source/assets/images/blog/phpstorm-phpunit-docksal/test-failure-2.png b/source/images/blog/phpstorm-phpunit-docksal/test-failure-2.png similarity index 100% rename from source/assets/images/blog/phpstorm-phpunit-docksal/test-failure-2.png rename to source/images/blog/phpstorm-phpunit-docksal/test-failure-2.png diff --git a/assets/images/blog/private-message-queue.png b/source/images/blog/private-message-queue.png similarity index 100% rename from assets/images/blog/private-message-queue.png rename to source/images/blog/private-message-queue.png diff --git a/source/assets/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-1.png b/source/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-1.png similarity index 100% rename from source/assets/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-1.png rename to source/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-1.png diff --git a/source/assets/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-2.png b/source/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-2.png similarity index 100% rename from source/assets/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-2.png rename to source/images/blog/quick-project-switching-phpstorm/adding-keyboard-shortcut-2.png diff --git a/source/assets/images/blog/quick-project-switching-phpstorm/find-action.png b/source/images/blog/quick-project-switching-phpstorm/find-action.png similarity index 100% rename from source/assets/images/blog/quick-project-switching-phpstorm/find-action.png rename to source/images/blog/quick-project-switching-phpstorm/find-action.png diff --git a/source/assets/images/blog/quick-project-switching-phpstorm/open-recent.png b/source/images/blog/quick-project-switching-phpstorm/open-recent.png similarity index 100% rename from source/assets/images/blog/quick-project-switching-phpstorm/open-recent.png rename to source/images/blog/quick-project-switching-phpstorm/open-recent.png diff --git a/source/assets/images/blog/quick-project-switching-phpstorm/welcome-screen.png b/source/images/blog/quick-project-switching-phpstorm/welcome-screen.png similarity index 100% rename from source/assets/images/blog/quick-project-switching-phpstorm/welcome-screen.png rename to source/images/blog/quick-project-switching-phpstorm/welcome-screen.png diff --git a/assets/images/blog/tdd-drupal-1.png b/source/images/blog/tdd-drupal-1.png similarity index 100% rename from assets/images/blog/tdd-drupal-1.png rename to source/images/blog/tdd-drupal-1.png diff --git a/assets/images/blog/tdd-drupal-2.png b/source/images/blog/tdd-drupal-2.png similarity index 100% rename from assets/images/blog/tdd-drupal-2.png rename to source/images/blog/tdd-drupal-2.png diff --git a/assets/images/blog/tdd-drupal-3.png b/source/images/blog/tdd-drupal-3.png similarity index 100% rename from assets/images/blog/tdd-drupal-3.png rename to source/images/blog/tdd-drupal-3.png diff --git a/assets/images/blog/tdd-drupal-4.png b/source/images/blog/tdd-drupal-4.png similarity index 100% rename from assets/images/blog/tdd-drupal-4.png rename to source/images/blog/tdd-drupal-4.png diff --git a/assets/images/blog/using-tailwind-drupal/important-1.png b/source/images/blog/using-tailwind-drupal/important-1.png similarity index 100% rename from assets/images/blog/using-tailwind-drupal/important-1.png rename to source/images/blog/using-tailwind-drupal/important-1.png diff --git a/assets/images/blog/using-tailwind-drupal/important-2.png b/source/images/blog/using-tailwind-drupal/important-2.png similarity index 100% rename from assets/images/blog/using-tailwind-drupal/important-2.png rename to source/images/blog/using-tailwind-drupal/important-2.png diff --git a/assets/images/blog/using-tailwind-drupal/prefix-1.png b/source/images/blog/using-tailwind-drupal/prefix-1.png similarity index 100% rename from assets/images/blog/using-tailwind-drupal/prefix-1.png rename to source/images/blog/using-tailwind-drupal/prefix-1.png diff --git a/assets/images/blog/using-tailwind-drupal/prefix-2.png b/source/images/blog/using-tailwind-drupal/prefix-2.png similarity index 100% rename from assets/images/blog/using-tailwind-drupal/prefix-2.png rename to source/images/blog/using-tailwind-drupal/prefix-2.png diff --git a/assets/images/experience/appnovation.png b/source/images/experience/appnovation.png similarity index 100% rename from assets/images/experience/appnovation.png rename to source/images/experience/appnovation.png diff --git a/assets/images/experience/cti-digital.png b/source/images/experience/cti-digital.png similarity index 100% rename from assets/images/experience/cti-digital.png rename to source/images/experience/cti-digital.png diff --git a/assets/images/experience/develop_me.svg b/source/images/experience/develop_me.svg similarity index 100% rename from assets/images/experience/develop_me.svg rename to source/images/experience/develop_me.svg diff --git a/assets/images/experience/drupal-association.png b/source/images/experience/drupal-association.png similarity index 100% rename from assets/images/experience/drupal-association.png rename to source/images/experience/drupal-association.png diff --git a/assets/images/experience/horse-and-country.jpg b/source/images/experience/horse-and-country.jpg similarity index 100% rename from assets/images/experience/horse-and-country.jpg rename to source/images/experience/horse-and-country.jpg diff --git a/assets/images/experience/lab-class.png b/source/images/experience/lab-class.png similarity index 100% rename from assets/images/experience/lab-class.png rename to source/images/experience/lab-class.png diff --git a/assets/images/experience/microserve.png b/source/images/experience/microserve.png similarity index 100% rename from assets/images/experience/microserve.png rename to source/images/experience/microserve.png diff --git a/assets/images/experience/nomensa.png b/source/images/experience/nomensa.png similarity index 100% rename from assets/images/experience/nomensa.png rename to source/images/experience/nomensa.png diff --git a/assets/images/experience/precedent.jpg b/source/images/experience/precedent.jpg similarity index 100% rename from assets/images/experience/precedent.jpg rename to source/images/experience/precedent.jpg diff --git a/assets/images/experience/proctors.jpg b/source/images/experience/proctors.jpg similarity index 100% rename from assets/images/experience/proctors.jpg rename to source/images/experience/proctors.jpg diff --git a/assets/images/loading.gif b/source/images/loading.gif similarity index 100% rename from assets/images/loading.gif rename to source/images/loading.gif diff --git a/assets/images/me-phpnw.png b/source/images/me-phpnw.png similarity index 100% rename from assets/images/me-phpnw.png rename to source/images/me-phpnw.png diff --git a/assets/images/me-precedent.jpg b/source/images/me-precedent.jpg similarity index 100% rename from assets/images/me-precedent.jpg rename to source/images/me-precedent.jpg diff --git a/assets/images/meetups/accessible-bristol.png b/source/images/meetups/accessible-bristol.png similarity index 100% rename from assets/images/meetups/accessible-bristol.png rename to source/images/meetups/accessible-bristol.png diff --git a/assets/images/meetups/drupal-bristol.jpeg b/source/images/meetups/drupal-bristol.jpeg similarity index 100% rename from assets/images/meetups/drupal-bristol.jpeg rename to source/images/meetups/drupal-bristol.jpeg diff --git a/assets/images/meetups/drupalcamp-bristol.png b/source/images/meetups/drupalcamp-bristol.png similarity index 100% rename from assets/images/meetups/drupalcamp-bristol.png rename to source/images/meetups/drupalcamp-bristol.png diff --git a/assets/images/meetups/nwdug.jpg b/source/images/meetups/nwdug.jpg similarity index 100% rename from assets/images/meetups/nwdug.jpg rename to source/images/meetups/nwdug.jpg diff --git a/assets/images/meetups/phpnw.gif b/source/images/meetups/phpnw.gif similarity index 100% rename from assets/images/meetups/phpnw.gif rename to source/images/meetups/phpnw.gif diff --git a/assets/images/meetups/phpnw.jpg b/source/images/meetups/phpnw.jpg similarity index 100% rename from assets/images/meetups/phpnw.jpg rename to source/images/meetups/phpnw.jpg diff --git a/assets/images/meetups/phpsw.jpeg b/source/images/meetups/phpsw.jpeg similarity index 100% rename from assets/images/meetups/phpsw.jpeg rename to source/images/meetups/phpsw.jpeg diff --git a/assets/images/meetups/swdug.png b/source/images/meetups/swdug.png similarity index 100% rename from assets/images/meetups/swdug.png rename to source/images/meetups/swdug.png diff --git a/assets/images/meetups/swlug.png b/source/images/meetups/swlug.png similarity index 100% rename from assets/images/meetups/swlug.png rename to source/images/meetups/swlug.png diff --git a/assets/images/meetups/unified-diff.png b/source/images/meetups/unified-diff.png similarity index 100% rename from assets/images/meetups/unified-diff.png rename to source/images/meetups/unified-diff.png diff --git a/assets/images/talks/dancing-for-drupal.png b/source/images/talks/dancing-for-drupal.png similarity index 100% rename from assets/images/talks/dancing-for-drupal.png rename to source/images/talks/dancing-for-drupal.png diff --git a/assets/images/talks/dclondon16.png b/source/images/talks/dclondon16.png similarity index 100% rename from assets/images/talks/dclondon16.png rename to source/images/talks/dclondon16.png diff --git a/assets/images/talks/deploying-php-fabric.png b/source/images/talks/deploying-php-fabric.png similarity index 100% rename from assets/images/talks/deploying-php-fabric.png rename to source/images/talks/deploying-php-fabric.png diff --git a/assets/images/talks/drupal-8.png b/source/images/talks/drupal-8.png similarity index 100% rename from assets/images/talks/drupal-8.png rename to source/images/talks/drupal-8.png diff --git a/assets/images/talks/drupal-rejoining-php-herd.png b/source/images/talks/drupal-rejoining-php-herd.png similarity index 100% rename from assets/images/talks/drupal-rejoining-php-herd.png rename to source/images/talks/drupal-rejoining-php-herd.png diff --git a/assets/images/talks/drupal-vm-generator.png b/source/images/talks/drupal-vm-generator.png similarity index 100% rename from assets/images/talks/drupal-vm-generator.png rename to source/images/talks/drupal-vm-generator.png diff --git a/assets/images/talks/drupal-vm-meet-symfony-console.png b/source/images/talks/drupal-vm-meet-symfony-console.png similarity index 100% rename from assets/images/talks/drupal-vm-meet-symfony-console.png rename to source/images/talks/drupal-vm-meet-symfony-console.png diff --git a/assets/images/talks/drupalorg-2014-retrospective.png b/source/images/talks/drupalorg-2014-retrospective.png similarity index 100% rename from assets/images/talks/drupalorg-2014-retrospective.png rename to source/images/talks/drupalorg-2014-retrospective.png diff --git a/assets/images/talks/drush-make-composer-2.png b/source/images/talks/drush-make-composer-2.png similarity index 100% rename from assets/images/talks/drush-make-composer-2.png rename to source/images/talks/drush-make-composer-2.png diff --git a/assets/images/talks/drush-make-composer.png b/source/images/talks/drush-make-composer.png similarity index 100% rename from assets/images/talks/drush-make-composer.png rename to source/images/talks/drush-make-composer.png diff --git a/assets/images/talks/drush-make-drupalbristol.png b/source/images/talks/drush-make-drupalbristol.png similarity index 100% rename from assets/images/talks/drush-make-drupalbristol.png rename to source/images/talks/drush-make-drupalbristol.png diff --git a/assets/images/talks/drush-make-is-dead-long-live-composer.png b/source/images/talks/drush-make-is-dead-long-live-composer.png similarity index 100% rename from assets/images/talks/drush-make-is-dead-long-live-composer.png rename to source/images/talks/drush-make-is-dead-long-live-composer.png diff --git a/assets/images/talks/fabric-drupal.png b/source/images/talks/fabric-drupal.png similarity index 100% rename from assets/images/talks/fabric-drupal.png rename to source/images/talks/fabric-drupal.png diff --git a/assets/images/talks/getting-your-data-into-drupal-8.png b/source/images/talks/getting-your-data-into-drupal-8.png similarity index 100% rename from assets/images/talks/getting-your-data-into-drupal-8.png rename to source/images/talks/getting-your-data-into-drupal-8.png diff --git a/assets/images/talks/git-flow.png b/source/images/talks/git-flow.png similarity index 100% rename from assets/images/talks/git-flow.png rename to source/images/talks/git-flow.png diff --git a/assets/images/talks/it-all-started-with-a-patch.png b/source/images/talks/it-all-started-with-a-patch.png similarity index 100% rename from assets/images/talks/it-all-started-with-a-patch.png rename to source/images/talks/it-all-started-with-a-patch.png diff --git a/assets/images/talks/laravel-collections.png b/source/images/talks/laravel-collections.png similarity index 100% rename from assets/images/talks/laravel-collections.png rename to source/images/talks/laravel-collections.png diff --git a/assets/images/talks/logos/drupal-bristol.jpg b/source/images/talks/logos/drupal-bristol.jpg similarity index 100% rename from assets/images/talks/logos/drupal-bristol.jpg rename to source/images/talks/logos/drupal-bristol.jpg diff --git a/assets/images/talks/logos/drupalcamp-brighton-2015.png b/source/images/talks/logos/drupalcamp-brighton-2015.png similarity index 100% rename from assets/images/talks/logos/drupalcamp-brighton-2015.png rename to source/images/talks/logos/drupalcamp-brighton-2015.png diff --git a/assets/images/talks/logos/drupalcamp-bristol-2016.png b/source/images/talks/logos/drupalcamp-bristol-2016.png similarity index 100% rename from assets/images/talks/logos/drupalcamp-bristol-2016.png rename to source/images/talks/logos/drupalcamp-bristol-2016.png diff --git a/assets/images/talks/logos/drupalcamp-london-2014.png b/source/images/talks/logos/drupalcamp-london-2014.png similarity index 100% rename from assets/images/talks/logos/drupalcamp-london-2014.png rename to source/images/talks/logos/drupalcamp-london-2014.png diff --git a/assets/images/talks/logos/drupalcamp-london-2015.png b/source/images/talks/logos/drupalcamp-london-2015.png similarity index 100% rename from assets/images/talks/logos/drupalcamp-london-2015.png rename to source/images/talks/logos/drupalcamp-london-2015.png diff --git a/assets/images/talks/logos/drupalcamp-london-2017.png b/source/images/talks/logos/drupalcamp-london-2017.png similarity index 100% rename from assets/images/talks/logos/drupalcamp-london-2017.png rename to source/images/talks/logos/drupalcamp-london-2017.png diff --git a/assets/images/talks/logos/drupalcamp-north-2015.png b/source/images/talks/logos/drupalcamp-north-2015.png similarity index 100% rename from assets/images/talks/logos/drupalcamp-north-2015.png rename to source/images/talks/logos/drupalcamp-north-2015.png diff --git a/assets/images/talks/logos/nomad-php.png b/source/images/talks/logos/nomad-php.png similarity index 100% rename from assets/images/talks/logos/nomad-php.png rename to source/images/talks/logos/nomad-php.png diff --git a/assets/images/talks/logos/nwdug.jpeg b/source/images/talks/logos/nwdug.jpeg similarity index 100% rename from assets/images/talks/logos/nwdug.jpeg rename to source/images/talks/logos/nwdug.jpeg diff --git a/assets/images/talks/logos/php-south-coast-2016.png b/source/images/talks/logos/php-south-coast-2016.png similarity index 100% rename from assets/images/talks/logos/php-south-coast-2016.png rename to source/images/talks/logos/php-south-coast-2016.png diff --git a/assets/images/talks/logos/phpsw.png b/source/images/talks/logos/phpsw.png similarity index 100% rename from assets/images/talks/logos/phpsw.png rename to source/images/talks/logos/phpsw.png diff --git a/assets/images/talks/logos/swdug.png b/source/images/talks/logos/swdug.png similarity index 100% rename from assets/images/talks/logos/swdug.png rename to source/images/talks/logos/swdug.png diff --git a/assets/images/talks/logos/umbristol.jpeg b/source/images/talks/logos/umbristol.jpeg similarity index 100% rename from assets/images/talks/logos/umbristol.jpeg rename to source/images/talks/logos/umbristol.jpeg diff --git a/assets/images/talks/logos/unified-diff.png b/source/images/talks/logos/unified-diff.png similarity index 100% rename from assets/images/talks/logos/unified-diff.png rename to source/images/talks/logos/unified-diff.png diff --git a/assets/images/talks/modern-drupal-development-composer.png b/source/images/talks/modern-drupal-development-composer.png similarity index 100% rename from assets/images/talks/modern-drupal-development-composer.png rename to source/images/talks/modern-drupal-development-composer.png diff --git a/assets/images/talks/static-websites-sculpin.png b/source/images/talks/static-websites-sculpin.png similarity index 100% rename from assets/images/talks/static-websites-sculpin.png rename to source/images/talks/static-websites-sculpin.png diff --git a/assets/images/talks/taking-flight-tailwind.png b/source/images/talks/taking-flight-tailwind.png similarity index 100% rename from assets/images/talks/taking-flight-tailwind.png rename to source/images/talks/taking-flight-tailwind.png diff --git a/assets/images/talks/test-drive-twig-sculpin.png b/source/images/talks/test-drive-twig-sculpin.png similarity index 100% rename from assets/images/talks/test-drive-twig-sculpin.png rename to source/images/talks/test-drive-twig-sculpin.png diff --git a/assets/images/talks/test-driven-drupal-development.png b/source/images/talks/test-driven-drupal-development.png similarity index 100% rename from assets/images/talks/test-driven-drupal-development.png rename to source/images/talks/test-driven-drupal-development.png diff --git a/assets/images/testimonials/brian-healy.png b/source/images/testimonials/brian-healy.png similarity index 100% rename from assets/images/testimonials/brian-healy.png rename to source/images/testimonials/brian-healy.png diff --git a/assets/images/testimonials/chris-jarvis.jpg b/source/images/testimonials/chris-jarvis.jpg similarity index 100% rename from assets/images/testimonials/chris-jarvis.jpg rename to source/images/testimonials/chris-jarvis.jpg diff --git a/assets/images/testimonials/ed-welsby.png b/source/images/testimonials/ed-welsby.png similarity index 100% rename from assets/images/testimonials/ed-welsby.png rename to source/images/testimonials/ed-welsby.png diff --git a/assets/images/testimonials/holly-ross.png b/source/images/testimonials/holly-ross.png similarity index 100% rename from assets/images/testimonials/holly-ross.png rename to source/images/testimonials/holly-ross.png diff --git a/assets/images/testimonials/james-chapman.png b/source/images/testimonials/james-chapman.png similarity index 100% rename from assets/images/testimonials/james-chapman.png rename to source/images/testimonials/james-chapman.png diff --git a/assets/images/testimonials/josh-mitchell.png b/source/images/testimonials/josh-mitchell.png similarity index 100% rename from assets/images/testimonials/josh-mitchell.png rename to source/images/testimonials/josh-mitchell.png diff --git a/assets/images/testimonials/leonie-watson.jpg b/source/images/testimonials/leonie-watson.jpg similarity index 100% rename from assets/images/testimonials/leonie-watson.jpg rename to source/images/testimonials/leonie-watson.jpg diff --git a/source/testimonials.html.twig b/source/testimonials.html.twig index 4537a9bd..a8737ea9 100644 --- a/source/testimonials.html.twig +++ b/source/testimonials.html.twig @@ -73,7 +73,7 @@ testimonials: {% if testimonial.image %}
{{ testimonial.name }} diff --git a/webpack.mix.js b/webpack.mix.js index b583928a..dfb53281 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -10,7 +10,6 @@ mix.disableNotifications() 'node_modules/highlightjs/highlight.pack.js', 'assets/js/site.js', ], 'source/dist/js/all.js') - .copyDirectory('assets/images', 'source/dist/images') .copyDirectory('node_modules/font-awesome/fonts', 'source/dist/fonts') .tailwind() .purgeCss({