mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Drop deprecated options for epub3 builder
This commit is contained in:
parent
ea856fd909
commit
390e5a6ec2
@ -1510,20 +1510,6 @@ the `Dublin Core metadata <http://dublincore.org/>`_.
|
||||
|
||||
.. [#] https://developer.mozilla.org/en-US/docs/Web/CSS/writing-mode
|
||||
|
||||
.. confval:: epub3_page_progression_direction
|
||||
|
||||
The global direction in which the content flows.
|
||||
Allowed values are ``'ltr'`` (left-to-right), ``'rtl'`` (right-to-left) and
|
||||
``'default'``. The default value is ``'ltr'``.
|
||||
|
||||
When the ``'default'`` value is specified, the Author is expressing no
|
||||
preference and the Reading System may chose the rendering direction.
|
||||
|
||||
.. versionadded:: 1.4
|
||||
|
||||
.. deprecated:: 1.5
|
||||
Use ``epub_writing_mode`` instead.
|
||||
|
||||
.. _latex-options:
|
||||
|
||||
Options for LaTeX output
|
||||
|
@ -260,31 +260,13 @@ class Epub3Builder(EpubBuilder):
|
||||
self.files.append(outname)
|
||||
|
||||
|
||||
def validate_config_values(app):
|
||||
if app.config.epub3_description is not None:
|
||||
logger.warning('epub3_description is deprecated. Use epub_description instead.')
|
||||
app.config.epub_description = app.config.epub3_description
|
||||
|
||||
if app.config.epub3_contributor is not None:
|
||||
logger.warning('epub3_contributor is deprecated. Use epub_contributor instead.')
|
||||
app.config.epub_contributor = app.config.epub3_contributor
|
||||
|
||||
if app.config.epub3_page_progression_direction is not None:
|
||||
logger.warning('epub3_page_progression_direction option is deprecated'
|
||||
' from 1.5. Use epub_writing_mode instead.')
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.setup_extension('sphinx.builders.epub')
|
||||
app.add_builder(Epub3Builder)
|
||||
app.connect('builder-inited', validate_config_values)
|
||||
|
||||
app.add_config_value('epub_description', '', 'epub3', string_classes)
|
||||
app.add_config_value('epub_contributor', 'unknown', 'epub3', string_classes)
|
||||
app.add_config_value('epub_writing_mode', 'horizontal', 'epub3', string_classes)
|
||||
app.add_config_value('epub3_description', None, 'epub3', string_classes)
|
||||
app.add_config_value('epub3_contributor', None, 'epub3', string_classes)
|
||||
app.add_config_value('epub3_page_progression_direction', None, 'epub3', string_classes)
|
||||
|
||||
return {
|
||||
'version': 'builtin',
|
||||
|
Loading…
Reference in New Issue
Block a user