1205 Commits

Author SHA1 Message Date
jfbu
96e30b0d0e Fix #2593 (continued): allow figure captions in LaTeX tabulary tables 2016-06-05 14:21:21 +09:00
Takeshi KOMIYA
bb6bb7ded6 Fix #2593: latex crashes if any figures in the table 2016-06-05 14:21:21 +09:00
Takeshi KOMIYA
cdb621440c Merge pull request #2613 from shibukawa/feature/extension-blacklist-to-stable
add extension blacklist to avoid error when loading deprecated extensions
2016-06-03 21:40:40 +09:00
Takeshi KOMIYA
1b939042df Make testcases robust 2016-06-03 00:30:39 +09:00
Yoshiki Shibukawa
88bf4373c7 add extension blacklist to avoid error when loading deprecated extensions 2016-06-02 19:19:46 +09:00
Takeshi KOMIYA
24beece2a3 Fix combination of figure directive options; width, figwidth and align (ref: #2595) 2016-05-30 13:13:38 +09:00
Takeshi KOMIYA
d7113586f1 Fix style-checker errors 2016-05-29 17:16:46 +09:00
Takeshi KOMIYA
b74b9cb585 Fix #2383: The generated footnote by latex_show_urls overflows lines 2016-05-28 14:46:13 +09:00
Takeshi KOMIYA
5cdf7a9a33 Adjust spacing in numref role (ref: #2382) 2016-05-28 13:23:37 +09:00
Takeshi KOMIYA
c64a23f3c6 Add testcase for #2382 2016-05-28 12:57:46 +09:00
Takeshi KOMIYA
9cd5ba994c Fix #2445: rst_prolog and rst_epilog affect to non reST sources 2016-05-25 21:25:04 +09:00
Takeshi KOMIYA
89360dd3f1 Add testcase for rst_prolog and rst_epilog 2016-05-25 21:24:31 +09:00
Takeshi KOMIYA
37882b9c77 Fix #2518: intersphinx_mapping disallows non alphanumeric keys 2016-05-23 12:14:56 +09:00
Takeshi KOMIYA
9546fdaf5e Fix `sphinx.ext.intersphinx crashes if non-string value is used for key of intersphinx_mapping` 2016-05-23 12:11:10 +09:00
Jakub Wilk
74b15cc64c Fix format string in assert_in()/assert_not_in() 2016-05-16 17:19:53 +02:00
Takeshi KOMIYA
20719f0b00 Merge pull request #2503 from JojoBoulix/stable
Extend SOURCE_DATE_EPOCH support
2016-05-05 22:15:19 +09:00
Takeshi KOMIYA
7c0b7e1ff1 Fix #2526: LaTeX writer crashes if the section having only images 2016-05-05 16:17:38 +09:00
Takeshi KOMIYA
885653a35d Fix the caption of figure is always put on center even if `:align:` was specified 2016-05-04 01:27:54 +09:00
Takeshi KOMIYA
4789ef899f Fix #2492: Figure directive with :figwidth: generates incorrect Latex-code 2016-05-04 01:27:31 +09:00
Alexis Bienvenüe
6509130ff2 Code enhancements (thanks to mitya57 and tk0miya):
* use tuple instead of list
* compile regex to find copyright year
* enclose test inside try/finally
2016-05-02 09:57:06 +02:00
Alexis Bienvenüe
7a89015a54 Corrects copyright year using SOURCE_DATE_EPOCH if set 2016-04-28 23:37:36 +02:00
Takeshi KOMIYA
d38915e2a5 Fix intersphinx fails if mapping URL contains any port 2016-04-25 11:08:03 +09:00
Takeshi KOMIYA
ad738a0978 Fix #2309: Could not refer "indirect hyperlink targets" by ref-role 2016-04-24 13:57:32 +09:00
Takeshi KOMIYA
e48335097c Fix broken testcase 2016-04-22 18:40:41 +09:00
Takeshi KOMIYA
c289a35c1b Fix #2397: Setup shorthandoff for turkish documents 2016-04-16 18:28:15 +09:00
Takeshi KOMIYA
f15bdce1db Fix testcase 2016-04-16 16:11:48 +09:00
Takeshi KOMIYA
c3fe96f6fc Remove debug print 2016-04-14 12:03:10 +09:00
Takeshi KOMIYA
3206ccbae0 sphinx.ext.mathbase: Refactor LaTeX output 2016-04-14 10:39:33 +09:00
Takeshi KOMIYA
39396a4b1e Fix #2370: the equations are slightly misaligned in LaTeX 2016-04-14 10:37:54 +09:00
Takeshi KOMIYA
9a7bbb0947 Add image file for testcase of #2395 2016-04-13 21:30:45 +09:00
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
Takeshi KOMIYA
9df7783ba2 Fix #2395: Sphinx crashs if unicode character in image filename 2016-04-10 20:25:25 +09: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
Ruediger Pluem
1c48d18d9a Tests for 22dce02bec1e97b00fa5dde2479ab498784a866c..1754473c532d300ce517460d2ff467c312ae5510 2016-04-05 12:20:10 +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
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
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
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
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
Takeshi KOMIYA
478c1d2ea6 Merge branch 'stable' into 1.4-release 2016-03-23 22:01:14 +09:00
shimizukawa
d76e250ca3 fix for 'make style-check' 2016-03-06 21:37:04 +09:00
Takeshi KOMIYA
549b6e27df Fix #1498: manpage writer: don't make whole of item in definition list bold if it includes strong node 2016-03-06 17:49:49 +09:00
Takeshi KOMIYA
b0e781c745 Fix broken tests 2016-03-06 16:24:59 +09:00
Takeshi KOMIYA
9d82cad19d Merge pull request #2297 from jfbu/literalblockcaption
LaTeX captions of literal blocks now glued to framed verbatim
2016-03-06 15:01:52 +09:00
jfbu
12c6c9dad2 Fix broken test_literalinclude_caption_latex
modified:   tests/test_directive_code.py
2016-03-04 13:11:00 +01:00