Debian Codegraph @

doc/changes/1.5.rst

raw
1 ==========
2 Sphinx 1.5
3 ==========
4
5
6 Release 1.5.6 (released May 15, 2017)
7 =====================================
8
9 Bugs fixed
10 ----------
11
12 * #3614: Sphinx crashes with requests-2.5.0
13 * #3618: autodoc crashes with tupled arguments
14 * #3664: No space after the bullet in items of a latex list produced by Sphinx
15 * #3657: EPUB builder crashes if a document starting with genindex exists
16 * #3588: No compact (p tag) html output in the i18n document build even when
17 :confval:`html_compact_lists` is ``True``.
18 * #3685: AttributeError when using 3rd party domains
19 * #3702: LaTeX writer styles figure legends with a hard-coded ``\small``
20 * #3708: LaTeX writer allows irc scheme
21 * #3717: Stop enforcing that favicon's must be .ico
22 * #3731, #3732: Protect isenumclass predicate against non-class arguments
23 * #3320: Warning about reference target not being found for container types
24 * Misspelled ARCHIVEPREFIX in Makefile for latex build repertory
25
26 Release 1.5.5 (released Apr 03, 2017)
27 =====================================
28
29 Bugs fixed
30 ----------
31
32 * #3597: python domain raises UnboundLocalError if invalid name given
33 * #3599: Move to new MathJax CDN
34
35 Release 1.5.4 (released Apr 02, 2017)
36 =====================================
37
38 Features added
39 --------------
40
41 * #3470: Make genindex support all kinds of letters, not only Latin ones
42
43 Bugs fixed
44 ----------
45
46 * #3445: setting ``'inputenc'`` key to ``\\usepackage[utf8x]{inputenc}`` leads
47 to failed PDF build
48 * EPUB file has duplicated ``nav.xhtml`` link in ``content.opf``
49 except first time build
50 * #3488: objects.inv has broken when ``release`` or ``version`` contain
51 return code
52 * #2073, #3443, #3490: gettext builder that writes pot files unless the content
53 are same without creation date. Thanks to Yoshiki Shibukawa.
54 * #3487: intersphinx: failed to refer options
55 * #3496: latex longtable's last column may be much wider than its contents
56 * #3507: wrong quotes in latex output for productionlist directive
57 * #3533: Moving from Sphinx 1.3.1 to 1.5.3 breaks LaTeX compilation of links
58 rendered as code
59 * #2665, #2607: Link names in C++ docfields, and make it possible for other
60 domains.
61 * #3542: C++, fix parsing error of non-type template argument with template.
62 * #3065, #3520: python domain fails to recognize nested class
63 * #3575: Problems with pdflatex in a Turkish document built with Sphinx has
64 reappeared (refs #2997, #2397)
65 * #3577: Fix intersphinx debug tool
66 * A LaTeX command such as ``\\large`` inserted in the title items of
67 :confval:`latex_documents` causes failed PDF build (refs #3551, #3567)
68
69 Release 1.5.3 (released Feb 26, 2017)
70 =====================================
71
72 Features added
73 --------------
74
75 * Support requests-2.0.0 (experimental) (refs: #3367)
76 * (latex) PDF page margin dimensions may be customized (refs: #3387)
77 * ``literalinclude`` directive allows combination of ``:pyobject:`` and
78 ``:lines:`` options (refs: #3416)
79 * #3400: make-mode doesn't use subprocess on building docs
80
81 Bugs fixed
82 ----------
83
84 * #3370: the caption of code-block is not picked up for translation
85 * LaTeX: :confval:`release` is not escaped (refs: #3362)
86 * #3364: sphinx-quickstart prompts overflow on Console with 80 chars width
87 * since 1.5, PDF's TOC and bookmarks lack an entry for general Index
88 (refs: #3383)
89 * #3392: ``'releasename'`` in :confval:`latex_elements` is not working
90 * #3356: Page layout for Japanese ``'manual'`` docclass has a shorter text area
91 * #3394: When ``'pointsize'`` is not ``10pt``, Japanese ``'manual'`` document
92 gets wrong PDF page dimensions
93 * #3399: quickstart: conf.py was not overwritten by template
94 * #3366: option directive does not allow punctuations
95 * #3410: return code in :confval:`release` breaks html search
96 * #3427: autodoc: memory addresses are not stripped on Windows
97 * #3428: xetex build tests fail due to fontspec v2.6 defining ``\strong``
98 * #3349: Result of ``IndexBuilder.load()`` is broken
99 * #3450: &nbsp is appeared in EPUB docs
100 * #3418: Search button is misaligned in nature and pyramid theme
101 * #3421: Could not translate a caption of tables
102 * #3552: linkcheck raises UnboundLocalError
103
104 Release 1.5.2 (released Jan 22, 2017)
105 =====================================
106
107 Incompatible changes
108 --------------------
109
110 * Dependency requirement updates: requests 2.4.0 or above (refs: #3268, #3310)
111
112 Features added
113 --------------
114
115 * #3241: emit latex warning if buggy titlesec (ref #3210)
116 * #3194: Refer the $MAKE environment variable to determine ``make`` command
117 * Emit warning for nested numbered toctrees (refs: #3142)
118 * #978: ``intersphinx_mapping`` also allows a list as a parameter
119 * #3340: (LaTeX) long lines in :dudir:`parsed-literal` are wrapped like in
120 :rst:dir:`code-block`, inline math and footnotes are fully functional.
121
122 Bugs fixed
123 ----------
124
125 * #3246: xapian search adapter crashes
126 * #3253: In Py2 environment, building another locale with a non-captioned
127 toctree produces ``None`` captions
128 * #185: References to section title including raw node has broken
129 * #3255: In Py3.4 environment, autodoc doesn't support documentation for
130 attributes of Enum class correctly.
131 * #3261: ``latex_use_parts`` makes Sphinx crash
132 * The warning type ``misc.highlighting_failure`` does not work
133 * #3294: ``add_latex_package()`` make crashes non-LaTeX builders
134 * The caption of table are rendered as invalid HTML (refs: #3287)
135 * #3268: Sphinx crashes with requests package from Debian jessie
136 * #3284: Sphinx crashes on parallel build with an extension which raises
137 unserializable exception
138 * #3315: Bibliography crashes on latex build with docclass 'memoir'
139 * #3328: Could not refer rubric implicitly
140 * #3329: emit warnings if po file is invalid and can't read it. Also writing mo
141 * #3337: Ugly rendering of definition list term's classifier
142 * #3335: gettext does not extract field_name of a field in a field_list
143 * #2952: C++, fix refs to operator() functions.
144 * Fix Unicode super- and subscript digits in :rst:dir:`code-block` and
145 parsed-literal LaTeX output (ref #3342)
146 * LaTeX writer: leave ``"`` character inside parsed-literal as is (ref #3341)
147 * #3234: intersphinx failed for encoded inventories
148 * #3158: too much space after captions in PDF output
149 * #3317: An URL in parsed-literal contents gets wrongly rendered in PDF if
150 with hyphen
151 * LaTeX crash if the filename of an image inserted in parsed-literal
152 via a substitution contains an hyphen (ref #3340)
153 * LaTeX rendering of inserted footnotes in parsed-literal is wrong (ref #3340)
154 * Inline math in parsed-literal is not rendered well by LaTeX (ref #3340)
155 * #3308: Parsed-literals don't wrap very long lines with pdf builder (ref #3340)
156 * #3295: Could not import extension sphinx.builders.linkcheck
157 * #3285: autosummary: asterisks are escaped twice
158 * LaTeX, pass dvipdfm option to geometry package for Japanese documents (ref
159 #3363)
160 * Fix parselinenos() could not parse left half open range (cf. "-4")
161
162
163 Release 1.5.1 (released Dec 13, 2016)
164 =====================================
165
166 Features added
167 --------------
168
169 * #3214: Allow to suppress "unknown mimetype" warnings from epub builder using
170 :confval:`suppress_warnings`.
171
172 Bugs fixed
173 ----------
174
175 * #3195: Can not build in parallel
176 * #3198: AttributeError is raised when toctree has 'self'
177 * #3211: Remove untranslated Sphinx locale catalogs (it was covered by
178 untranslated it_IT)
179 * #3212: HTML Builders crashes with Docutils 0.13
180 * #3207: more latex problems with references inside parsed-literal directive
181 (``\DUrole``)
182 * #3205: sphinx.util.requests crashes with old pyOpenSSL (< 0.14)
183 * #3220: KeyError when having a duplicate citation
184 * #3200: LaTeX: xref inside desc_name not allowed
185 * #3228: ``build_sphinx`` command crashes when missing dependency
186 * #2469: Ignore updates of catalog files for gettext builder. Thanks to
187 Hiroshi Ohkubo.
188 * #3183: Randomized jump box order in generated index page.
189
190 Release 1.5 (released Dec 5, 2016)
191 ==================================
192
193 Incompatible changes
194 --------------------
195
196 1.5a1
197
198 * latex, package fancybox is not any longer a dependency of sphinx.sty
199 * Use ``'locales'`` as a default value of ``locale_dirs``
200 * latex, package ifthen is not any longer a dependency of sphinx.sty
201 * latex, style file does not modify fancyvrb's Verbatim (also available as
202 OriginalVerbatim) but uses sphinxVerbatim for name of custom wrapper.
203 * latex, package newfloat is not used (and not included) anymore (ref #2660;
204 it was used since 1.3.4 and shipped with Sphinx since 1.4).
205 * latex, literal blocks in tables do not use OriginalVerbatim but
206 sphinxVerbatimintable which handles captions and wraps lines (ref #2704).
207 * latex, replace ``pt`` by TeX equivalent ``bp`` if found in ``width`` or
208 ``height`` attribute of an image.
209 * latex, if ``width`` or ``height`` attribute of an image is given with no unit,
210 use ``px`` rather than ignore it.
211 * latex: Separate stylesheets of pygments to independent .sty file
212 * #2454: The filename of sourcelink is now changed. The value of
213 ``html_sourcelink_suffix`` will be appended to the original filename (like
214 ``index.rst.txt``).
215 * ``sphinx.util.copy_static_entry()`` is now deprecated.
216 Use ``sphinx.util.fileutil.copy_asset()`` instead.
217 * ``sphinx.util.osutil.filecopy()`` skips copying if the file has not been
218 changed (ref: #2510, #2753)
219 * Internet Explorer 6-8, Opera 12.1x or Safari 5.1+ support is dropped
220 because jQuery version is updated from 1.11.0 to 3.1.0 (ref: #2634, #2773)
221 * QtHelpBuilder doesn't generate search page (ref: #2352)
222 * QtHelpBuilder uses ``nonav`` theme instead of default one
223 to improve readability.
224 * latex: To provide good default settings to Japanese documents, Sphinx uses
225 ``jreport`` and ``jsbook`` as docclass if :confval:`language` is
226 ``ja``.
227 * ``sphinx-quickstart`` now allows a project version is empty
228 * Fix :download: role on epub/qthelp builder. They ignore the role because they
229 don't support it.
230 * ``sphinx.ext.viewcode`` doesn't work on epub building by default.
231 ``viewcode_enable_epub`` option
232 * ``sphinx.ext.viewcode`` disabled on singlehtml builder.
233 * Use make-mode of ``sphinx-quickstart`` by default. To disable this, use
234 ``-M`` option
235 * Fix ``genindex.html``, Sphinx's document template, link address to itself to
236 satisfy xhtml standard.
237 * Use epub3 builder by default. And the old epub builder is renamed to epub2.
238 * Fix ``epub`` and ``epub3`` builders that contained links to ``genindex`` even
239 if ``epub_use_index = False``.
240 * ``html_translator_class`` is now deprecated.
241 Use :meth:`~sphinx.application.Sphinx.set_translator` API instead.
242 * Drop python 2.6 and 3.3 support
243 * Drop epub3 builder's ``epub3_page_progression_direction`` option (use
244 ``epub3_writing_mode``).
245 * #2877: Rename ``latex_elements['footer']`` to
246 ``latex_elements['atendofbody']``
247
248 1.5a2
249
250 * #2983: Rename ``epub3_description`` and ``epub3_contributor`` to
251 ``epub_description`` and ``epub_contributor``.
252 * Remove themes/basic/defindex.html; no longer used
253 * Sphinx does not ship anymore (but still uses) LaTeX style file ``fncychap``
254 * #2435: Slim down quickstarted conf.py
255 * The ``sphinx.sty`` latex package does not load itself "hyperref", as this
256 is done later in the preamble of the latex output via ``'hyperref'`` key.
257 * Sphinx does not ship anymore a custom modified LaTeX style file ``tabulary``.
258 The non-modified package is used.
259 * #3057: By default, footnote marks in latex PDF output are not preceded by a
260 space anymore, ``\sphinxBeforeFootnote`` allows user customization if needed.
261 * LaTeX target requires that option ``hyperfootnotes`` of package ``hyperref``
262 be left unchanged to its default (i.e. ``true``) (refs: #3022)
263
264 1.5 final
265
266 * #2986: ``themes/basic/defindex.html`` is now deprecated
267 * Emit warnings that will be deprecated in Sphinx 1.6 by default.
268 Users can change the behavior by setting the environment variable
269 PYTHONWARNINGS. Please refer :ref:`when-deprecation-warnings-are-displayed`.
270 * #2454: new JavaScript variable ``SOURCELINK_SUFFIX`` is added
271
272 Deprecated
273 ----------
274
275 These features are removed in Sphinx 1.6:
276
277 * LDML format support in i18n feature
278 * ``sphinx.addnodes.termsep``
279 * Some functions and classes in ``sphinx.util.pycompat``:
280 ``zip_longest``, ``product``, ``all``, ``any``, ``next``, ``open``,
281 ``class_types``, ``base_exception``, ``relpath``, ``StringIO``, ``BytesIO``.
282 Please use the standard library version instead;
283
284 If any deprecation warning like ``RemovedInSphinxXXXWarning`` are displayed,
285 please refer :ref:`when-deprecation-warnings-are-displayed`.
286
287 Features added
288 --------------
289
290 1.5a1
291
292 * #2951: Add ``--implicit-namespaces`` PEP-0420 support to apidoc.
293 * Add ``:caption:`` option for sphinx.ext.inheritance_diagram.
294 * #2471: Add config variable for default doctest flags.
295 * Convert linkcheck builder to requests for better encoding handling
296 * #2463, #2516: Add keywords of "meta" directive to search index
297 * ``:maxdepth:`` option of toctree affects ``secnumdepth`` (ref: #2547)
298 * #2575: Now ``sphinx.ext.graphviz`` allows ``:align:`` option
299 * Show warnings if unknown key is specified to ``latex_elements``
300 * Show warnings if no domains match with ``primary_domain`` (ref: #2001)
301 * C++, show warnings when the kind of role is misleading for the kind
302 of target it refers to (e.g., using the ``class`` role for a function).
303 * latex, writer abstracts more of text styling into customizable macros, e.g.
304 the ``visit_emphasis`` will output ``\sphinxstyleemphasis`` rather than
305 ``\emph`` (which may be in use elsewhere or in an added LaTeX package). See
306 list at end of ``sphinx.sty`` (ref: #2686)
307 * latex, public names for environments and parameters used by note, warning,
308 and other admonition types, allowing full customizability from the
309 ``'preamble'`` key or an input file (ref: feature request #2674, #2685)
310 * latex, better computes column widths of some tables (as a result, there will
311 be slight changes as tables now correctly fill the line width; ref: #2708)
312 * latex, sphinxVerbatim environment is more easily customizable (ref: #2704).
313 In addition to already existing VerbatimColor and VerbatimBorderColor:
314
315 - two lengths ``\sphinxverbatimsep`` and ``\sphinxverbatimborder``,
316 - booleans ``\ifsphinxverbatimwithframe`` and ``\ifsphinxverbatimwrapslines``.
317
318 * latex, captions for literal blocks inside tables are handled, and long code
319 lines wrapped to fit table cell (ref: #2704)
320 * #2597: Show warning messages as darkred
321 * latex, allow image dimensions using px unit (default is 96px=1in)
322 * Show warnings if invalid dimension units found
323 * #2650: Add ``--pdb`` option to setup.py command
324 * latex, make the use of ``\small`` for code listings customizable (ref #2721)
325 * #2663: Add ``--warning-is-error`` option to setup.py command
326 * Show warnings if deprecated latex options are used
327 * Add sphinx.config.ENUM to check the config values is in candidates
328 * math: Add hyperlink marker to each equations in HTML output
329 * Add new theme ``nonav`` that doesn't include any navigation links.
330 This is for any help generator like qthelp.
331 * #2680: ``sphinx.ext.todo`` now emits warnings if ``todo_emit_warnings`` enabled.
332 Also, it emits an additional event named ``todo-defined`` to handle the TODO
333 entries in 3rd party extensions.
334 * Python domain signature parser now uses the xref mixin for 'exceptions',
335 allowing exception classes to be autolinked.
336 * #2513: Add ``latex_engine`` to switch the LaTeX engine by conf.py
337 * #2682: C++, basic support for attributes (C++11 style and GNU style).
338 The new configuration variables 'cpp_id_attributes' and 'cpp_paren_attributes'
339 can be used to introduce custom attributes.
340 * #1958: C++, add configuration variable 'cpp_index_common_prefix' for removing
341 prefixes from the index text of C++ objects.
342 * C++, added concept directive. Thanks to mickk-on-cpp.
343 * C++, added support for template introduction syntax. Thanks to mickk-on-cpp.
344 * #2725: latex builder: allow to use user-defined template file (experimental)
345 * apidoc now avoids invalidating cached files by not writing to files whose
346 content doesn't change. This can lead to significant performance wins if
347 apidoc is run frequently.
348 * #2851: ``sphinx.ext.math`` emits missing-reference event if equation not found
349 * #1210: ``eqref`` role now supports cross reference
350 * #2892: Added ``-a`` (``--append-syspath``) option to ``sphinx-apidoc``
351 * #1604: epub3 builder: Obey font-related CSS when viewing in iBooks.
352 * #646: ``option`` directive support '.' character as a part of options
353 * Add document about kindlegen and fix document structure for it.
354 * #2474: Add ``intersphinx_timeout`` option to ``sphinx.ext.intersphinx``
355 * #2926: EPUB3 builder supports vertical mode (``epub3_writing_mode`` option)
356 * #2695: ``build_sphinx`` subcommand for setuptools handles exceptions as same
357 as ``sphinx-build`` does
358 * #326: ``numref`` role can also refer sections
359 * #2916: ``numref`` role can also refer caption as an its linktext
360
361 1.5a2
362
363 * #3008: ``linkcheck`` builder ignores self-signed certificate URL
364 * #3020: new ``'geometry'`` key to ``latex_elements`` whose default uses
365 LaTeX style file ``geometry.sty`` to set page layout
366 * #2843: Add :start-at: and :end-at: options to literalinclude directive
367 * #2527: Add ``:reversed:`` option to toctree directive
368 * Add ``-t`` and ``-d`` option to ``sphinx-quickstart`` to support templating
369 generated Sphinx project.
370 * #3028: Add ``{path}`` and ``{basename}`` to the format of
371 ``figure_language_filename``
372 * new ``'hyperref'`` key in the ``latex_elements`` dictionary (ref #3030)
373 * #3022: Allow code-blocks in footnotes for LaTeX PDF output
374
375 1.5b1
376
377 * #2513: A better default settings for XeLaTeX
378 * #3096: ``'maxlistdepth'`` key to work around LaTeX list limitations
379 * #3060: autodoc supports documentation for attributes of Enum class. Now
380 autodoc render just the value of Enum attributes instead of Enum attribute
381 representation.
382 * Add ``--extensions`` to ``sphinx-quickstart`` to support enable arbitrary
383 extensions from command line (ref: #2904)
384 * #3104, #3122: ``'sphinxsetup'`` for key=value styling of Sphinx LaTeX
385 * #3071: Autodoc: Allow mocked module decorators to pass-through functions
386 unchanged
387 * #2495: linkcheck: Allow skipping anchor checking using
388 :confval:`linkcheck_anchors_ignore`
389 * #3083: let Unicode no-break space act like LaTeX ``~`` (fixed #3019)
390 * #3116: allow word wrap in PDF output for inline literals (ref #3110)
391 * #930: sphinx-apidoc allow wildcards for excluding paths. Thanks to Nick
392 Coghlan.
393 * #3121: add ``inlineliteralwraps`` option to control if inline literal
394 word-wraps in latex
395
396 1.5 final
397
398 * #3095: Add :confval:`tls_verify` and :confval:`tls_cacerts` to support
399 self-signed HTTPS servers in linkcheck and intersphinx
400 * #2215: make.bat generated by sphinx-quickstart can be called from another dir.
401 Thanks to Timotheus Kampik.
402 * #3185: Add new warning type ``misc.highlighting_failure``
403
404 Bugs fixed
405 ----------
406
407 1.5a1
408
409 * #2707: (latex) the column width is badly computed for tabular
410 * #2799: Sphinx installs roles and directives automatically on importing sphinx
411 module. Now Sphinx installs them on running application.
412 * ``sphinx.ext.autodoc`` crashes if target code imports * from mock modules
413 by ``autodoc_mock_imports``.
414 * #1953: ``Sphinx.add_node`` does not add handlers the translator installed by
415 ``html_translator_class``
416 * #1797: text builder inserts blank line on top
417 * #2894: quickstart main() doesn't use argv argument
418 * #2874: gettext builder could not extract all text under the ``only``
419 directives
420 * #2485: autosummary crashes with multiple source_suffix values
421 * #1734: Could not translate the caption of toctree directive
422 * Could not translate the content of meta directive (ref: #1734)
423 * #2550: external links are opened in help viewer
424 * #2687: Running Sphinx multiple times produces 'already registered' warnings
425
426 1.5a2
427
428 * #2810: Problems with pdflatex in an Italian document
429 * Use ``latex_elements.papersize`` to specify papersize of LaTeX in Makefile
430 * #2988: linkcheck: retry with GET request if denied HEAD request
431 * #2990: linkcheck raises "Can't convert 'bytes' object to str implicitly" error
432 if linkcheck_anchors enabled
433 * #3004: Invalid link types "top" and "up" are used
434 * #3009: Bad rendering of parsed-literals in LaTeX since Sphinx 1.4.4
435 * #3000: ``option`` directive generates invalid HTML anchors
436 * #2984: Invalid HTML has been generated if ``html_split_index`` enabled
437 * #2986: themes/basic/defindex.html should be changed for html5 friendly
438 * #2987: Invalid HTML has been generated if multiple IDs are assigned to a list
439 * #2891: HTML search does not provide all the results
440 * #1986: Title in PDF Output
441 * #147: Problem with latex chapter style
442 * #3018: LaTeX problem with page layout dimensions and chapter titles
443 * Fix an issue with ``\pysigline`` in LaTeX style file (ref #3023)
444 * #3038: ``sphinx.ext.math*`` raises TypeError if labels are duplicated
445 * #3031: incompatibility with LaTeX package ``tocloft``
446 * #3003: literal blocks in footnotes are not supported by Latex
447 * #3047: spacing before footnote in pdf output is not coherent and allows breaks
448 * #3045: HTML search index creator should ignore "raw" content if now html
449 * #3039: English stemmer returns wrong word if the word is capitalized
450 * Fix make-mode Makefile template (ref #3056, #2936)
451
452 1.5b1
453
454 * #2432: Fix unwanted * between varargs and keyword only args. Thanks to Alex
455 Grönholm.
456 * #3062: Failed to build PDF using 1.5a2 (undefined ``\hypersetup`` for
457 Japanese documents since PR#3030)
458 * Better rendering of multiline signatures in html.
459 * #777: LaTeX output "too deeply nested" (ref #3096)
460 * Let LaTeX image inclusion obey ``scale`` before textwidth fit (ref #2865,
461 #3059)
462 * #3019: LaTeX fails on description of C function with arguments (ref #3083)
463 * fix latex inline literals where ``< > -`` gobbled a space
464
465 1.5 final
466
467 * #3069: Even if ``'babel'`` key is set to empty string, LaTeX output contains
468 one ``\addto\captions...``
469 * #3123: user ``'babel'`` key setting is not obeyed anymore
470 * #3155: Fix JavaScript for ``html_sourcelink_suffix`` fails with IE and Opera
471 * #3085: keep current directory after breaking build documentation. Thanks to
472 Timotheus Kampik.
473 * #3181: pLaTeX crashes with a section contains endash
474 * #3180: latex: add stretch/shrink between successive singleline or
475 multipleline cpp signatures (ref #3072)
476 * #3128: globing images does not support .svgz file
477 * #3015: fix a broken test on Windows.
478 * #1843: Fix documentation of descriptor classes that have a custom metaclass.
479 Thanks to Erik Bray.
480 * #3190: util.split_docinfo fails to parse multi-line field bodies
481 * #3024, #3037: In Python3, application.Sphinx._log crushed when the log message
482 cannot be encoded into console encoding.
483
484 Testing
485 -------
486
487 * To simplify, Sphinx uses external mock package even if ``unittest.mock`` exists.