mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix documentation formatting errors
This commit is contained in:
parent
7553216bbd
commit
91f4b9ded7
1 changed files with 15 additions and 11 deletions
|
|
@ -712,14 +712,14 @@ corresponding ``*_URL`` setting as string, while others hard-code them:
|
||||||
non-alphanumeric characters and converting internal whitespace to dashes.
|
non-alphanumeric characters and converting internal whitespace to dashes.
|
||||||
Apart from these substitutions, slugs are always converted to lowercase
|
Apart from these substitutions, slugs are always converted to lowercase
|
||||||
ascii characters and leading and trailing whitespace is stripped. Useful for
|
ascii characters and leading and trailing whitespace is stripped. Useful for
|
||||||
backward compatibility with existing URLs.
|
backward compatibility with existing URLs. The default is::
|
||||||
|
|
||||||
The default is ``[
|
[
|
||||||
(r'[^\\w\\s-]', ''), # remove non-alphabetical/whitespace/'-' chars
|
(r'[^\\w\\s-]', ''), # remove non-alphabetical/whitespace/'-' chars
|
||||||
(r'(?u)\\A\\s*', ''), # strip leading whitespace
|
(r'(?u)\\A\\s*', ''), # strip leading whitespace
|
||||||
(r'(?u)\\s*\\Z', ''), # strip trailing whitespace
|
(r'(?u)\\s*\\Z', ''), # strip trailing whitespace
|
||||||
(r'[-\\s]+', '-'), # reduce multiple whitespace or '-' to single '-'
|
(r'[-\\s]+', '-'), # reduce multiple whitespace or '-' to single '-'
|
||||||
]``
|
]
|
||||||
|
|
||||||
.. data:: AUTHOR_REGEX_SUBSTITUTIONS
|
.. data:: AUTHOR_REGEX_SUBSTITUTIONS
|
||||||
|
|
||||||
|
|
@ -1126,10 +1126,12 @@ You can use the following settings to configure the pagination.
|
||||||
.. data:: PAGINATION_PATTERNS
|
.. data:: PAGINATION_PATTERNS
|
||||||
|
|
||||||
A set of patterns that are used to determine advanced pagination output. The
|
A set of patterns that are used to determine advanced pagination output. The
|
||||||
default is ``(
|
default is::
|
||||||
(1, '{name}{extension}', '{name}{extension}'),
|
|
||||||
(2, '{name}{number}{extension}', '{name}{number}{extension}'),
|
(
|
||||||
)``.
|
(1, '{name}{extension}', '{name}{extension}'),
|
||||||
|
(2, '{name}{number}{extension}', '{name}{number}{extension}'),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
Using Pagination Patterns
|
Using Pagination Patterns
|
||||||
|
|
@ -1209,6 +1211,8 @@ section for more information.
|
||||||
placeholder. [3]_ If not set, ``TRANSLATION_FEED_RSS`` is used both for save
|
placeholder. [3]_ If not set, ``TRANSLATION_FEED_RSS`` is used both for save
|
||||||
location and URL. The default is ``None``.
|
location and URL. The default is ``None``.
|
||||||
|
|
||||||
|
.. [3] {lang} is the language code
|
||||||
|
|
||||||
Ordering content
|
Ordering content
|
||||||
================
|
================
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue