Documents DOCUTILS_SETTINGS and initializes it. Fixes #1425

This commit is contained in:
Barry Steyn 2014-07-31 18:04:35 -07:00
commit b3b65d77e0
2 changed files with 6 additions and 0 deletions

View file

@ -58,6 +58,10 @@ Setting name (followed by default value, if any)
``datetime.datetime`` constructor. ``datetime.datetime`` constructor.
``DEFAULT_METADATA = ()`` The default metadata you want to use for all articles ``DEFAULT_METADATA = ()`` The default metadata you want to use for all articles
and pages. and pages.
``DOCUTILS_SETTINGS = {}`` Extra configuration settings for the docutils publisher
(applicable only to reStructuredText). See `Docutils
Configuration`_ settings for more details.
``FILENAME_METADATA =`` ``'(?P<date>\d{4}-\d{2}-\d{2}).*'`` The regexp that will be used to extract any metadata ``FILENAME_METADATA =`` ``'(?P<date>\d{4}-\d{2}-\d{2}).*'`` The regexp that will be used to extract any metadata
from the filename. All named groups that are matched from the filename. All named groups that are matched
will be set in the metadata object. will be set in the metadata object.
@ -819,3 +823,4 @@ Example settings
.. _Jinja custom filters documentation: http://jinja.pocoo.org/docs/api/#custom-filters .. _Jinja custom filters documentation: http://jinja.pocoo.org/docs/api/#custom-filters
.. _Docutils Configuration: http://docutils.sourceforge.net/docs/user/config.html

View file

@ -49,6 +49,7 @@ DEFAULT_CONFIG = {
'SITENAME': 'A Pelican Blog', 'SITENAME': 'A Pelican Blog',
'DISPLAY_PAGES_ON_MENU': True, 'DISPLAY_PAGES_ON_MENU': True,
'DISPLAY_CATEGORIES_ON_MENU': True, 'DISPLAY_CATEGORIES_ON_MENU': True,
'DOCUTILS_SETTINGS': {},
'OUTPUT_SOURCES': False, 'OUTPUT_SOURCES': False,
'OUTPUT_SOURCES_EXTENSION': '.text', 'OUTPUT_SOURCES_EXTENSION': '.text',
'USE_FOLDER_AS_CATEGORY': True, 'USE_FOLDER_AS_CATEGORY': True,