Commit Graph

7066 Commits

Author SHA1 Message Date
Takeshi KOMIYA
04723c1175 Fix #2479: sphinx.ext.viewcode uses python2 highlighter by default 2016-06-24 11:35:15 +09:00
Rob Ruana
2b60fc2027 Fixes #2688: [Napoleon] Updates to Napoleon documentation to fix intersphinx links and demonstrate PEP 484 type annotations 2016-06-23 15:25:46 -04:00
Takeshi KOMIYA
1e979091f2 Fix #2705: toctree generates empty bullet_list if `:titlesonly:` specified 2016-06-23 11:56:49 +09:00
jfbu
5bd76815ff Added an item about sphinxVerbatim to doc/latex.rst 2016-06-22 22:30:58 +02:00
jfbu
4919406f94 Fix a comment in sphinx.sty 2016-06-22 19:26:11 +02:00
jfbu
3bce72f49b Update a comment in latex.py 2016-06-22 19:12:08 +02:00
jfbu
77ea9daf43 Fix comments in sphinx.sty after merge of 'stable' 2016-06-22 18:56:02 +02:00
jfbu
9002966085 Merge branch 'stable' 2016-06-22 18:42:13 +02:00
jfbu
8feb92dd2d Update CHANGES for PR #2672 2016-06-22 18:33:43 +02:00
Jean-François B
0802e5499a Merge pull request #2672 from jfbu/jfbu_fixincludegraphics
Fix #2671: image directive may lead to inconsistent spacing in pdf
2016-06-22 18:25:46 +02:00
jfbu
a4296a04d1 A bit of refactoring of latex entries in CHANGES for 1.5 2016-06-22 16:15:05 +02:00
Jean-François B
3e99ec91a2 Merge pull request #2704 from jfbu/jfbu_verbatim20
latex: customizable literal blocks
2016-06-22 16:14:26 +02:00
jfbu
f1cc694af7 latex: customizable literal blocks
- new dimensions ``\sphinxverbatimsep`` and ``\sphinxverbatimborder``
  configure the frame width and its separation from contents,

- new ``\ifsphinxverbatimwithframe`` and ``\ifsphinxverbatimwrapslines``
  to customize behaviour of sphinxVerbatim or define wrapper
  environments, such as sphinxVerbatimNoFrame and sphinxVerbatimintable,

- the latter is used in table cells, in place of OriginalVerbatim, thus
  allowing to handle captions for code-blocks in tables (issue #2706).

On this occasion, a bit of refactoring in sphinx Verbatim code,
particularly the caption is typeset in advance to its insertion in
non-breakable from code location (this avoids using the amstext
``\iffirstchoice@`` conditional), and the sphinxVerbatim is usable
without any optional argument (but currently option is always present
and contains at least ``commandchars=\\\{\}`` to activate syntax
highlighting).
2016-06-22 15:57:03 +02:00
Jean-François B
188e669ee1 Merge pull request #2708 from jfbu/jfbu_fixtabularcolspecs
Fix #2707: (latex) the column width is badly computed for tabular
2016-06-22 09:54:44 +02:00
jfbu
4ab9854483 Update CHANGES for PR#2708 2016-06-22 09:36:10 +02:00
Jean-François B
49dd55ed1b Merge pull request #2701 from jfbu/jfbu_restoreUsageOfOriginalVerbatim
latex #2698: restore usage of OriginalVerbatim name for ``<1.5`` compat
2016-06-22 09:20:02 +02:00
jfbu
c88193e3df fix flake8 violation 2016-06-21 23:25:06 +02:00
jfbu
8e45f54d07 Fix #2707: output more compact `*{N}{p{...}}` notation 2016-06-21 23:19:56 +02:00
jfbu
303f163b0a Fix #2707: (latex) the column width is badly computed for tabular
MEMO: the used formula is correct as long as package array is loaded.
Package array (which modifies how the width of vertical rules is counted
in the total width of the tabular) is a dependency of packages tabulary,
and eqparbox, and possibly others which are currently loaded by
sphinx.sty. Even if usage of package tabulary is dropped in future
version of sphinx.sty, there would still remain the dependency on array
via eqparbox, and the formula configured in latex.py will remain
correct.
2016-06-21 23:02:43 +02:00
jfbu
65653db479 latex #2698: restore usage of OriginalVerbatim name for `<1.5` compat 2016-06-20 11:49:08 +02:00
Jean-François B
452c8b162c Merge pull request #2685 from jfbu/jfbu_customizablenotices
latex: fully customizable notices/admonitions
2016-06-20 09:44:43 +02:00
jfbu
12ade10d55 New latex.rst for extended documentation of LaTeX's customizing. 2016-06-20 09:23:41 +02:00
jfbu
e5db9da45d latex: fully customizable notices/admonitions
The refactoring maintains backwards compatibility for the non-customized
usage: but macros such as ``\py@noticesstart@note`` have been removed
and any customization by extension or user will be without effect.
However the ``notice`` environment is still used, hence customization or
modified usage of it will work as before.

The LaTeX writer now uses ``sphinxadmonition``. Currently it is a
wrapper of ``notice`` environment. At some future release ``>1.5`` of
Sphinx it is planned to remove definition of ``notice`` environment, and
rename it directly to ``sphinxadmonition``. In the transition period
both will work, but at end of transition period extensions using only
``notice`` will stop working and those using ``sphinxadmonition`` will
require at least Sphinx ``1.5``.
2016-06-20 09:06:28 +02:00
Jean-François B
033ef35273 Merge pull request #2660 from jfbu/jfbu_removenewfloatdependency
Remove use of latex package newfloat
2016-06-20 07:54:44 +02:00
Jean-François B
58100c2856 Merge pull request #2697 from jfbu/jfbu_reusefloatpackage
Fix #2679: (latex) load package float for 'H' value of 'figure_align'
2016-06-20 07:51:28 +02:00
Takeshi KOMIYA
2fc30b001a Merge pull request #2696 from mitya57/stable
Fix LocalTimeZone.utcoffset return value when SOURCE_DATE_EPOCH is set
2016-06-20 11:30:18 +09:00
Takeshi KOMIYA
c59734c9f4 Fix descriptions of make targets 2016-06-20 10:58:06 +09:00
jfbu
3650663bb3 Fix #2679: (latex) load package float for 'H' value of 'figure_align' 2016-06-19 20:57:38 +02:00
jfbu
01f1696d9b Remove usage by sphinx.sty of latex package newfloat.sty 2016-06-19 16:22:49 +02:00
Dmitry Shachnev
0b2a4e9073 Fix LocalTimeZone.utcoffset return value when SOURCE_DATE_EPOCH is set
Subclasses of tzinfo should follow the parent class and return offset either
as None (when unknown) or as timedelta.

Otherwise datetime.fromtimestamp() will raise a TypeError:
tzinfo.utcoffset() must return None or timedelta, not 'int'.
2016-06-19 16:40:42 +03:00
jfbu
50dbfec05b Remove commented-out lines in latex.py used for review of #2691
Functionality is now at bottom of sphinx.sty. For case of
``\sphinxstylesidebarsubtitle`` from b3d8961, there should probably be a
``\par`` before the ``\smallskip`` but current code is exact transfer of
original from latex.py to sphinx.sty.
2016-06-19 14:35:47 +02:00
jfbu
beeeb56c27 latex `\noindent` for non-inline images, not only if top level 2016-06-19 11:04:45 +02:00
jfbu
c7c07db86b Fix #2694: LaTeX error because of \sphinxstyleliteralintitle 2016-06-18 15:32:50 +02:00
jfbu
4be797ccd3 Merge branch 'stable' 2016-06-18 12:23:20 +02:00
jfbu
6929d546c8 Hard-wrap some long lines in CHANGES
Seems longer lines are more frequent since 1.4. I hard-wrapped at 80
chars the ones I committed which sometimes exceeded 100 chars. Other
long lines remain (one has 108 chars).
2016-06-18 12:22:18 +02:00
Jean-François B
a358f309da Merge pull request #2664 from jfbu/jfbu_safertestforundefined
latex: let sphinx.sty use own \spx@ifundefined for some tests.

the first commit is more aggressive, I leave it in commit history in case it could be useful in future.
2016-06-18 11:57:17 +02:00
jfbu
80a1ad5a5a Fix typo in CHANGES 2016-06-18 10:09:51 +02:00
Jean-François B
1daa065503 Merge pull request #2691 from jfbu/jfbu_enhancelatexcustomizability
Enhance latex text styling customizability
2016-06-18 10:08:42 +02:00
Takeshi KOMIYA
7586297d6d Fix #2684: sphinx.ext.intersphinx crashes with six-1.4.1 2016-06-18 10:27:32 +09:00
jfbu
b3d8961ca8 Enhance latex text styling customizability 2016-06-17 19:48:52 +02:00
Gabi Davar
c2ba7832e2 add --pdb support to setuptools command 2016-06-17 12:41:11 +03:00
jfbu
664e24cf86 Fix #2671: image directive may lead to inconsistent spacing in pdf 2016-06-17 10:08:31 +02:00
jfbu
44bd987314 latex: let sphinx.sty use own \spx@ifundefined for some tests 2016-06-16 18:35:01 +02:00
jfbu
b78d9fec2f latex: let sphinx.sty use own \spx@ifundefined safer test 2016-06-16 18:34:09 +02:00
jfbu
d4cdfc148b Fix typo in CHANGES 2016-06-16 16:09:05 +02:00
Jakob Lykke Andersen
65dddfcd69 C++, fix parsing of function types in other types.
Let all kinds of function parameters be allowed to have a name.
Fixes michaeljones/breathe#267.
2016-06-16 10:54:16 +09:00
jfbu
c2d417a032 Rename SphinxVerbatim to sphinxVerbatim for latex output 2016-06-15 18:34:00 +02:00
jfbu
2cec5a25b2 Merge branch 'stable'
Conflicts:
	sphinx/domains/cpp.py
	sphinx/texinputs/sphinx.sty
	tests/test_build_latex.py
2016-06-15 18:29:58 +02:00
Jean-François B
4cf78e608e Merge pull request #2675 from jfbu/jfbu_macroswithprefix
Fix #2629. Add new config option latex_keep_old_macro_names
2016-06-15 09:31:47 +02:00
jfbu
f16ce14954 Make sphinxShadowBox customizable via three lengths with public names 2016-06-15 08:54:52 +02:00