mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Rename rst_prologue to rst_prolog and document it.
This commit is contained in:
parent
d7f1aeba8c
commit
63289cba33
2
CHANGES
2
CHANGES
@ -15,6 +15,8 @@ Release 1.0 (in development)
|
|||||||
|
|
||||||
* Added ``tab-width`` option to ``literalinclude`` directive.
|
* Added ``tab-width`` option to ``literalinclude`` directive.
|
||||||
|
|
||||||
|
* Added ``rst_prolog`` config value.
|
||||||
|
|
||||||
* Added ``html_secnumber_suffix`` config value to control section
|
* Added ``html_secnumber_suffix`` config value to control section
|
||||||
numbering format.
|
numbering format.
|
||||||
|
|
||||||
|
@ -182,6 +182,13 @@ General configuration
|
|||||||
|
|
||||||
.. versionadded:: 0.6
|
.. versionadded:: 0.6
|
||||||
|
|
||||||
|
.. confval:: rst_prolog
|
||||||
|
|
||||||
|
A string of reStructuredText that will be included at the beginning of every
|
||||||
|
source file that is read.
|
||||||
|
|
||||||
|
.. versionadded:: 1.0
|
||||||
|
|
||||||
.. confval:: default_role
|
.. confval:: default_role
|
||||||
|
|
||||||
.. index:: default; role
|
.. index:: default; role
|
||||||
|
@ -59,7 +59,7 @@ class Config(object):
|
|||||||
keep_warnings = (False, 'env'),
|
keep_warnings = (False, 'env'),
|
||||||
modindex_common_prefix = ([], 'html'),
|
modindex_common_prefix = ([], 'html'),
|
||||||
rst_epilog = (None, 'env'),
|
rst_epilog = (None, 'env'),
|
||||||
rst_prologue = (None, 'env'),
|
rst_prolog = (None, 'env'),
|
||||||
trim_doctest_flags = (True, 'env'),
|
trim_doctest_flags = (True, 'env'),
|
||||||
needs_sphinx = (None, None),
|
needs_sphinx = (None, None),
|
||||||
|
|
||||||
|
@ -590,8 +590,8 @@ class BuildEnvironment:
|
|||||||
data = arg[0]
|
data = arg[0]
|
||||||
if self.config.rst_epilog:
|
if self.config.rst_epilog:
|
||||||
data = data + '\n' + self.config.rst_epilog + '\n'
|
data = data + '\n' + self.config.rst_epilog + '\n'
|
||||||
if self.config.rst_prologue:
|
if self.config.rst_prolog:
|
||||||
data = self.config.rst_prologue + '\n' + data
|
data = self.config.rst_prolog + '\n' + data
|
||||||
return data
|
return data
|
||||||
|
|
||||||
# publish manually
|
# publish manually
|
||||||
|
Loading…
Reference in New Issue
Block a user