docs: Use raw string for the PATH_METADATA setting

This commit is contained in:
Kristinita 2025-04-15 11:14:33 +03:00
commit 7fd66d8a95
No known key found for this signature in database
GPG key ID: 54C7CC58818F2BA6
3 changed files with 3 additions and 3 deletions

View file

@ -118,7 +118,7 @@ How do I make my output folder structure identical to my content hierarchy?
Try these settings::
USE_FOLDER_AS_CATEGORY = False
PATH_METADATA = "(?P<path_no_ext>.*)\..*"
PATH_METADATA = r"(?P<path_no_ext>.*)\..*"
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = "{path_no_ext}.html"
How do I assign custom templates on a per-page basis?

View file

@ -458,7 +458,7 @@ If you don't want that flexibility and instead prefer that your generated
output paths mirror your source content's filesystem path hierarchy, try the
following settings::
PATH_METADATA = '(?P<path_no_ext>.*)\..*'
PATH_METADATA = r'(?P<path_no_ext>.*)\..*'
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
Otherwise, you can use a variety of file metadata attributes within URL-related