mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Support docutils.conf 'writers' and 'html4css1 writer' section by html writer.
latex, manpage and texinfo writers support 'writers' section.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -5,6 +5,8 @@ Features added
|
|||||||
--------------
|
--------------
|
||||||
|
|
||||||
* Builders: rebuild i18n target document when catalog updated.
|
* Builders: rebuild i18n target document when catalog updated.
|
||||||
|
* Support docutils.conf 'writers' and 'html4css1 writer' section by html writer.
|
||||||
|
latex, manpage and texinfo writers also support 'writers' section.
|
||||||
|
|
||||||
Incompatible changes
|
Incompatible changes
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
@@ -260,7 +260,8 @@ class StandaloneHTMLBuilder(Builder):
|
|||||||
self.docwriter = HTMLWriter(self)
|
self.docwriter = HTMLWriter(self)
|
||||||
self.docsettings = OptionParser(
|
self.docsettings = OptionParser(
|
||||||
defaults=self.env.settings,
|
defaults=self.env.settings,
|
||||||
components=(self.docwriter,)).get_default_values()
|
components=(self.docwriter,),
|
||||||
|
read_config_files=True).get_default_values()
|
||||||
self.docsettings.compact_lists = bool(self.config.html_compact_lists)
|
self.docsettings.compact_lists = bool(self.config.html_compact_lists)
|
||||||
|
|
||||||
# determine the additional indices to include
|
# determine the additional indices to include
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ class LaTeXBuilder(Builder):
|
|||||||
docwriter = LaTeXWriter(self)
|
docwriter = LaTeXWriter(self)
|
||||||
docsettings = OptionParser(
|
docsettings = OptionParser(
|
||||||
defaults=self.env.settings,
|
defaults=self.env.settings,
|
||||||
components=(docwriter,)).get_default_values()
|
components=(docwriter,),
|
||||||
|
read_config_files=True).get_default_values()
|
||||||
|
|
||||||
self.init_document_data()
|
self.init_document_data()
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ class ManualPageBuilder(Builder):
|
|||||||
docwriter = ManualPageWriter(self)
|
docwriter = ManualPageWriter(self)
|
||||||
docsettings = OptionParser(
|
docsettings = OptionParser(
|
||||||
defaults=self.env.settings,
|
defaults=self.env.settings,
|
||||||
components=(docwriter,)).get_default_values()
|
components=(docwriter,),
|
||||||
|
read_config_files=True).get_default_values()
|
||||||
|
|
||||||
self.info(bold('writing... '), nonl=True)
|
self.info(bold('writing... '), nonl=True)
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,8 @@ class TexinfoBuilder(Builder):
|
|||||||
docwriter = TexinfoWriter(self)
|
docwriter = TexinfoWriter(self)
|
||||||
settings = OptionParser(
|
settings = OptionParser(
|
||||||
defaults=self.env.settings,
|
defaults=self.env.settings,
|
||||||
components=(docwriter,)).get_default_values()
|
components=(docwriter,),
|
||||||
|
read_config_files=True).get_default_values()
|
||||||
settings.author = author
|
settings.author = author
|
||||||
settings.title = title
|
settings.title = title
|
||||||
settings.texinfo_filename = targetname[:-5] + '.info'
|
settings.texinfo_filename = targetname[:-5] + '.info'
|
||||||
|
|||||||
Reference in New Issue
Block a user