Skip to content
Browse files
Fix #3188
  • Loading branch information
ralsina committed Dec 11, 2018
1 parent 884390c commit cc6b03acecd53275bacf620a53f9bbd34d08bcf7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
@@ -9,6 +9,11 @@ Bugfixes
* Remove mention of Twitter cards requiring an opt-in.
This is not true anymore - anyone can use them.


* Support for docutils.conf (Issue #3188)

New in v8.0.1

@@ -2837,7 +2837,7 @@ with a ``True`` argument, eg. ``all=True``.
ReStructured Text is "compiled" by docutils, which supports a number of
configuration options. It would be difficult to integrate them all into
Nikola's configuration, so you can just put a ``docutils.conf`` next
to your ```` and it will be used.
to your ```` and any settings in its ``[nikola]`` section will be used.

More information in the `docutils configuration reference <>`__

@@ -230,6 +230,8 @@ def observer(msg):
class NikolaReader(docutils.readers.standalone.Reader):
"""Nikola-specific docutils reader."""

config_section = 'nikola'

def __init__(self, *args, **kwargs):
"""Initialize the reader."""
self.transforms = kwargs.pop('transforms', [])
@@ -303,7 +305,7 @@ def rst2html(source, source_path=None,,
destination_path=None, reader=None,
parser=None, parser_name='restructuredtext', writer=None,
writer_name='html', settings=None, settings_spec=None,
settings_overrides=None, config_section=None,
settings_overrides=None, config_section='nikola',
enable_exit_status=None, logger=None, l_add_ln=0, transforms=None):
"""Set up & run a ``Publisher``, and return a dictionary of document parts.

0 comments on commit cc6b03a

Please sign in to comment.