docfix: fix example of FILENAME_METADATA regexp

This commit is contained in:
Bruno Binet 2012-11-30 09:48:30 +01:00
commit f86e1128f0
2 changed files with 2 additions and 2 deletions

View file

@ -197,7 +197,7 @@ All named groups that are matched will be set in the metadata object. The
default value for the ``FILENAME_METADATA`` setting will only extract the date
from the filename. For example, if you would like to extract both the date and
the slug, you could set something like:
``'(?P<date>\d{4}-\d{2}-\d{2})_(?<slug>.*)'``.
``'(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)'``.
Please note that the metadata available inside your files takes precedence over
the metadata extracted from the filename.

View file

@ -59,7 +59,7 @@ Setting name (default value) What doe
the filename.
For example, if you would like to extract both the
date and the slug, you could set something like:
``'(?P<date>\d{4}-\d{2}-\d{2})_(?<slug>.*)'``.
``'(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)'``.
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the content of the output directory before
generating new files.
`FILES_TO_COPY` (``()``) A list of files (or directories) to copy from the source (inside the