Remove instances of .. page::

Replace instances of `.. page::` with:

```rst
.. raw:: pdf

    PageBreak
```

This reduces my usage on the `preprocess` functionality I'd like to
remove.

This was done by executing this command:

```
find src -type f -name '*.rst' \
  -exec sed -Ei 's/.. page::$/.. raw:: pdf\n\n    PageBreak/g' {} \;
```
This commit is contained in:
Oliver Davies 2024-05-10 22:37:50 +02:00
parent 4f888eb6ec
commit 4de38d0276
27 changed files with 396 additions and 132 deletions

View file

@ -11,7 +11,9 @@ Ansible is an open-source **software provisioning**, **configuration management*
https://en.wikipedia.org/wiki/Ansible_(software) https://en.wikipedia.org/wiki/Ansible_(software)
.. page:: .. raw:: pdf
PageBreak
What is Ansible? What is Ansible?
================ ================
@ -33,7 +35,9 @@ What is Ansible?
TextAnnotation "Nothing needed on the server, other than Python." TextAnnotation "Nothing needed on the server, other than Python."
TextAnnotation "First-party modules (SSH keys, file and directory management, package repositories, stopping/starting/restarting services, DO/Linode/AWS integration)." TextAnnotation "First-party modules (SSH keys, file and directory management, package repositories, stopping/starting/restarting services, DO/Linode/AWS integration)."
.. page:: .. raw:: pdf
PageBreak
Why Ansible? Why Ansible?
============ ============

View file

@ -49,7 +49,9 @@ hosts.yml
Ad-hoc Commands Ad-hoc Commands
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
@ -88,7 +90,9 @@ Ad-hoc Commands
TextAnnotation "-a = (additional) arguments" TextAnnotation "-a = (additional) arguments"
TextAnnotation "--chdir = change directory" TextAnnotation "--chdir = change directory"
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle

View file

@ -18,7 +18,9 @@ Keeping secrets with Ansible Vault
password: secret password: secret
priv: main.*:ALL priv: main.*:ALL
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -57,7 +59,9 @@ Encryption successful``
37373865393839616534353165656463313961333532363537383263343364646534333032336337 37373865393839616534353165656463313961333532363537383263343364646534333032336337
3235 3235
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -68,7 +72,9 @@ Encryption successful``
database_user: '{{ vault_database_user }}' database_user: '{{ vault_database_user }}'
database_password: '{{ vault_database_password }}' database_password: '{{ vault_database_password }}'
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml

View file

@ -9,7 +9,9 @@ Better deployments with Ansistrano
.. image:: images/ansistrano.png .. image:: images/ansistrano.png
:width: 24cm :width: 24cm
.. page:: .. raw:: pdf
PageBreak
Features Features
======== ========
@ -22,7 +24,9 @@ Features
- Prune old releases - Prune old releases
- Rollbacks - Rollbacks
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -37,7 +41,9 @@ Features
TextAnnotation "to install Ansistrano, add the additional roles to the requirements.yml file" TextAnnotation "to install Ansistrano, add the additional roles to the requirements.yml file"
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -54,7 +60,9 @@ Features
TextAnnotation "add to roles within the playbook" TextAnnotation "add to roles within the playbook"
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -69,7 +77,9 @@ Features
ansistrano_git_branch: master ansistrano_git_branch: master
ansistrano_git_repo: 'git@github.com:opdavies/dransible' ansistrano_git_repo: 'git@github.com:opdavies/dransible'
.. page:: .. raw:: pdf
PageBreak
.. code-block:: .. code-block::
PLAY [webservers] ****************************************************************************************************** PLAY [webservers] ******************************************************************************************************
@ -94,7 +104,9 @@ Features
TASK [ansistrano.deploy : ANSISTRANO | Ensure shared paths exists] ***************************************************** TASK [ansistrano.deploy : ANSISTRANO | Ensure shared paths exists] *****************************************************
ok: [webservers] => (item=web/sites/default/files) ok: [webservers] => (item=web/sites/default/files)
.. page:: .. raw:: pdf
PageBreak
.. code-block:: .. code-block::
@ -120,7 +132,9 @@ Features
PLAY RECAP ************************************************************************************************************* PLAY RECAP *************************************************************************************************************
webservers : ok=33 changed=14 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 webservers : ok=33 changed=14 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0
.. page:: .. raw:: pdf
PageBreak
.. code-block:: .. code-block::
@ -131,7 +145,9 @@ Features
drwxr-xr-x 5 4096 Jul 22 20:30 releases drwxr-xr-x 5 4096 Jul 22 20:30 releases
drwxr-xr-x 4 4096 Jul 19 00:00 shared drwxr-xr-x 4 4096 Jul 19 00:00 shared
.. page:: .. raw:: pdf
PageBreak
.. code-block:: .. code-block::
@ -144,7 +160,9 @@ Features
drwxr-xr-x 10 4096 Jul 19 00:14 20190719001241Z drwxr-xr-x 10 4096 Jul 19 00:14 20190719001241Z
drwxr-xr-x 9 4096 Jul 22 20:30 20190722203038Z drwxr-xr-x 9 4096 Jul 22 20:30 20190722203038Z
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -167,7 +185,9 @@ Features
``ansible-playbook rollback.yml ``ansible-playbook rollback.yml
-i hosts.yml`` -i hosts.yml``
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
@ -201,7 +221,9 @@ Build Hooks
release_web_path: '{{ ansistrano_release_path.stdout }}/web' release_web_path: '{{ ansistrano_release_path.stdout }}/web'
release_drush_path: '{{ ansistrano_release_path.stdout }}/bin/drush' release_drush_path: '{{ ansistrano_release_path.stdout }}/bin/drush'
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -214,7 +236,9 @@ Build Hooks
command: install command: install
working_dir: '{{ ansistrano_release_path.stdout }}' working_dir: '{{ ansistrano_release_path.stdout }}'
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -228,7 +252,9 @@ Build Hooks
--root {{ release_web_path }} --root {{ release_web_path }}
updatedb updatedb
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml

View file

@ -55,7 +55,9 @@ requirements.yml
TextAnnotation "Ordering matters here!" TextAnnotation "Ordering matters here!"
TextAnnotation "If these were ordered alphabetically then Composer install would fail because it would run before PHP is installed." TextAnnotation "If these were ordered alphabetically then Composer install would fail because it would run before PHP is installed."
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -71,7 +73,9 @@ requirements.yml
TextAnnotation "configuring the Apache role to install virtual hosts." TextAnnotation "configuring the Apache role to install virtual hosts."
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -88,7 +92,9 @@ requirements.yml
TextAnnotation "configuring PHP." TextAnnotation "configuring PHP."
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -139,7 +145,9 @@ requirements.yml
TASK [geerlingguy.apache : Update apt cache.] ************************************************************************** TASK [geerlingguy.apache : Update apt cache.] **************************************************************************
changed: [webservers] changed: [webservers]
.. page:: .. raw:: pdf
PageBreak
.. code-block:: .. code-block::
@ -167,7 +175,9 @@ requirements.yml
PLAY RECAP ************************************************************************************************************* PLAY RECAP *************************************************************************************************************
webservers : ok=111 changed=32 unreachable=0 failed=0 skipped=78 rescued=0 ignored=0 webservers : ok=111 changed=32 unreachable=0 failed=0 skipped=78 rescued=0 ignored=0
.. page:: .. raw:: pdf
PageBreak
.. image:: images/after-provision-1.png .. image:: images/after-provision-1.png
:width: 24cm :width: 24cm
@ -176,7 +186,9 @@ requirements.yml
TextAnnotation "IP address of server, Apache is installed and running." TextAnnotation "IP address of server, Apache is installed and running."
.. page:: .. raw:: pdf
PageBreak
.. image:: images/after-provision-2.png .. image:: images/after-provision-2.png
:width: 24cm :width: 24cm

View file

@ -27,7 +27,9 @@ Generating settings files per deployment
config_directories: config_directories:
sync: ../config/sync sync: ../config/sync
.. page:: .. raw:: pdf
PageBreak
.. code-block:: jinja .. code-block:: jinja
@ -50,7 +52,9 @@ Generating settings files per deployment
$base_url = '{{ item.1.settings.base_url }}'; $base_url = '{{ item.1.settings.base_url }}';
{% endif %} {% endif %}
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml

View file

@ -25,7 +25,9 @@ Multiple environments development, test, production
password: '{{ staging_db_password }}' password: '{{ staging_db_password }}'
priv: staging.*:ALL priv: staging.*:ALL
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -48,7 +50,9 @@ Multiple environments development, test, production
drupal_settings: drupal_settings:
# ... # ...
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
@ -79,7 +83,9 @@ Multiple environments development, test, production
-i hosts.yml -i hosts.yml
--limit staging`` --limit staging``
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle

View file

@ -179,7 +179,9 @@ Drupal Check
``composer global require ``composer global require
mglaman/drupal-check`` mglaman/drupal-check``
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
``drupal-check web/modules/custom`` ``drupal-check web/modules/custom``
@ -259,18 +261,24 @@ Composer
``composer require ``composer require
drupal/admin_toolbar:^2.0`` drupal/admin_toolbar:^2.0``
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
``composer install`` ``composer install``
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
``composer update ``composer update
drupal/admin_toolbar`` drupal/admin_toolbar``
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
Always add '--no-dev' in production Always add '--no-dev' in production
@ -325,7 +333,9 @@ Upgrading Dransible
``composer update drupal/core-* ``composer update drupal/core-*
--with-dependencies`` --with-dependencies``
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
``composer require ``composer require
@ -396,7 +406,9 @@ There were some autowiring gotchas...
``Error: Class 'Symfony\Component\Config\Resource\ClassExistenceResource' not found in Symfony\Component\DependencyInjection\Compiler\AutowirePass->createTypeNotFoundMessage()`` ``Error: Class 'Symfony\Component\Config\Resource\ClassExistenceResource' not found in Symfony\Component\DependencyInjection\Compiler\AutowirePass->createTypeNotFoundMessage()``
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle

View file

@ -143,7 +143,9 @@ Presenting
.. image:: images/pdfpc-1.png .. image:: images/pdfpc-1.png
:width: 23cm :width: 23cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/pdfpc-2.png .. image:: images/pdfpc-2.png
:width: 23cm :width: 23cm

View file

@ -14,7 +14,9 @@ Oliver Davies (@opdavies)
.. image:: images/druplicon.png .. image:: images/druplicon.png
:width: 10cm :width: 10cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/sculpin.png .. image:: images/sculpin.png
:width: 10cm :width: 10cm

View file

@ -1,12 +1,16 @@
.. image:: ../images/logo.jpeg .. image:: ../images/logo.jpeg
:width: 8cm :width: 8cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/twilio.png .. image:: ../images/twilio.png
:width: 12cm :width: 12cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/lexis-nexis.jpg .. image:: ../images/lexis-nexis.jpg
:width: 12cm :width: 12cm
@ -52,7 +56,9 @@ Tonight
Looking for speakers, sponsors and organisers Looking for speakers, sponsors and organisers
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
@ -67,7 +73,9 @@ Join us in ``#website-improve``
.. image:: images/symfonylive-online-cfp.png .. image:: images/symfonylive-online-cfp.png
:width: 18cm :width: 18cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/deploy-friday-composer.png .. image:: images/deploy-friday-composer.png
:width: 20cm :width: 20cm

View file

@ -1,12 +1,16 @@
.. image:: ../images/logo.jpeg .. image:: ../images/logo.jpeg
:width: 8cm :width: 8cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/twilio.png .. image:: ../images/twilio.png
:width: 12cm :width: 12cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/lexis-nexis.jpg .. image:: ../images/lexis-nexis.jpg
:width: 12cm :width: 12cm
@ -53,7 +57,9 @@ Next month
Looking for speakers and sponsors Looking for speakers and sponsors
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle

View file

@ -1,12 +1,16 @@
.. image:: ../images/logo.jpeg .. image:: ../images/logo.jpeg
:width: 8cm :width: 8cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/twilio.png .. image:: ../images/twilio.png
:width: 12cm :width: 12cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/lexis-nexis.jpg .. image:: ../images/lexis-nexis.jpg
:width: 12cm :width: 12cm
@ -46,7 +50,9 @@ Next month
.. image:: images/Selection_038.png .. image:: images/Selection_038.png
:width: 14cm :width: 14cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/Selection_039.png .. image:: images/Selection_039.png
:width: 13cm :width: 13cm
@ -57,7 +63,9 @@ Next month
Looking for speakers and sponsors Looking for speakers and sponsors
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle

View file

@ -1,12 +1,16 @@
.. image:: ../images/logo.jpeg .. image:: ../images/logo.jpeg
:width: 8cm :width: 8cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/twilio.png .. image:: ../images/twilio.png
:width: 12cm :width: 12cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/lexis-nexis.jpg .. image:: ../images/lexis-nexis.jpg
:width: 12cm :width: 12cm

View file

@ -1,12 +1,16 @@
.. image:: ../images/logo.jpeg .. image:: ../images/logo.jpeg
:width: 10cm :width: 10cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/twilio.png .. image:: ../images/twilio.png
:width: 12cm :width: 12cm
.. page:: .. raw:: pdf
PageBreak
.. image:: ../images/lexis-nexis.jpg .. image:: ../images/lexis-nexis.jpg
:width: 12cm :width: 12cm

View file

@ -1,12 +1,16 @@
.. image:: images/logo.jpeg .. image:: images/logo.jpeg
:width: 10cm :width: 10cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/twilio.png .. image:: images/twilio.png
:width: 12cm :width: 12cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/lexis-nexis.jpg .. image:: images/lexis-nexis.jpg
:width: 12cm :width: 12cm

View file

@ -1,22 +1,30 @@
.. image:: images/logo.jpeg .. image:: images/logo.jpeg
:width: 10cm :width: 10cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images2/phpsa.png .. image:: images2/phpsa.png
:width: 10cm :width: 10cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/twilio.png .. image:: images/twilio.png
:width: 12cm :width: 12cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/lexis-nexis.jpg .. image:: images/lexis-nexis.jpg
:width: 12cm :width: 12cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/oliver-davies.jpg .. image:: images/oliver-davies.jpg
:width: 12cm :width: 12cm

View file

@ -28,7 +28,9 @@ Tasks
- Ensure only published articles are shown - Ensure only published articles are shown
- Ensure the articles are shown in the correct order - Ensure the articles are shown in the correct order
.. page:: .. raw:: pdf
PageBreak
.. Creating the test class. .. Creating the test class.
@ -67,7 +69,9 @@ Tasks
:startinline: true :startinline: true
:hl_lines: 9,10,11 :hl_lines: 9,10,11
.. page:: .. raw:: pdf
PageBreak
.. Adding the first test. .. Adding the first test.
@ -110,7 +114,9 @@ Tasks
:end-before: // end test :end-before: // end test
:hl_lines: 7 :hl_lines: 7
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/3.txt :include: code/3.txt
@ -139,7 +145,9 @@ Tasks
:end-before: // end output :end-before: // end output
:hl_lines: 8,9 :hl_lines: 8,9
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
:include: code/3.txt :include: code/3.txt
@ -147,7 +155,9 @@ Tasks
:start-after: // start routing :start-after: // start routing
:end-before: // end routing :end-before: // end routing
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
:include: code/3.txt :include: code/3.txt
@ -160,7 +170,9 @@ Tasks
TextAnnotation "This controller doesn't exist yet, but the test will tell us that." TextAnnotation "This controller doesn't exist yet, but the test will tell us that."
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/3.txt :include: code/3.txt
@ -173,7 +185,9 @@ Tasks
TextAnnotation "Same result as the module isn't enabled." TextAnnotation "Same result as the module isn't enabled."
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/4.txt :include: code/4.txt
@ -236,7 +250,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 1,2,3 :hl_lines: 1,2,3
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/6.txt :include: code/6.txt
@ -246,7 +262,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 7,13 :hl_lines: 7,13
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/6.txt :include: code/6.txt
@ -256,14 +274,18 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 9,10,11 :hl_lines: 9,10,11
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/6.txt :include: code/6.txt
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/7.txt :include: code/7.txt
@ -298,14 +320,18 @@ Tasks
:end-before: // end test :end-before: // end test
:hl_lines: 8,9 :hl_lines: 8,9
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/7.txt :include: code/7.txt
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/7.txt :include: code/7.txt
@ -315,7 +341,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 3,7 :hl_lines: 3,7
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/7.txt :include: code/7.txt
@ -325,14 +353,18 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 10,11,12 :hl_lines: 10,11,12
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/7.txt :include: code/7.txt
:start-after: // start output2 :start-after: // start output2
:end-before: // end output2 :end-before: // end output2
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/8.txt :include: code/8.txt
@ -341,7 +373,9 @@ Tasks
:start-after: // start code :start-after: // start code
:end-before: // end code :end-before: // end code
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/8.txt :include: code/8.txt
@ -351,7 +385,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 1,2,3,4,5,6,7,15 :hl_lines: 1,2,3,4,5,6,7,15
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/8.txt :include: code/8.txt
@ -361,7 +397,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 9,10,14 :hl_lines: 9,10,14
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/8.txt :include: code/8.txt
@ -371,7 +409,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 11 :hl_lines: 11
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/8.txt :include: code/8.txt
@ -381,7 +421,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 13 :hl_lines: 13
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/8.txt :include: code/8.txt
@ -393,7 +435,9 @@ Tasks
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/9.txt :include: code/9.txt
@ -410,14 +454,18 @@ Tasks
:start-after: // start services :start-after: // start services
:end-before: // end services :end-before: // end services
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
:include: code/9.txt :include: code/9.txt
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/10.txt :include: code/10.txt
@ -427,14 +475,18 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 5,6,7 :hl_lines: 5,6,7
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/10.txt :include: code/10.txt
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/11.txt :include: code/11.txt
@ -443,7 +495,9 @@ Tasks
:start-after: // start code 1 :start-after: // start code 1
:end-before: // end code 1 :end-before: // end code 1
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/11.txt :include: code/11.txt
@ -453,7 +507,9 @@ Tasks
:end-before: // end code 1 :end-before: // end code 1
:hl_lines: 10,11,12 :hl_lines: 10,11,12
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/11.txt :include: code/11.txt
@ -463,7 +519,9 @@ Tasks
:end-before: // end code 1 :end-before: // end code 1
:hl_lines: 8,13 :hl_lines: 8,13
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/11.txt :include: code/11.txt
@ -473,7 +531,9 @@ Tasks
:end-before: // end code 2 :end-before: // end code 2
:hl_lines: 1,3 :hl_lines: 1,3
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/11.txt :include: code/11.txt
@ -483,7 +543,9 @@ Tasks
:end-before: // end code 2 :end-before: // end code 2
:hl_lines: 2 :hl_lines: 2
.. page:: .. raw:: pdf
PageBreak
.. code-block:: yaml .. code-block:: yaml
:include: code/12.txt :include: code/12.txt
@ -504,7 +566,9 @@ Tasks
TextAnnotation "Declare the Repository as a service." TextAnnotation "Declare the Repository as a service."
TextAnnotation "Autowire or declare dependencies explicitly." TextAnnotation "Autowire or declare dependencies explicitly."
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/12.txt :include: code/12.txt
@ -520,14 +584,18 @@ Tasks
:start-after: // start test :start-after: // start test
:end-before: // end test :end-before: // end test
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/13.txt :include: code/13.txt
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/14.txt :include: code/14.txt
@ -537,7 +605,9 @@ Tasks
:end-before: // end test :end-before: // end test
:hl_lines: 1 :hl_lines: 1
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/14.txt :include: code/14.txt
@ -547,14 +617,18 @@ Tasks
:end-before: // end test :end-before: // end test
:hl_lines: 5 :hl_lines: 5
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/14.txt :include: code/14.txt
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/15.txt :include: code/15.txt
@ -589,7 +663,9 @@ Tasks
:start-after: // start test :start-after: // start test
:hl_lines: 10,11 :hl_lines: 10,11
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/15.txt :include: code/15.txt
@ -613,7 +689,9 @@ Tasks
:start-after: // start test :start-after: // start test
:end-before: // end test :end-before: // end test
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/16.txt :include: code/16.txt
@ -623,7 +701,9 @@ Tasks
:end-before: // end test :end-before: // end test
:hl_lines: 2,4,6 :hl_lines: 2,4,6
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/16.txt :include: code/16.txt
@ -633,7 +713,9 @@ Tasks
:end-before: // end test :end-before: // end test
:hl_lines: 3,5 :hl_lines: 3,5
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/16.txt :include: code/16.txt
@ -653,7 +735,9 @@ Tasks
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/17.txt :include: code/17.txt
@ -669,7 +753,9 @@ Tasks
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. Ensure articles are ordered correctly. .. Ensure articles are ordered correctly.
@ -680,7 +766,9 @@ Tasks
:start-after: // start test :start-after: // start test
:end-before: // end test :end-before: // end test
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/18.txt :include: code/18.txt
@ -690,7 +778,9 @@ Tasks
:end-before: // end test :end-before: // end test
:hl_lines: 3,5,7,9,11 :hl_lines: 3,5,7,9,11
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/18.txt :include: code/18.txt
@ -700,14 +790,18 @@ Tasks
:end-before: // end test :end-before: // end test
:hl_lines: 16 :hl_lines: 16
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/18.txt :include: code/18.txt
:start-after: // start output :start-after: // start output
:end-before: // end output :end-before: // end output
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/19.txt :include: code/19.txt
@ -716,7 +810,9 @@ Tasks
:start-after: // start code :start-after: // start code
:end-before: // end code :end-before: // end code
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/19.txt :include: code/19.txt
@ -726,7 +822,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 2,3,4 :hl_lines: 2,3,4
.. page:: .. raw:: pdf
PageBreak
.. code-block:: php .. code-block:: php
:include: code/19.txt :include: code/19.txt
@ -749,7 +847,9 @@ Tasks
:end-before: // end code :end-before: // end code
:hl_lines: 9 :hl_lines: 9
.. page:: .. raw:: pdf
PageBreak
.. code-block:: plain .. code-block:: plain
:include: code/19.txt :include: code/19.txt

View file

@ -41,7 +41,9 @@ Software Developer, Consultant, open-source maintainer
.. image:: images/override-node-options-1.png .. image:: images/override-node-options-1.png
:width: 18cm :width: 18cm
.. page:: .. raw:: pdf
PageBreak
TextAnnotation "These were the usage statistics from Drupal.org when I became the maintainer." TextAnnotation "These were the usage statistics from Drupal.org when I became the maintainer."
@ -120,7 +122,9 @@ Arrange, Act, Assert
TextAnnotation "" TextAnnotation ""
TextAnnotation "Set up the world, perform an action, then make assertions." TextAnnotation "Set up the world, perform an action, then make assertions."
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle

View file

@ -25,7 +25,9 @@ Before we start
What is Tailwind CSS? What is Tailwind CSS?
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
@ -38,7 +40,9 @@ A utility-first CSS framework for rapidly building custom designs
TextAnnotation "Make different looking sites using the same class names." TextAnnotation "Make different looking sites using the same class names."
TextAnnotation "No 'Tailwind looking site' like there is with Bootstrap." TextAnnotation "No 'Tailwind looking site' like there is with Bootstrap."
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
@ -52,7 +56,9 @@ Tailwind CSS is a highly customisable, low-level CSS framework
TextAnnotation "Avoids the need to name things prematurely." TextAnnotation "Avoids the need to name things prematurely."
TextAnnotation "Can extract components if needed (reusability)." TextAnnotation "Can extract components if needed (reusability)."
.. page:: .. raw:: pdf
PageBreak
.. class:: centredtitle .. class:: centredtitle
@ -81,7 +87,9 @@ Tailwind is more than a CSS framework, it's an engine for creating design system
TextAnnotation "Some of the 'original' things that Tailwind would generate classes for." TextAnnotation "Some of the 'original' things that Tailwind would generate classes for."
.. page:: .. raw:: pdf
PageBreak
- Screenreader visibility - Screenreader visibility
- Placeholder colour - Placeholder colour
@ -102,12 +110,16 @@ Tailwind is more than a CSS framework, it's an engine for creating design system
.. image:: images/screenshot-laravel-nova.png .. image:: images/screenshot-laravel-nova.png
:width: 22cm :width: 22cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/screenshot-send-firefox.png .. image:: images/screenshot-send-firefox.png
:width: 22cm :width: 22cm
.. page:: .. raw:: pdf
PageBreak
.. image:: images/screenshot-rebuilding-bartik.png .. image:: images/screenshot-rebuilding-bartik.png
:width: 22cm :width: 22cm

View file

@ -10,7 +10,9 @@ Task 1: Adding Tailwind CSS
:include: code/adding-tailwind.txt :include: code/adding-tailwind.txt
:end-before: -- adding tailwind :end-before: -- adding tailwind
.. page:: .. raw:: pdf
PageBreak
Create the source file: Create the source file:
@ -21,7 +23,9 @@ Create the source file:
:start-after: -- adding tailwind :start-after: -- adding tailwind
:end-before: -- adding scripts :end-before: -- adding scripts
.. page:: .. raw:: pdf
PageBreak
Add to ``package.json``: Add to ``package.json``:

View file

@ -12,7 +12,9 @@ Before we start
.. code-block:: .. code-block::
:include: code/task-2-before.txt :include: code/task-2-before.txt
.. page:: .. raw:: pdf
PageBreak
Adding intro text Adding intro text
----------------- -----------------
@ -42,7 +44,9 @@ Adding intro text
:include: code/intro-text-3.txt :include: code/intro-text-3.txt
:hl_lines: 4 8 :hl_lines: 4 8
.. page:: .. raw:: pdf
PageBreak
.. code-block:: html .. code-block:: html
:include: code/intro-text-4.txt :include: code/intro-text-4.txt

View file

@ -12,7 +12,9 @@ Before we start
.. code-block:: .. code-block::
:include: code/task-4-before.txt :include: code/task-4-before.txt
.. page:: .. raw:: pdf
PageBreak
tailwind.config.js tailwind.config.js
------------------ ------------------

View file

@ -12,7 +12,9 @@ Before we start
.. code-block:: .. code-block::
:include: code/task-6-before.txt :include: code/task-6-before.txt
.. page:: .. raw:: pdf
PageBreak
.. code-block:: html .. code-block:: html
:include: code/video-1.txt :include: code/video-1.txt

View file

@ -9,12 +9,16 @@ Task 7: Add the sponsors component
.. code-block:: .. code-block::
:include: code/task-7-before.txt :include: code/task-7-before.txt
.. page:: .. raw:: pdf
PageBreak
.. code-block:: twig .. code-block:: twig
:include: code/sponsors-1.txt :include: code/sponsors-1.txt
.. page:: .. raw:: pdf
PageBreak
.. code-block:: twig .. code-block:: twig
:include: code/sponsors-2.txt :include: code/sponsors-2.txt
@ -29,7 +33,9 @@ Task 7: Add the sponsors component
.. code-block:: twig .. code-block:: twig
:include: code/sponsors-3.txt :include: code/sponsors-3.txt
.. page:: .. raw:: pdf
PageBreak
.. code-block:: html .. code-block:: html
:include: code/sponsors-4.txt :include: code/sponsors-4.txt

View file

@ -12,17 +12,23 @@ Before we start
.. code-block:: .. code-block::
:include: code/task-8-before.txt :include: code/task-8-before.txt
.. page:: .. raw:: pdf
PageBreak
.. code-block:: diff .. code-block:: diff
:include: code/responsive-1.txt :include: code/responsive-1.txt
.. page:: .. raw:: pdf
PageBreak
.. code-block:: diff .. code-block:: diff
:include: code/responsive-2.txt :include: code/responsive-2.txt
.. page:: .. raw:: pdf
PageBreak
.. code-block:: diff .. code-block:: diff
:include: code/responsive-3.txt :include: code/responsive-3.txt

View file

@ -10,7 +10,9 @@ Task 9: Configure PurgeCSS
:include: code/yarn-output-before-purge.txt :include: code/yarn-output-before-purge.txt
:end-before: # yarn prod :end-before: # yarn prod
.. page:: .. raw:: pdf
PageBreak
.. code-block:: .. code-block::
:include: code/yarn-output-before-purge.txt :include: code/yarn-output-before-purge.txt
@ -22,7 +24,9 @@ Configuring PurgeCSS
.. code-block:: diff .. code-block:: diff
:include: code/configuring-purgecss.txt :include: code/configuring-purgecss.txt
.. page:: .. raw:: pdf
PageBreak
.. code-block:: .. code-block::
:include: code/yarn-output-after-purge.txt :include: code/yarn-output-after-purge.txt