diff --git a/src/archive/deploying-php-ansible-ansistrano/sections/about-ansible.rst b/src/archive/deploying-php-ansible-ansistrano/sections/about-ansible.rst index fe2a8ee..9dd3d2b 100644 --- a/src/archive/deploying-php-ansible-ansistrano/sections/about-ansible.rst +++ b/src/archive/deploying-php-ansible-ansistrano/sections/about-ansible.rst @@ -11,7 +11,9 @@ Ansible is an open-source **software provisioning**, **configuration management* https://en.wikipedia.org/wiki/Ansible_(software) -.. page:: +.. raw:: pdf + + PageBreak What is Ansible? ================ @@ -33,7 +35,9 @@ What is Ansible? 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)." -.. page:: +.. raw:: pdf + + PageBreak Why Ansible? ============ diff --git a/src/archive/deploying-php-ansible-ansistrano/sections/ansible-crash-course.rst b/src/archive/deploying-php-ansible-ansistrano/sections/ansible-crash-course.rst index f33f778..c4da4ac 100644 --- a/src/archive/deploying-php-ansible-ansistrano/sections/ansible-crash-course.rst +++ b/src/archive/deploying-php-ansible-ansistrano/sections/ansible-crash-course.rst @@ -49,7 +49,9 @@ hosts.yml Ad-hoc Commands -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle @@ -88,7 +90,9 @@ Ad-hoc Commands TextAnnotation "-a = (additional) arguments" TextAnnotation "--chdir = change directory" -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle diff --git a/src/archive/deploying-php-ansible-ansistrano/sections/ansible-vault.rst b/src/archive/deploying-php-ansible-ansistrano/sections/ansible-vault.rst index a032ce7..e397da8 100644 --- a/src/archive/deploying-php-ansible-ansistrano/sections/ansible-vault.rst +++ b/src/archive/deploying-php-ansible-ansistrano/sections/ansible-vault.rst @@ -18,7 +18,9 @@ Keeping secrets with Ansible Vault password: secret priv: main.*:ALL -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -57,7 +59,9 @@ Encryption successful`` 37373865393839616534353165656463313961333532363537383263343364646534333032336337 3235 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -68,7 +72,9 @@ Encryption successful`` database_user: '{{ vault_database_user }}' database_password: '{{ vault_database_password }}' -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml diff --git a/src/archive/deploying-php-ansible-ansistrano/sections/ansistrano.rst b/src/archive/deploying-php-ansible-ansistrano/sections/ansistrano.rst index 5f73499..d69364e 100644 --- a/src/archive/deploying-php-ansible-ansistrano/sections/ansistrano.rst +++ b/src/archive/deploying-php-ansible-ansistrano/sections/ansistrano.rst @@ -9,7 +9,9 @@ Better deployments with Ansistrano .. image:: images/ansistrano.png :width: 24cm -.. page:: +.. raw:: pdf + + PageBreak Features ======== @@ -22,7 +24,9 @@ Features - Prune old releases - Rollbacks -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -37,7 +41,9 @@ Features TextAnnotation "to install Ansistrano, add the additional roles to the requirements.yml file" -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -54,7 +60,9 @@ Features TextAnnotation "add to roles within the playbook" -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -69,7 +77,9 @@ Features ansistrano_git_branch: master ansistrano_git_repo: 'git@github.com:opdavies/dransible' -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: PLAY [webservers] ****************************************************************************************************** @@ -94,7 +104,9 @@ Features TASK [ansistrano.deploy : ANSISTRANO | Ensure shared paths exists] ***************************************************** ok: [webservers] => (item=web/sites/default/files) -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: @@ -120,7 +132,9 @@ Features PLAY RECAP ************************************************************************************************************* webservers : ok=33 changed=14 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: @@ -131,7 +145,9 @@ Features drwxr-xr-x 5 4096 Jul 22 20:30 releases drwxr-xr-x 4 4096 Jul 19 00:00 shared -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: @@ -144,7 +160,9 @@ Features drwxr-xr-x 10 4096 Jul 19 00:14 20190719001241Z drwxr-xr-x 9 4096 Jul 22 20:30 20190722203038Z -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -167,7 +185,9 @@ Features ``ansible-playbook rollback.yml -i hosts.yml`` -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle @@ -201,7 +221,9 @@ Build Hooks release_web_path: '{{ ansistrano_release_path.stdout }}/web' release_drush_path: '{{ ansistrano_release_path.stdout }}/bin/drush' -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -214,7 +236,9 @@ Build Hooks command: install working_dir: '{{ ansistrano_release_path.stdout }}' -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -228,7 +252,9 @@ Build Hooks --root {{ release_web_path }} updatedb -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml diff --git a/src/archive/deploying-php-ansible-ansistrano/sections/building-a-lamp-stack.rst b/src/archive/deploying-php-ansible-ansistrano/sections/building-a-lamp-stack.rst index 88136bc..d1ac7e8 100644 --- a/src/archive/deploying-php-ansible-ansistrano/sections/building-a-lamp-stack.rst +++ b/src/archive/deploying-php-ansible-ansistrano/sections/building-a-lamp-stack.rst @@ -55,7 +55,9 @@ requirements.yml TextAnnotation "Ordering matters here!" 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 @@ -71,7 +73,9 @@ requirements.yml TextAnnotation "configuring the Apache role to install virtual hosts." -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -88,7 +92,9 @@ requirements.yml TextAnnotation "configuring PHP." -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -139,7 +145,9 @@ requirements.yml TASK [geerlingguy.apache : Update apt cache.] ************************************************************************** changed: [webservers] -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: @@ -167,7 +175,9 @@ requirements.yml PLAY RECAP ************************************************************************************************************* 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 :width: 24cm @@ -176,7 +186,9 @@ requirements.yml TextAnnotation "IP address of server, Apache is installed and running." -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/after-provision-2.png :width: 24cm diff --git a/src/archive/deploying-php-ansible-ansistrano/sections/generating-settings-files.rst b/src/archive/deploying-php-ansible-ansistrano/sections/generating-settings-files.rst index 167f6ec..934ae99 100644 --- a/src/archive/deploying-php-ansible-ansistrano/sections/generating-settings-files.rst +++ b/src/archive/deploying-php-ansible-ansistrano/sections/generating-settings-files.rst @@ -27,7 +27,9 @@ Generating settings files per deployment config_directories: sync: ../config/sync -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: jinja @@ -50,7 +52,9 @@ Generating settings files per deployment $base_url = '{{ item.1.settings.base_url }}'; {% endif %} -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml diff --git a/src/archive/deploying-php-ansible-ansistrano/sections/multiple-environments.rst b/src/archive/deploying-php-ansible-ansistrano/sections/multiple-environments.rst index 9b7fb27..2d6dcbc 100644 --- a/src/archive/deploying-php-ansible-ansistrano/sections/multiple-environments.rst +++ b/src/archive/deploying-php-ansible-ansistrano/sections/multiple-environments.rst @@ -25,7 +25,9 @@ Multiple environments development, test, production password: '{{ staging_db_password }}' priv: staging.*:ALL -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -48,7 +50,9 @@ Multiple environments development, test, production drupal_settings: # ... -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml @@ -79,7 +83,9 @@ Multiple environments development, test, production -i hosts.yml --limit staging`` -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle diff --git a/src/archive/upgrading-to-drupal-9/slides.rst b/src/archive/upgrading-to-drupal-9/slides.rst index 36aa661..6754aeb 100644 --- a/src/archive/upgrading-to-drupal-9/slides.rst +++ b/src/archive/upgrading-to-drupal-9/slides.rst @@ -179,7 +179,9 @@ Drupal Check ``composer global require mglaman/drupal-check`` -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle ``drupal-check web/modules/custom`` @@ -259,18 +261,24 @@ Composer ``composer require drupal/admin_toolbar:^2.0`` -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle ``composer install`` -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle ``composer update drupal/admin_toolbar`` -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle Always add '--no-dev' in production @@ -325,7 +333,9 @@ Upgrading Dransible ``composer update drupal/core-* --with-dependencies`` -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle ``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()`` -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle diff --git a/src/building-presenting-slide-decks-rst2pdf/slides.rst b/src/building-presenting-slide-decks-rst2pdf/slides.rst index 020e11a..d2b154e 100644 --- a/src/building-presenting-slide-decks-rst2pdf/slides.rst +++ b/src/building-presenting-slide-decks-rst2pdf/slides.rst @@ -143,7 +143,9 @@ Presenting .. image:: images/pdfpc-1.png :width: 23cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/pdfpc-2.png :width: 23cm diff --git a/src/building-static-websites-sculpin/slides.rst b/src/building-static-websites-sculpin/slides.rst index 37feb0e..e5cc385 100644 --- a/src/building-static-websites-sculpin/slides.rst +++ b/src/building-static-websites-sculpin/slides.rst @@ -14,7 +14,9 @@ Oliver Davies (@opdavies) .. image:: images/druplicon.png :width: 10cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/sculpin.png :width: 10cm diff --git a/src/php-south-wales-intro-slides/2021-01/slides.rst b/src/php-south-wales-intro-slides/2021-01/slides.rst index 571e1b0..d80c882 100644 --- a/src/php-south-wales-intro-slides/2021-01/slides.rst +++ b/src/php-south-wales-intro-slides/2021-01/slides.rst @@ -1,12 +1,16 @@ .. image:: ../images/logo.jpeg :width: 8cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/twilio.png :width: 12cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/lexis-nexis.jpg :width: 12cm @@ -52,7 +56,9 @@ Tonight Looking for speakers, sponsors and organisers -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle @@ -67,7 +73,9 @@ Join us in ``#website-improve`` .. image:: images/symfonylive-online-cfp.png :width: 18cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/deploy-friday-composer.png :width: 20cm diff --git a/src/php-south-wales-intro-slides/2021-02/slides.rst b/src/php-south-wales-intro-slides/2021-02/slides.rst index d1925be..b84fd12 100644 --- a/src/php-south-wales-intro-slides/2021-02/slides.rst +++ b/src/php-south-wales-intro-slides/2021-02/slides.rst @@ -1,12 +1,16 @@ .. image:: ../images/logo.jpeg :width: 8cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/twilio.png :width: 12cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/lexis-nexis.jpg :width: 12cm @@ -53,7 +57,9 @@ Next month Looking for speakers and sponsors -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle diff --git a/src/php-south-wales-intro-slides/2021-03/slides.rst b/src/php-south-wales-intro-slides/2021-03/slides.rst index fb58304..5c9350d 100644 --- a/src/php-south-wales-intro-slides/2021-03/slides.rst +++ b/src/php-south-wales-intro-slides/2021-03/slides.rst @@ -1,12 +1,16 @@ .. image:: ../images/logo.jpeg :width: 8cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/twilio.png :width: 12cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/lexis-nexis.jpg :width: 12cm @@ -46,7 +50,9 @@ Next month .. image:: images/Selection_038.png :width: 14cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/Selection_039.png :width: 13cm @@ -57,7 +63,9 @@ Next month Looking for speakers and sponsors -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle diff --git a/src/php-south-wales-intro-slides/2021-04/slides.rst b/src/php-south-wales-intro-slides/2021-04/slides.rst index 5649078..8d8ed26 100644 --- a/src/php-south-wales-intro-slides/2021-04/slides.rst +++ b/src/php-south-wales-intro-slides/2021-04/slides.rst @@ -1,12 +1,16 @@ .. image:: ../images/logo.jpeg :width: 8cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/twilio.png :width: 12cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/lexis-nexis.jpg :width: 12cm diff --git a/src/php-south-wales-intro-slides/2021-05/slides.rst b/src/php-south-wales-intro-slides/2021-05/slides.rst index 66b12ad..7902925 100644 --- a/src/php-south-wales-intro-slides/2021-05/slides.rst +++ b/src/php-south-wales-intro-slides/2021-05/slides.rst @@ -1,12 +1,16 @@ .. image:: ../images/logo.jpeg :width: 10cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/twilio.png :width: 12cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: ../images/lexis-nexis.jpg :width: 12cm diff --git a/src/php-south-wales-intro-slides/2021-06/slides.rst b/src/php-south-wales-intro-slides/2021-06/slides.rst index accea6a..00973c3 100644 --- a/src/php-south-wales-intro-slides/2021-06/slides.rst +++ b/src/php-south-wales-intro-slides/2021-06/slides.rst @@ -1,12 +1,16 @@ .. image:: images/logo.jpeg :width: 10cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/twilio.png :width: 12cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/lexis-nexis.jpg :width: 12cm diff --git a/src/php-south-wales-intro-slides/2021-09/slides.rst b/src/php-south-wales-intro-slides/2021-09/slides.rst index 8398f4a..12a80bc 100644 --- a/src/php-south-wales-intro-slides/2021-09/slides.rst +++ b/src/php-south-wales-intro-slides/2021-09/slides.rst @@ -1,22 +1,30 @@ .. image:: images/logo.jpeg :width: 10cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images2/phpsa.png :width: 10cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/twilio.png :width: 12cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/lexis-nexis.jpg :width: 12cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/oliver-davies.jpg :width: 12cm diff --git a/src/test-driven-drupal/demo.rst b/src/test-driven-drupal/demo.rst index 33700f2..5a59a48 100644 --- a/src/test-driven-drupal/demo.rst +++ b/src/test-driven-drupal/demo.rst @@ -28,7 +28,9 @@ Tasks - Ensure only published articles are shown - Ensure the articles are shown in the correct order -.. page:: +.. raw:: pdf + + PageBreak .. Creating the test class. @@ -67,7 +69,9 @@ Tasks :startinline: true :hl_lines: 9,10,11 -.. page:: +.. raw:: pdf + + PageBreak .. Adding the first test. @@ -110,7 +114,9 @@ Tasks :end-before: // end test :hl_lines: 7 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/3.txt @@ -139,7 +145,9 @@ Tasks :end-before: // end output :hl_lines: 8,9 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml :include: code/3.txt @@ -147,7 +155,9 @@ Tasks :start-after: // start routing :end-before: // end routing -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml :include: code/3.txt @@ -160,7 +170,9 @@ Tasks TextAnnotation "This controller doesn't exist yet, but the test will tell us that." -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/3.txt @@ -173,7 +185,9 @@ Tasks TextAnnotation "Same result as the module isn't enabled." -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/4.txt @@ -236,7 +250,9 @@ Tasks :end-before: // end code :hl_lines: 1,2,3 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/6.txt @@ -246,7 +262,9 @@ Tasks :end-before: // end code :hl_lines: 7,13 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/6.txt @@ -256,14 +274,18 @@ Tasks :end-before: // end code :hl_lines: 9,10,11 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/6.txt :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/7.txt @@ -298,14 +320,18 @@ Tasks :end-before: // end test :hl_lines: 8,9 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/7.txt :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/7.txt @@ -315,7 +341,9 @@ Tasks :end-before: // end code :hl_lines: 3,7 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/7.txt @@ -325,14 +353,18 @@ Tasks :end-before: // end code :hl_lines: 10,11,12 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/7.txt :start-after: // start output2 :end-before: // end output2 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/8.txt @@ -341,7 +373,9 @@ Tasks :start-after: // start code :end-before: // end code -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/8.txt @@ -351,7 +385,9 @@ Tasks :end-before: // end code :hl_lines: 1,2,3,4,5,6,7,15 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/8.txt @@ -361,7 +397,9 @@ Tasks :end-before: // end code :hl_lines: 9,10,14 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/8.txt @@ -371,7 +409,9 @@ Tasks :end-before: // end code :hl_lines: 11 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/8.txt @@ -381,7 +421,9 @@ Tasks :end-before: // end code :hl_lines: 13 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/8.txt @@ -393,7 +435,9 @@ Tasks :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/9.txt @@ -410,14 +454,18 @@ Tasks :start-after: // start services :end-before: // end services -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml :include: code/9.txt :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/10.txt @@ -427,14 +475,18 @@ Tasks :end-before: // end code :hl_lines: 5,6,7 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/10.txt :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/11.txt @@ -443,7 +495,9 @@ Tasks :start-after: // start code 1 :end-before: // end code 1 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/11.txt @@ -453,7 +507,9 @@ Tasks :end-before: // end code 1 :hl_lines: 10,11,12 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/11.txt @@ -463,7 +519,9 @@ Tasks :end-before: // end code 1 :hl_lines: 8,13 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/11.txt @@ -473,7 +531,9 @@ Tasks :end-before: // end code 2 :hl_lines: 1,3 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/11.txt @@ -483,7 +543,9 @@ Tasks :end-before: // end code 2 :hl_lines: 2 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: yaml :include: code/12.txt @@ -504,7 +566,9 @@ Tasks TextAnnotation "Declare the Repository as a service." TextAnnotation "Autowire or declare dependencies explicitly." -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/12.txt @@ -520,14 +584,18 @@ Tasks :start-after: // start test :end-before: // end test -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/13.txt :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/14.txt @@ -537,7 +605,9 @@ Tasks :end-before: // end test :hl_lines: 1 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/14.txt @@ -547,14 +617,18 @@ Tasks :end-before: // end test :hl_lines: 5 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/14.txt :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/15.txt @@ -589,7 +663,9 @@ Tasks :start-after: // start test :hl_lines: 10,11 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/15.txt @@ -613,7 +689,9 @@ Tasks :start-after: // start test :end-before: // end test -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/16.txt @@ -623,7 +701,9 @@ Tasks :end-before: // end test :hl_lines: 2,4,6 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/16.txt @@ -633,7 +713,9 @@ Tasks :end-before: // end test :hl_lines: 3,5 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/16.txt @@ -653,7 +735,9 @@ Tasks :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/17.txt @@ -669,7 +753,9 @@ Tasks :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. Ensure articles are ordered correctly. @@ -680,7 +766,9 @@ Tasks :start-after: // start test :end-before: // end test -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/18.txt @@ -690,7 +778,9 @@ Tasks :end-before: // end test :hl_lines: 3,5,7,9,11 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/18.txt @@ -700,14 +790,18 @@ Tasks :end-before: // end test :hl_lines: 16 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/18.txt :start-after: // start output :end-before: // end output -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/19.txt @@ -716,7 +810,9 @@ Tasks :start-after: // start code :end-before: // end code -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/19.txt @@ -726,7 +822,9 @@ Tasks :end-before: // end code :hl_lines: 2,3,4 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: php :include: code/19.txt @@ -749,7 +847,9 @@ Tasks :end-before: // end code :hl_lines: 9 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: plain :include: code/19.txt diff --git a/src/test-driven-drupal/slides.rst b/src/test-driven-drupal/slides.rst index 87a1ce7..a462911 100644 --- a/src/test-driven-drupal/slides.rst +++ b/src/test-driven-drupal/slides.rst @@ -41,7 +41,9 @@ Software Developer, Consultant, open-source maintainer .. image:: images/override-node-options-1.png :width: 18cm -.. page:: +.. raw:: pdf + + PageBreak TextAnnotation "These were the usage statistics from Drupal.org when I became the maintainer." @@ -120,7 +122,9 @@ Arrange, Act, Assert TextAnnotation "" TextAnnotation "Set up the world, perform an action, then make assertions." -.. page:: +.. raw:: pdf + + PageBreak .. class:: centredtitle diff --git a/src/workshop-tailwind-css/sections/intro.rst b/src/workshop-tailwind-css/sections/intro.rst index e0eef50..d90c4b5 100644 --- a/src/workshop-tailwind-css/sections/intro.rst +++ b/src/workshop-tailwind-css/sections/intro.rst @@ -25,7 +25,9 @@ Before we start What is Tailwind CSS? -.. page:: +.. raw:: pdf + + PageBreak .. 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 "No 'Tailwind looking site' like there is with Bootstrap." -.. page:: +.. raw:: pdf + + PageBreak .. 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 "Can extract components if needed (reusability)." -.. page:: +.. raw:: pdf + + PageBreak .. 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." -.. page:: +.. raw:: pdf + + PageBreak - Screenreader visibility - 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 :width: 22cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/screenshot-send-firefox.png :width: 22cm -.. page:: +.. raw:: pdf + + PageBreak .. image:: images/screenshot-rebuilding-bartik.png :width: 22cm diff --git a/src/workshop-tailwind-css/sections/task-1-add-tailwind-css.rst b/src/workshop-tailwind-css/sections/task-1-add-tailwind-css.rst index 58b124f..3994823 100644 --- a/src/workshop-tailwind-css/sections/task-1-add-tailwind-css.rst +++ b/src/workshop-tailwind-css/sections/task-1-add-tailwind-css.rst @@ -10,7 +10,9 @@ Task 1: Adding Tailwind CSS :include: code/adding-tailwind.txt :end-before: -- adding tailwind -.. page:: +.. raw:: pdf + + PageBreak Create the source file: @@ -21,7 +23,9 @@ Create the source file: :start-after: -- adding tailwind :end-before: -- adding scripts -.. page:: +.. raw:: pdf + + PageBreak Add to ``package.json``: diff --git a/src/workshop-tailwind-css/sections/task-2-intro-text.rst b/src/workshop-tailwind-css/sections/task-2-intro-text.rst index 03b695c..b34a7b1 100644 --- a/src/workshop-tailwind-css/sections/task-2-intro-text.rst +++ b/src/workshop-tailwind-css/sections/task-2-intro-text.rst @@ -12,7 +12,9 @@ Before we start .. code-block:: :include: code/task-2-before.txt -.. page:: +.. raw:: pdf + + PageBreak Adding intro text ----------------- @@ -42,7 +44,9 @@ Adding intro text :include: code/intro-text-3.txt :hl_lines: 4 8 -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: html :include: code/intro-text-4.txt diff --git a/src/workshop-tailwind-css/sections/task-4-config.rst b/src/workshop-tailwind-css/sections/task-4-config.rst index 84c4d63..49bc655 100644 --- a/src/workshop-tailwind-css/sections/task-4-config.rst +++ b/src/workshop-tailwind-css/sections/task-4-config.rst @@ -12,7 +12,9 @@ Before we start .. code-block:: :include: code/task-4-before.txt -.. page:: +.. raw:: pdf + + PageBreak tailwind.config.js ------------------ diff --git a/src/workshop-tailwind-css/sections/task-6-video.rst b/src/workshop-tailwind-css/sections/task-6-video.rst index dc70da9..d45cf4b 100644 --- a/src/workshop-tailwind-css/sections/task-6-video.rst +++ b/src/workshop-tailwind-css/sections/task-6-video.rst @@ -12,7 +12,9 @@ Before we start .. code-block:: :include: code/task-6-before.txt -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: html :include: code/video-1.txt diff --git a/src/workshop-tailwind-css/sections/task-7-sponsors.rst b/src/workshop-tailwind-css/sections/task-7-sponsors.rst index c89d325..33bd43a 100644 --- a/src/workshop-tailwind-css/sections/task-7-sponsors.rst +++ b/src/workshop-tailwind-css/sections/task-7-sponsors.rst @@ -9,12 +9,16 @@ Task 7: Add the sponsors component .. code-block:: :include: code/task-7-before.txt -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: twig :include: code/sponsors-1.txt -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: twig :include: code/sponsors-2.txt @@ -29,7 +33,9 @@ Task 7: Add the sponsors component .. code-block:: twig :include: code/sponsors-3.txt -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: html :include: code/sponsors-4.txt diff --git a/src/workshop-tailwind-css/sections/task-8-responsive.rst b/src/workshop-tailwind-css/sections/task-8-responsive.rst index c4d7159..0a8e0ed 100644 --- a/src/workshop-tailwind-css/sections/task-8-responsive.rst +++ b/src/workshop-tailwind-css/sections/task-8-responsive.rst @@ -12,17 +12,23 @@ Before we start .. code-block:: :include: code/task-8-before.txt -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: diff :include: code/responsive-1.txt -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: diff :include: code/responsive-2.txt -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: diff :include: code/responsive-3.txt diff --git a/src/workshop-tailwind-css/sections/task-9-purgecss.rst b/src/workshop-tailwind-css/sections/task-9-purgecss.rst index 180b918..06c81f6 100644 --- a/src/workshop-tailwind-css/sections/task-9-purgecss.rst +++ b/src/workshop-tailwind-css/sections/task-9-purgecss.rst @@ -10,7 +10,9 @@ Task 9: Configure PurgeCSS :include: code/yarn-output-before-purge.txt :end-before: # yarn prod -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: :include: code/yarn-output-before-purge.txt @@ -22,7 +24,9 @@ Configuring PurgeCSS .. code-block:: diff :include: code/configuring-purgecss.txt -.. page:: +.. raw:: pdf + + PageBreak .. code-block:: :include: code/yarn-output-after-purge.txt