Commit Graph

1666 Commits

Author SHA1 Message Date
jfbu
350f58a618 Update CHANGES and docs regarding Latexmk dependency 2017-05-28 09:43:24 +02:00
jfbu
b18a3f82b4 Fix flake8 2017-05-20 10:16:24 +02:00
jfbu
6422f7b8c9 Fix #3742: missing `Index` bookmark and TOC entry in PDF builds at RTD
The trick is to create an Index TOC/bookmarks entry in anticipation of
makeindex execution, as RTD (currently) does only one pdflatex run after
makeindex.

    https://github.com/rtfd/readthedocs.org/issues/2857

The workaround works for Sphinx own docs, which uses ``'manual'``
docclass and puts the general index at very end of document.
2017-05-20 09:54:09 +02:00
jfbu
ae1455077b Fix #3746: PDF builds fail with latexmk version 4.48 or earlier
This is tested to work with latexmk version: 4.39 (10 Nov 2013).

For xelatex engine and with latexmk 4.52b or later (Jan 2017), setting
LATEXMKOPTS Makefile variable on command line to "-xelatex" results in
faster builds, because PDF is produced only on last run.
2017-05-13 13:05:58 +02:00
jfbu
773659c41a Mention latex table templates in docs 2017-05-11 22:50:58 +02:00
jfbu
ad7d2bd548 Fix typo 2017-05-11 10:25:49 +02:00
jfbu
e20f28ce70 Improve latex docs of `latex_use_latex_multicolumn` config setting 2017-05-11 10:24:10 +02:00
jfbu
97625a2c5c Don't use forced mode for Latexmk 2017-05-08 20:53:03 +02:00
jfbu
38e6dfca34 Update latex docs 2017-05-07 11:10:41 +02:00
Takeshi KOMIYA
8f0d269069 Merge branch '1.6-release' into 3633_misdetect_unreferenced_citations 2017-05-07 16:14:50 +09:00
Takeshi KOMIYA
6d2bcf9c27 Mark as experimental 2017-05-07 16:13:19 +09:00
jfbu
79412051d2 Merge branch 'stable' into 1.6-release 2017-05-05 13:33:50 +02:00
jfbu
321a5e7a5e Fix #3702: abstract LaTeX styling of figure legends into sphinxlegend 2017-05-04 09:59:29 +02:00
jfbu
ca543eee23 Separate latexmk and pdflatex options for better control 2017-05-03 10:59:12 +02:00
jfbu
af76149a2b Fix style-check whitespace error in doc 2017-05-03 07:52:32 +02:00
jfbu
7bbc8c1f88 By default, `make latexpdf` will try to ignore LaTeX errors
For example, if a graphics file is missing. The error is still reported
but some functional PDF may still have been produced. Some projects have
temporary errors with LaTeX (missing Unicode characters, graphics file
using wrong formats, ...) affecting some small percentage of the
documentation, and it may be important to make at least some PDF
available, postponing complete resolution of LaTeX problems to a later
date.
2017-05-03 00:30:33 +02:00
Takeshi KOMIYA
d1e8e41b5e Fix #3633: misdetect unreferenced citations 2017-04-29 23:22:00 +09:00
Takeshi KOMIYA
721c3d5fae Merge branch 'stable' into 1.6-release 2017-04-29 15:11:55 +09:00
Takeshi KOMIYA
bd66ffc1fa Fix the unreleased version number is shown (refs: #3678, #3027) 2017-04-28 01:19:01 +09:00
Takeshi KOMIYA
8462d4bcda doc: Update 2017-04-27 21:24:33 +09:00
Dmitry Shachnev
9236beb9ee Deprecate the html_use_smartypants option 2017-04-25 14:17:30 +03:00
Takeshi KOMIYA
c50321d3ca Merge branch 'master' into drop_websupport 2017-04-23 19:18:01 +09:00
Takeshi KOMIYA
5da74f463b Merge pull request #3649 from tk0miya/deprecate_sphinx_theme_entry_point
Fix #3628: Rename sphinx_themes entry point to sphinx.html_themes
2017-04-23 16:40:02 +09:00
Takeshi KOMIYA
55818b7419 Update docs 2017-04-23 16:03:46 +09:00
Takeshi KOMIYA
ca618b2998 Update docs 2017-04-22 19:04:00 +09:00
Takeshi KOMIYA
621a4e6f61 Fix #3628: Rename sphinx_themes entry point to sphinx.html_themes 2017-04-22 14:59:10 +09:00
Takeshi KOMIYA
2b9b4f92a5 Add image_converter_args confval 2017-04-22 13:29:17 +09:00
Takeshi KOMIYA
c525723807 Add sphinx.ext.imgconverter 2017-04-22 13:29:16 +09:00
Takeshi KOMIYA
241c0db7bc Merge branch 'master' into support_remote_images 2017-04-22 09:45:05 +09:00
Yoshiki Shibukawa
fb48f5a921 Merge pull request #3505 from shibukawa/feature/refactoring_epub_builder
Refactoring EPUB builders: split common codes from EPUB2 builder
2017-04-21 00:25:16 +09:00
Takeshi KOMIYA
f21ce2f03f Fix markup 2017-04-20 02:02:27 +09:00
Yoshiki Shibukawa
7bbf749bd1 Refactoring EPUB builders: split common codes from EPUB2 builder 2017-04-20 00:48:00 +09:00
Takeshi KOMIYA
806dff0e94 Merge branch 'master' into support_remote_images 2017-04-19 21:45:24 +09:00
shimizukawa
de2cd652ab update CHANGES refs #2961 2017-04-19 16:28:56 +09:00
Takeshi KOMIYA
ebdec70dfc Support images in Data URI on non-HTML builders 2017-04-19 01:40:49 +09:00
Takeshi KOMIYA
a5d77a8f06 Drop warning for nonlocal image URI 2017-04-19 01:40:17 +09:00
Robin Jarry
ececc4dcfe ext: enhance autodoc_mock_imports
The autodoc_mock_imports option requires to explicitly declare *every*
external module and sub-module that are imported by the documented code.
This is not practical as the list can become very large and must be
maintained as the code changes.

Also, the mocking is minimal which causes errors when compiling the
docs. For example, if you declare:

    autodoc_mock_imports = ['django.template']

And try to document a module:

    .. automodule:: my.lib.util

Which contains this code:

    from django.template import Library
    register = Library()

The following error occurs:

    File ".../my/lib/util.py" line 2
        register = Library()
    TypeError: 'object' object is not callable

Other similar errors can occur such as "TypeError: 'object' object has
no len".

To address these limitations, only require to declare the top-level
module that should be mocked:

    autodoc_mock_imports = ['django']

Will mock "django" but also any sub-module: "django.template",
"django.contrib", etc.

Also, make the mocked modules yield more complete dummy objects to avoid
these TypeError problems.

Behind the scenes, it uses the python import hooks mechanism specified
in PEP 302.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2017-04-18 17:08:17 +02:00
Takeshi KOMIYA
618ef6492c Merge pull request #1767 from Jellby/master
Allow setting 'rel' and 'title' attributes for stylesheets.
2017-04-19 00:04:43 +09:00
Takeshi KOMIYA
690f07fa3c Merge pull request #3388 from smheidrich/autosectionlabel_prefix_document1
Added autosectionlabel_prefix_document config option
2017-04-18 01:16:00 +09:00
Takeshi KOMIYA
f6d9c7d1d1 Merge branch 'master' into 3558_emit_warnings_for_unreferenced_footnotes 2017-04-18 01:08:50 +09:00
smheidrich
231976ff14 Added autosectionlabel_prefix_document config option. 2017-04-17 14:51:39 +02:00
Jellby
e59a8028d7 Rewrite and simplify stylesheet handling
Thanks to tk0miya's comment, I learnt one can add stuff to template
blocks, that allows a much simpler stylesheet configuration, considering
that changes at the template level will be more... well, low-level.
Hopefully this is now acceptable.
2017-04-15 17:07:33 +02:00
Jellby
1cfed262d2 Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/test_build_html.py
2017-04-15 15:54:06 +02:00
Brecht Machiels
3dd256fe7d Do not include the builder class in the entry point
- use the entry point to load the extension module in the usual way
- update the documentation to reflect this change
2017-04-14 11:01:09 +02:00
Brecht Machiels
405ef96d2a Find third-party builders by entry point
A builder is uniquely identified by its name, which can be used as an
entry point in the 'sphinx.builders' entry point group. This obviates
the need to register the builder as an extension.

The built-in builders are still loaded as before. New third-party builders
should provide an entry point in their setup.py:

    entry_points={
        'sphinx.builders': [
            'mybuilder = mypackage.mymodule:MyBuilder',
        ],
    }

Like before, builders should define a setup(app) function in the
'mypackage.module' module to define configuration variables etc. It is
no longer necessary to register the builder using Sphinx.add_builder().

Existing builders can still be loaded the traditional way, by including
their module name in the extensions list in conf.py.
2017-04-10 13:04:41 +02:00
Takeshi KOMIYA
fc41f43a70 Merge branch 'stable' 2017-04-02 19:05:50 +09:00
Takeshi KOMIYA
592b808005 Merge pull request #3585 from eric-wieser/escape-autosummary
BUG: Fix autosummary of members with a trailing underscore
2017-03-29 22:56:32 +09:00
Eric Wieser
804891c4a1 BUG: Fix autosummary of members with a trailing underscore 2017-03-26 12:54:03 +01:00
Takeshi KOMIYA
3e46f52a96 Merge pull request #3475 from agjohnson/domain-js-add-nesting
Add nesting, package directive, and method directive to JavaScript domain
2017-03-26 18:16:04 +09:00
Takeshi KOMIYA
8f9dd64992 Merge branch 'stable' 2017-03-26 11:52:15 +09:00