diff --git a/docs/advanced_topics/streamfield_migrations.md b/docs/advanced_topics/streamfield_migrations.md index fd64951d7c..1dcea3bfec 100644 --- a/docs/advanced_topics/streamfield_migrations.md +++ b/docs/advanced_topics/streamfield_migrations.md @@ -509,7 +509,7 @@ class MyBlockOperation(BaseBlockOperation): new_block_value = block_value[:self.length] return new_block_value - + @property def operation_name_fragment(self): return "truncate_{}".format(self.length) diff --git a/docs/contributing/developing.md b/docs/contributing/developing.md index 4d553433f7..d5bd218d67 100644 --- a/docs/contributing/developing.md +++ b/docs/contributing/developing.md @@ -50,7 +50,7 @@ Any Wagtail sites you start up in this virtualenv will now run against this deve pip install -e path/to/wagtail"[testing, docs]" -U ``` -Here, `path/to/wagtail`is the path to your local Wagtail copy. +Here, `path/to/wagtail` is the path to your local Wagtail copy. (development_on_windows)= diff --git a/docs/reference/contrib/frontendcache.md b/docs/reference/contrib/frontendcache.md index 74c64a85cb..1b4ec6bead 100644 --- a/docs/reference/contrib/frontendcache.md +++ b/docs/reference/contrib/frontendcache.md @@ -145,7 +145,7 @@ With [Azure CDN](https://azure.microsoft.com/en-gb/products/cdn/) you will need The third-party dependencies of this backend are: -| PyPI Package | Essential | Reason | +| PyPI Package | Essential | Reason | | ---------------------------------------------------------------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | [`azure-mgmt-cdn`](https://pypi.org/project/azure-mgmt-cdn/) | Yes (v10.0 or above) | Interacting with the CDN service. | | [`azure-identity`](https://pypi.org/project/azure-identity/) | No | Obtaining credentials. It's optional if you want to specify your own credential using a `CREDENTIALS` setting (more details below). | @@ -199,7 +199,7 @@ With [Azure Front Door](https://azure.microsoft.com/en-gb/products/frontdoor/) y The third-party dependencies of this backend are: -| PyPI Package | Essential | Reason | +| PyPI Package | Essential | Reason | | ------------------------------------------------------------------------ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | [`azure-mgmt-frontdoor`](https://pypi.org/project/azure-mgmt-frontdoor/) | Yes (v1.0 or above) | Interacting with the Front Door service. | | [`azure-identity`](https://pypi.org/project/azure-identity/) | No | Obtaining credentials. It's optional if you want to specify your own credential using a `CREDENTIALS` setting (more details below). | diff --git a/docs/reference/contrib/sitemaps.md b/docs/reference/contrib/sitemaps.md index 0e44690590..5170b0b661 100644 --- a/docs/reference/contrib/sitemaps.md +++ b/docs/reference/contrib/sitemaps.md @@ -7,14 +7,14 @@ using the `wagtail.contrib.sitemaps` module. ```{note} As of Wagtail 1.10 the Django contrib sitemap app is used to generate -sitemaps. However since Wagtail requires the Site instance to be available +sitemaps. However since Wagtail requires the Site instance to be available during the sitemap generation you will have to use the views from the `wagtail.contrib.sitemaps.views` module instead of the views provided by Django (`django.contrib.sitemaps.views`). The usage of these views is otherwise identical, which means that customisation and caching of the sitemaps are done using the default Django -patterns. See the Django documentation for in-depth information. +patterns. See the Django documentation for in-depth information. ``` ## Basic configuration diff --git a/docs/releases/3.0.md b/docs/releases/3.0.md index 781cdc056d..ccab46c1f0 100644 --- a/docs/releases/3.0.md +++ b/docs/releases/3.0.md @@ -57,7 +57,7 @@ Trying to upload an image that's a duplicate of one already in the image library ### Image renditions can now be prefetched -When using a queryset to render a list of items with images, you can now make use of Django's built-in ``prefetch_related()`` queryset method to prefetch the renditions needed for rendering with a single extra query. For long lists of items, or where multiple renditions are used for each item, this can provide a significant boost to performance. This feature was developed by Andy Babic. +When using a queryset to render a list of items with images, you can now make use of Django's built-in `prefetch_related()` queryset method to prefetch the renditions needed for rendering with a single extra query. For long lists of items, or where multiple renditions are used for each item, this can provide a significant boost to performance. This feature was developed by Andy Babic. ### Other features diff --git a/docs/topics/writing_templates.md b/docs/topics/writing_templates.md index 857cf8ce52..aa55a28a4c 100644 --- a/docs/topics/writing_templates.md +++ b/docs/topics/writing_templates.md @@ -271,7 +271,7 @@ The userbar can be positioned where it works best with your design. Alternativel wagtail-userbar::part(userbar) { bottom: 30px; } -``` +``` ## Varying output between preview and live