|
49 | 49 | # usage in the gallery.
|
50 | 50 | warnings.filterwarnings('error', append=True)
|
51 | 51 |
|
52 |
| -# Strip backslashes in function's signature |
53 |
| -# To be removed when numpydoc > 0.9.x |
54 |
| -strip_signature_backslash = True |
55 |
| - |
56 | 52 | # Add any Sphinx extension module names here, as strings. They can be
|
57 | 53 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
58 | 54 | extensions = [
|
@@ -144,9 +140,7 @@ def _check_dependencies():
|
144 | 140 | warnings.filterwarnings('ignore', category=DeprecationWarning,
|
145 | 141 | module='sphinx.util.inspect')
|
146 | 142 |
|
147 |
| -# missing-references names matches sphinx>=3 behavior, so we can't be nitpicky |
148 |
| -# for older sphinxes. |
149 |
| -nitpicky = sphinx.version_info >= (3,) |
| 143 | +nitpicky = True |
150 | 144 | # change this to True to update the allowed failures
|
151 | 145 | missing_references_write_json = False
|
152 | 146 | missing_references_warn_unused_ignores = False
|
@@ -429,7 +423,7 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
|
429 | 423 | # Sphinx 2.0 adopts GNU FreeFont by default, but it does not have all
|
430 | 424 | # the Unicode codepoints needed for the section about Mathtext
|
431 | 425 | # "Writing mathematical expressions"
|
432 |
| -fontpkg = r""" |
| 426 | +latex_elements['fontpkg'] = r""" |
433 | 427 | \IfFontExistsTF{XITS}{
|
434 | 428 | \setmainfont{XITS}
|
435 | 429 | }{
|
@@ -469,12 +463,7 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
|
469 | 463 | Extension = .otf,
|
470 | 464 | ]}
|
471 | 465 | """
|
472 |
| -latex_elements['fontpkg'] = fontpkg |
473 | 466 |
|
474 |
| -# Sphinx <1.8.0 or >=2.0.0 does this by default, but the 1.8.x series |
475 |
| -# did not for latex_engine = 'xelatex' (as it used Latin Modern font). |
476 |
| -# We need this for code-blocks as FreeMono has wide glyphs. |
477 |
| -latex_elements['fvset'] = r'\fvset{fontsize=\small}' |
478 | 467 | # Fix fancyhdr complaining about \headheight being too small
|
479 | 468 | latex_elements['passoptionstopackages'] = r"""
|
480 | 469 | \PassOptionsToPackage{headheight=14pt}{geometry}
|
|
0 commit comments