diff --git a/slides.md b/slides.md index b45e60a..27f47d6 100644 --- a/slides.md +++ b/slides.md @@ -70,7 +70,7 @@ layout: section ## 2. # Locate the page models -
+
```python from wagtail.models import Page @@ -82,13 +82,6 @@ child_pages = sysadmin_page.get_descendants()
- - --- layout: section --- @@ -96,7 +89,7 @@ layout: section ## 3. # Locate what was deleted -
+
```python from django.contrib.admin.utils import NestedObjects @@ -107,21 +100,14 @@ collector.collect(list(child_pages) + [sysadmin_page])
- - - --- layout: section --- -# 4. Serialize +## 4. +# Serialize -
+
```python {all|3-5|all} from django.core import serializers @@ -145,12 +131,11 @@ with open("deleted-models.json", "w") as f: - --- layout: section --- @@ -194,6 +179,13 @@ with open("deleted-models.json", "w") as f: ) ``` + + --- layout: fact --- diff --git a/style.css b/style.css index fe22a8d..876ad00 100644 --- a/style.css +++ b/style.css @@ -1,3 +1,12 @@ -.slidev-layout { - background: #2e1f5e +:root { + --slidev-code-padding: 1rem; + + /* 3px larger than defaults */ + --slidev-code-font-size: 15px; + --slidev-code-line-height: 21px; + +} + +.slidev-layout { + background-color: #2e1f5e }