kopia lustrzana https://github.com/wagtail/wagtail
Documentation - whitespace formatting fixes
- Includes small fix for #9969 missing spacepull/9988/head
rodzic
2afeca2875
commit
9e016c17b8
|
@ -509,7 +509,7 @@ class MyBlockOperation(BaseBlockOperation):
|
||||||
new_block_value = block_value[:self.length]
|
new_block_value = block_value[:self.length]
|
||||||
return new_block_value
|
return new_block_value
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def operation_name_fragment(self):
|
def operation_name_fragment(self):
|
||||||
return "truncate_{}".format(self.length)
|
return "truncate_{}".format(self.length)
|
||||||
|
|
|
@ -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
|
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)=
|
(development_on_windows)=
|
||||||
|
|
||||||
|
|
|
@ -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:
|
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-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). |
|
| [`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:
|
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-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). |
|
| [`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). |
|
||||||
|
|
|
@ -7,14 +7,14 @@ using the `wagtail.contrib.sitemaps` module.
|
||||||
|
|
||||||
```{note}
|
```{note}
|
||||||
As of Wagtail 1.10 the Django contrib sitemap app is used to generate
|
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
|
during the sitemap generation you will have to use the views from the
|
||||||
`wagtail.contrib.sitemaps.views` module instead of the views
|
`wagtail.contrib.sitemaps.views` module instead of the views
|
||||||
provided by Django (`django.contrib.sitemaps.views`).
|
provided by Django (`django.contrib.sitemaps.views`).
|
||||||
|
|
||||||
The usage of these views is otherwise identical, which means that
|
The usage of these views is otherwise identical, which means that
|
||||||
customisation and caching of the sitemaps are done using the default Django
|
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
|
## Basic configuration
|
||||||
|
|
|
@ -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
|
### 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
|
### Other features
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,7 @@ The userbar can be positioned where it works best with your design. Alternativel
|
||||||
wagtail-userbar::part(userbar) {
|
wagtail-userbar::part(userbar) {
|
||||||
bottom: 30px;
|
bottom: 30px;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Varying output between preview and live
|
## Varying output between preview and live
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue