diff options
| author | Roland Meister <devnull@localhost> | 2012-02-13 20:59:37 +0100 |
|---|---|---|
| committer | Roland Meister <devnull@localhost> | 2012-02-13 20:59:37 +0100 |
| commit | fede2213ef68833f2c8808c2e91bcb5d395d28b7 (patch) | |
| tree | f34461b347865d3e6ee8df6bff5daa42e43747af /doc | |
| parent | ea4c490cce983e708e1ccea8de559bbfdda657d7 (diff) | |
| parent | 43d3e9395005ae0310ce6d02f71feb23c47beb28 (diff) | |
| download | sphinx-fede2213ef68833f2c8808c2e91bcb5d395d28b7.tar.gz | |
Merge with birkenfeld/sphinx
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/conf.py | 4 | ||||
| -rw-r--r-- | doc/config.rst | 23 | ||||
| -rw-r--r-- | doc/theming.rst | 12 |
3 files changed, 34 insertions, 5 deletions
diff --git a/doc/conf.py b/doc/conf.py index 1b8ba3e4..6b547edd 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -36,7 +36,9 @@ epub_identifier = epub_publisher 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'] + '_static/basic.css', 'search.html', '_static/websupport.js'] +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 5936cf8a..f840b289 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -785,6 +785,12 @@ the `Dublin Core metadata <http://dublincore.org/>`_. output is usually not wise. This defaults to ``'epub'``, a theme designed to save visual space. +.. confval:: epub_theme_options + + A dictionary of options that influence the look and feel of the selected + theme. These are theme-specific. For the options understood by the builtin + themes, see :ref:`this section <builtin-themes>`. + .. confval:: epub_title The title of the document. It defaults to the :confval:`html_title` option @@ -884,6 +890,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 lose 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 diff --git a/doc/theming.rst b/doc/theming.rst index 802b211f..334f6ffe 100644 --- a/doc/theming.rst +++ b/doc/theming.rst @@ -200,10 +200,14 @@ These themes are: * **traditional** -- A theme resembling the old Python documentation. There are currently no options beyond *nosidebar* and *sidebarwidth*. -* **epub** -- A theme for the epub builder. There are currently no options. - This theme tries to save visual space which is a sparse resource on ebook - readers. - +* **epub** -- A theme for the epub builder. This theme tries to save visual + space which is a sparse resource on ebook readers. The following options + are supported: + + - **relbar1** (true or false, default true): If this is true, the + `relbar1` block is inserted in the epub output, otherwise it is omitted. + - **footer** (true or false, default true): If this is true, the + `footer` block is inserted in the epub output, otherwise it is ommitted. Creating themes --------------- |
