diff options
| author | Roland Meister <devnull@localhost> | 2011-02-28 23:15:35 +0100 |
|---|---|---|
| committer | Roland Meister <devnull@localhost> | 2011-02-28 23:15:35 +0100 |
| commit | ba2d18177f928d73e4e229b34020e41ebc0bb03f (patch) | |
| tree | 59d364f7b37c65c804350f8e88c3ce14c4182670 /doc | |
| parent | a49ab4d78a87a9f65ae356dae074dd7db7037b0b (diff) | |
| parent | ee523b11a46024bac20718c97effe5b4b5eb21d1 (diff) | |
| download | sphinx-ba2d18177f928d73e4e229b34020e41ebc0bb03f.tar.gz | |
Merge with birkenfeld/sphinx.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/conf.py | 2 | ||||
| -rw-r--r-- | doc/config.rst | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/doc/conf.py b/doc/conf.py index a1d0e8ce..19b95294 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -37,6 +37,8 @@ epub_pre_files = [('index.html', 'Welcome')] epub_exclude_files = ['_static/opensearch.xml', '_static/doctools.js', '_static/jquery.js', '_static/searchtools.js', '_static/underscore.js', '_static/basic.css', 'search.html'] +epub_fix_images = False +epub_max_image_width = 0 latex_documents = [('contents', 'sphinx.tex', 'Sphinx Documentation', 'Georg Brandl', 'manual', 1)] diff --git a/doc/config.rst b/doc/config.rst index d8a07fa9..1260796a 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -869,6 +869,23 @@ the `Dublin Core metadata <http://dublincore.org/>`_. depth in one list. The default value is ``True``. +.. confval:: epub_fix_images + + This flag determines if sphinx should try to fix image formats that are not + supported by some epub readers. At the moment palette images with a small + color table are upgraded. You need the Python Image Library (PIL) installed + to use this option. The default value is ``False`` because the automatic + conversion may loose information. + +.. confval:: epub_max_image_width + + This option specifies the maximum width of images. If it is set to a value + greater than zero, images with a width larger than the given value are + scaled accordingly. If it is zero, no scaling is performed. The default + value is ``0``. You need the Python Image Library (PIL) installed to use + this option. + + .. _latex-options: Options for LaTeX output |
