Takeshi KOMIYA
5b80365409
Merge pull request #2415 from jfbu/jumptorightplace-onstable
...
Fix #2405 and #2414 related to PDF hyperlinks to numbered code listings
2016-04-11 10:53:34 +09:00
jfbu
673222f20a
Added Tests for latex(pdf) links to captioned or named literal blocks
...
As conf.py has now numfig = True, needed to modify accordingly test for
links in html output.
This topic branch fixes #2405 , #2414 , and also makes for latex(pdf)
functional hyperlinks to named references, but only for literal blocks
(code-block or literalinclude).
modified: tests/roots/test-directive-code/caption.rst
modified: tests/roots/test-directive-code/conf.py
new file: tests/roots/test-directive-code/namedblocks.rst
modified: tests/test_directive_code.py
2016-04-10 20:45:59 +02:00
jfbu
a4aefd454a
Remove unneeded \bgroup/\egroup in legacy sphinx.sty definition of Verbatim
...
Indeed, sphinx.sty redefines _environment_ Verbatim, and LaTeX's
environments always are scope-limiting for local assignments.
modified: sphinx/texinputs/sphinx.sty
2016-04-10 18:55:14 +02:00
jfbu
afb83c249f
Make reset of \SphinxVerbatimTitle to \empty explicit in produced LaTeX files
...
modified: sphinx/texinputs/sphinx.sty
modified: sphinx/writers/latex.py
2016-04-10 18:55:13 +02:00
Takeshi KOMIYA
7f0aa57fcd
Merge pull request #2416 from lehmannro/unnitpick
...
Do not rebuild when nitpick mode has been changed.
2016-04-10 21:00:46 +09:00
Takeshi KOMIYA
aaac328336
Update CHANGES for PR#2396
2016-04-10 20:52:14 +09:00
Ionel Cristian Mărieș
062a9f935e
Seems that e6a5a3a92e
forgot to update this file.
2016-04-10 20:51:40 +09:00
Takeshi KOMIYA
84160b3570
Merge pull request #2396 from ionelmc/patch-2
...
Fix something I don't understand
2016-04-10 20:50:16 +09:00
Takeshi KOMIYA
9df7783ba2
Fix #2395 : Sphinx crashs if unicode character in image filename
2016-04-10 20:25:25 +09:00
jfbu
267c266561
Fix comment
...
modified: sphinx/writers/latex.py
2016-04-07 11:56:43 +02:00
jfbu
261ff1a9d2
Enable pdf hyperlinks to named literal-blocks without caption.
...
This is tango between latex.py and sphinx.sty to handle PDF hyperlinks
to literal-blocks (both code-block and literalinclude) either with name
or caption (then numref can be used) or both.
modified: sphinx/texinputs/sphinx.sty
modified: sphinx/writers/latex.py
This test file is now back to original.
modified: tests/test_directive_code.py
2016-04-07 11:27:33 +02:00
jfbu
238a3346d9
Merge branch 'stable' into jumptorightplace-onstable
2016-04-06 18:55:15 +02:00
Takeshi KOMIYA
174e61fdb2
Merge branch 'stable'
2016-04-06 21:22:04 +09:00
Takeshi KOMIYA
95e6e81de7
Update CHANGES for #2425 and #2417
2016-04-06 21:20:20 +09:00
Takeshi KOMIYA
c8facce3de
Fix figure directive crashes if non paragraph item is given as caption
2016-04-06 21:19:25 +09:00
Takeshi KOMIYA
c9e625eabc
Merge pull request #2425 from rpluem/date_time_fix_stable
...
Time formats no longer allowed in today_fmt
2016-04-06 21:18:27 +09:00
Jakob Lykke Andersen
e2830e5d7e
C++, fix crash on duplicate declarations.
...
Fixes sphinx-doc/sphinx#2413 .
2016-04-06 14:35:15 +09:00
Takeshi KOMIYA
36a0222dab
Merge pull request #2424 from sphinx-doc/sphinx-mandatory
...
Clear up Pygments is mandatory
2016-04-05 23:39:44 +09:00
Ruediger Pluem
1c48d18d9a
Tests for 22dce02bec1e97b00fa5dde2479ab498784a866c..1754473c532d300ce517460d2ff467c312ae5510
2016-04-05 12:20:10 +02:00
Robert Lehmann
ca900593c0
Clear up Pygments is mandatory
...
While Pygments is not required for other builders, it is *always* used in the HTML builder.
2016-04-05 11:32:16 +02:00
Ruediger Pluem
1754473c53
Add sanity check for the tzinfo attribute to prevent later failures.
...
If we do not have it, we cannot do time formats.
Improve comments as well.
2016-04-05 11:15:43 +02:00
Ruediger Pluem
96af4a598f
No functional change: Wrap too long lines to fix Travis build errors
2016-04-05 11:14:39 +02:00
Ruediger Pluem
22dce02bec
Sphinx 1.3.x allowed to specify time formatters in today_fmt like %H and %M.
...
Allow these time formatters again.
This requires to use babel.dates.format_datetime instead of babel.dates.format_date
for formating. The approach of babel compared to ustrftime to use different functions
for time, date and datetime formating creates an ambiguousness for translating %c, %x, %X
from ustrftime to babel. Hence we look out for %x and %X to use the appropriate babel
function in this case.
Change of behaviour: People using the short, medium, long or full babel formats in
today_fmt will now get the respective datetime format instead of just the date format.
2016-04-05 11:11:59 +02:00
Robert Lehmann
d4dd6a60b7
Do not rebuild when nitpick mode has been changed.
2016-04-04 13:20:25 +02:00
jfbu
5cad1481aa
Fix line too long issue reported by Travis CI
...
modified: sphinx/writers/latex.py
2016-04-04 10:14:20 +02:00
jfbu
ad1cc969d3
Fix two issues in latex.py reported by Travis CI
...
modified: sphinx/writers/latex.py
2016-04-04 10:10:05 +02:00
jfbu
d41caf9610
Merge branch 'stable' into jumptorightplace-onstable
2016-04-04 08:11:20 +02:00
Takeshi KOMIYA
1313726fd6
Fix #2412 : hyperlink targets are broken in LaTeX builder
2016-04-04 11:02:09 +09:00
jfbu
a124a39625
Remove unneeded test "if 'ids':" from previous commit.
...
modified: sphinx/writers/latex.py
2016-04-03 16:50:47 +02:00
jfbu
a1647b6bb9
Fix broken numeric reference in PDF hyperlinks to "Listing " code-blocks
...
The `\label` is now inserted into the caption on top of the Verbatim,
and `\ref` will work as expected. No need for `\phantomsection`.
modified: sphinx/writers/latex.py
modified: tests/test_directive_code.py
2016-04-03 16:31:35 +02:00
jfbu
6123ea49e5
Fix #2405 : numref link in PDF jumps to the wrong location
...
The hypertarget insertion by the LaTeX writer for literal blocks is
moved from depart_container to visit_caption.
modified: sphinx/writers/latex.py
2016-04-03 15:14:13 +02:00
Takeshi KOMIYA
c96bf4f6e7
Merge pull request #2411 from jfinkels/patch-1
...
Corrects sentence describing 'default' theme
2016-04-03 10:31:57 +09:00
Takeshi KOMIYA
d35ccb9b4c
The default format of today_fmt
and html_last_updated_fmt
is back to strftime format again
...
`html_last_updated_fmt` is commonly used for non date formatting. But
LDML is difficult to represent them from its characteristics.
Now we moved to strftime format again (ref: #2394 ).
2016-04-03 10:25:32 +09:00
jfinkels
2437afca33
Corrects sentence describing 'default' theme
2016-04-02 13:39:32 -04:00
shimizukawa
5e0b542e62
Fix #2408 : dummy builder not available in Makefile and make.bat
2016-04-02 22:27:41 +09:00
shimizukawa
0c33d7df78
import mock from util instead of directly.
2016-04-02 22:15:13 +09:00
Takeshi KOMIYA
8ab06530be
Fix #2394 : Sphinx crashes when html_last_updated_fmt is invalid
2016-04-01 11:20:30 +09:00
Jakob Lykke Andersen
42395a177a
C++, also support 'extern' for functions.
...
Thanks to Victor Zverovich.
2016-03-31 13:40:02 +09:00
Takeshi KOMIYA
68f3887428
Update CHANGES
2016-03-31 10:37:51 +09:00
Jakob Lykke Andersen
c6ba3093fe
C++, make prefixes of type declarations better.
...
Type declarations are now using the prefixes ``typedef``, ``using``, and ``type``,
depending on the style of declaration.
See also michaeljones/breathe#243 and michaeljones/breathe#242 .
2016-03-30 16:55:02 +09:00
Jakob Lykke Andersen
dca9e59ea5
C++, add support for 'extern' and 'thread_local'.
...
Thanks to michaeljones/breathe#243 for noticing the lack of 'extern' support.
2016-03-30 16:19:03 +09:00
Jakob Lykke Andersen
2b224bec5f
C++, tagnames for Breathe.
...
See michaeljones/breathe#242 .
2016-03-30 14:39:42 +09:00
Takeshi KOMIYA
150ce21fb3
Fix broken testcase caused by translation
2016-03-29 12:40:42 +09:00
Takeshi KOMIYA
0d807a62cc
Remove duplicated testcase for latex builder
...
test_numref_on_bable_disabled and test_numref_with_language_el are mainly
used for testing babel (not for numref). But now we added enough testcases
for babel.
2016-03-29 12:21:58 +09:00
Ionel Cristian Mărieș
85275a5859
Seems that e6a5a3a92e
forgot to update this file.
2016-03-29 03:07:36 +03:00
shimizukawa
3742e887c2
update checklist to remind tx pull -a -f
for final major release.
2016-03-28 22:48:09 +09:00
shimizukawa
57512bf257
Update translations for 1.4 release. Sorry I forgot to update these.
2016-03-28 22:39:59 +09:00
shimizukawa
55a991e241
Merge with 'stable'
...
Conflicts:
CHANGES
sphinx/__init__.py
2016-03-28 22:08:08 +09:00
shimizukawa
0569366f03
Bump version
2016-03-28 22:05:43 +09:00
shimizukawa
27fb3b6be3
Bump to 1.4 final
2016-03-28 21:51:00 +09:00