Commit Graph

2328 Commits

Author SHA1 Message Date
Takeshi KOMIYA
adbda06eca Fix make_app() fixture fails to rollback registered roles on creating multiple apps 2018-05-17 00:42:48 +09:00
Takeshi KOMIYA
e675ad2ec9 Enable math_block node rendering by default (without HTML builders) 2018-05-17 00:42:22 +09:00
Takeshi KOMIYA
4e04bff4f5 Enable math node rendering by default (without HTML builders)
Nowadays, math elements (inline and block level equations) are
integrated into reST spec by default.  But, in Sphinx, they are
not enabled by default.  For this reason, users have to enable
one of math extensions even if target builder supports math
elements directly.

This change starts to enable them by default.  As a first step,
this replaces math node and its structure by docutils based one.
2018-05-15 22:27:49 +09:00
Takeshi KOMIYA
c6050a3d1e Fix latex: deeply nested enumerated list which is beginning with non-1 causes LaTeX engine crashed 2018-05-15 01:48:12 +09:00
Takeshi KOMIYA
bc19cf72c9 Merge branch '1.7' 2018-05-14 01:04:45 +09:00
Takeshi KOMIYA
e4410b6ab0 Merge branch '1.7' into 4913_literal_block_under_bullet_list 2018-05-12 22:35:55 +09:00
Takeshi KOMIYA
86f179e312 Merge pull request #4941 from tk0miya/4035_rename_viewcode_import
Rename viewcode_import to viewcode_follow_imported_members (refs: #4035)
2018-05-12 11:27:17 +09:00
Takayuki SHIMIZUKAWA
79650f5827 fix #4938: i18n doesn't handle node.title correctly (#4939) 2018-05-11 20:51:07 +09:00
Julien Palard
6dcdce685d i18n: Ignore dot-directories like .git/ in LC_MESSAGES/.
This avoids warnings when find_catalog_source_files returns files
found in .git/ like:

WARNING: Start of line didn't match any expected keyword./refs/heads/freezed-library/colorsys.mo
WARNING: Problem on line 1: 0000000000000000000000000000000000000000 032a00a7391ec8a155bbc54d66ba72fb1b7bdbf1 Julien Palard <julien@palard.fr> 1521582790 +0100 branch: Created from freezed/library/colorsys.po

`.po` files can typically reside in .git/refs/heads/ if some branches
name end with .po, in which case they contain a SHA1, not
translations, leading to warnings.
2018-05-08 11:02:14 +02:00
Takeshi KOMIYA
5c56c99dfd Fix #4913: i18n: literal blocks in bullet list are not translated 2018-05-07 22:25:42 +09:00
Takeshi KOMIYA
4c3e757ad7 refactor: Reduce DeprecationWarnings 2018-05-07 21:37:54 +09:00
Takeshi KOMIYA
fad03ea050 Rename viewcode_import to viewcode_follow_imported_members (refs: #4035) 2018-05-07 21:22:13 +09:00
Takeshi KOMIYA
f2af9ff97c Merge branch 'master' into fix_4035_2 2018-05-06 23:27:51 +09:00
Takeshi KOMIYA
f6259c696b Adjust MAX_CITATION_LABEL_LENGTH 2018-05-03 23:46:25 +09:00
Takeshi KOMIYA
8bc136a9cb Use \sphinxcite instead of \cite 2018-05-03 20:58:30 +09:00
Takeshi KOMIYA
c1b87ff0d3 Suppress braces surround bibitem 2018-05-03 20:57:29 +09:00
Takeshi KOMIYA
92d8935df0 latex: Use `\cite for citation references instead \hyperref` 2018-05-03 20:57:29 +09:00
Takeshi KOMIYA
82a123f1d4 Add testcase for thebibliography 2018-05-03 20:50:24 +09:00
Takeshi KOMIYA
8febb09373 Merge branch 'master' into refactor_latex_footnotes 2018-05-03 11:40:44 +09:00
Takeshi KOMIYA
cbf4ee24f9 Fix #4811: The files under html_static_path are excluded from source 2018-05-03 11:07:14 +09:00
Takeshi KOMIYA
0ea06e40ca Merge branch 'master' into 789_escape_braces_on_samp_role 2018-05-03 01:32:35 +09:00
Takeshi KOMIYA
d8f4e47fc8 Fix broken testcase caused by path separator 2018-05-02 02:13:00 +09:00
Takeshi KOMIYA
9d4b3ca0eb Merge pull request #4879 from tk0miya/refactor_OptionParser
Let docutils know the location of ``docutils.conf`` for Sphinx
2018-05-01 00:32:19 +09:00
Takeshi KOMIYA
eba8792355 Merge pull request #4866 from goerz/ext_graphviz_css
Wrap graphviz diagrams in <div class="graphviz">
2018-04-29 22:22:29 +09:00
Takeshi KOMIYA
a31e7beee7 Merge branch 'master' into refactor_latex_footnotes 2018-04-29 21:09:46 +09:00
Takeshi KOMIYA
a68f772d7a Merge branch 'master' into refactor_config 2018-04-28 13:05:47 +09:00
Takeshi KOMIYA
b165ade6b0 Rename Config.read_from_py() to Config.read() 2018-04-28 13:05:28 +09:00
Takeshi KOMIYA
622119a9d4 Fix #789: `:samp:` role supports to escape curly braces with backslash 2018-04-28 12:56:01 +09:00
Ashley Whetter
44da51a564 Plugins can find source code for viewcode
Fixes #4035
2018-04-24 14:45:16 -07:00
Jean-François B
cb4da73412 Merge pull request #4868 from tesch1/feat-4830
proposed enhancement #4830
2018-04-24 14:00:16 +02:00
Takeshi KOMIYA
5897d45cc6 Merge branch 'master' into refactor_config 2018-04-22 18:56:04 +09:00
Takeshi KOMIYA
bafeb3eb18 Merge branch '1.7' 2018-04-22 18:19:29 +09:00
Takeshi KOMIYA
81946e423a Let docutils know the location of `docutils.conf` for Sphinx 2018-04-22 17:16:12 +09:00
Takeshi KOMIYA
61bf7c44df Fix #4717: latex: Compilation for German docs failed with LuaLaTeX and XeLaTeX 2018-04-21 18:47:11 +09:00
Michael Goerz
4a2b227376 Allow imgcls as class for SVG Graphviz <object>
For consistency, the `<object>` tag for the SVG output of a
inheritance-diagram should have the same `class="inheritance"` attribute
that the corresponding `<img>` tag for the PNG format has. This allows
to define the CSS attribute

    object.inheritance {
        max-width: 100%;
    }

which for SVG (unlike PNG) actually works and makes sense.

Added a test for inheritance-diagrams in SVG.
2018-04-21 00:59:27 -04:00
Michael Goerz
b689fb1c12 Wrap graphviz diagrams in <div class="graphviz">
The graphviz extension is modified to wrap the `<img>` and `<object>`
tags it creates for diagrams in the png and svg formats in an additional
`<div class="graphviz">...</div>` tag. This allows to apply additional
CSS styling to the the diagrams that cannot be applied to `<img>` and
`<object>` directly. Most notably,

    div.graphviz {
      overflow: auto;
    }

would be a useful style that the standard themes might consider.

In any case, it would allow users to add custom CSS code to their
project that gets around the problems with inheritance-diagrams
discussed in https://github.com/sphinx-doc/sphinx/issues/4865

The tests for the `grahviz` and `inheritance_diagram` have been modified
to test for the presence of the additional `<div>` tag.

Closes #4865
2018-04-20 12:43:12 -04:00
Takeshi KOMIYA
86df550c66 Fix short underline 2018-04-20 23:16:41 +09:00
Takeshi KOMIYA
6977270b66 Fix #4850: latex: footnote inside footnote was not rendered 2018-04-20 21:39:42 +09:00
Michael Tesch
e368ac21ef proposed enhancement #4830 2018-04-20 13:13:00 +02:00
Jon Dufresne
365c93f227 Update all pypi.python.org URLs to pypi.org
For details on the new PyPI, see the blog post:

https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-04-18 19:51:48 -07:00
Takeshi KOMIYA
96c5605374 Merge branch '1.7' 2018-04-18 11:35:10 +09:00
Takeshi KOMIYA
ef10ca11fc Fix toctree directive tries to glob for URL having query_string 2018-04-16 16:01:59 +09:00
Takeshi KOMIYA
9826d49cbd Add testcase for toctree directive 2018-04-15 13:38:58 +09:00
Takeshi KOMIYA
b1a0e8062f Fix #4767: html: search highlighting breaks mathjax equations 2018-04-15 00:30:53 +09:00
Takeshi KOMIYA
c0c9a41400 Merge pull request #4834 from lamby/895553-sphinx-please-make-the-set-object-description-reproducible
Ensure set object descriptions are reproducible.
2018-04-14 21:15:19 +09:00
Chris Lamb
0ffc27b7fa Ensure the set object description is reproducible.
Whilst working on the Reproducible Builds effort [0], we noticed
that sphinx could generate output that is not reproducible.

In particular, the rendering of `set` objects in default arguments
and elsewhere is currently non-determinstic. For example:

    class A_Class(object):
        a_set = {'a', 'b', 'c'}

Might be rendered as any of:

     {'a', 'b', 'c'}
     {'a', 'c', 'b'}
     {'b', 'a', 'c'}
     {'b', 'c', 'a'}
     {'c', 'a', 'b'}
     {'c', 'b', 'a'}

Patch attached that sorts the contents of sets whilst rendering.
This is parallel to the `dict` key sorting.

This was originally filed in Debian as #895553 [1].

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/895553

Signed-off-by: Chris Lamb <lamby@debian.org>
2018-04-14 10:30:54 +01:00
Takeshi KOMIYA
557514330f Merge branch '1.7' 2018-04-14 15:46:31 +09:00
Takeshi KOMIYA
af4647c492 Merge branch '1.7' 2018-04-14 15:43:38 +09:00
Takeshi KOMIYA
5ef8da518f Fix #4784: latex_show_urls assigns incorrect footnote numbers 2018-04-12 23:40:15 +09:00
Takeshi KOMIYA
31d6576871 Merge pull request #4822 from tk0miya/4543_fix_testcase_for_partialmethod
Fix #4543: testcase for partialmethod is failed with py3.6.5
2018-04-09 01:56:27 +09:00