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

@ -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

View file

@ -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``:

View file

@ -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

View file

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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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