Commit Graph
1406 Commits
Author SHA1 Message Date
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 c9296ba467 Merge branch 'stable' 2016-05-09 10:11:13 +09:00
Timotheus Kampik 01797faede refactor code/tests: keyword support for search index #2516 2016-05-05 18:09:22 +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
Timotheus Kampik 6f6b28d3e6 refactor, add more tests #2516 2016-05-02 07:54:44 +02:00
Timotheus Kampik a8dabf334d add tests for meta-tag search index generation #2463 2016-05-02 00:11:48 +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 e3def45ffe Use locales as a default value of locale_dirs 2016-04-25 22:25:58 +09: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
shimizukawa 132059a253 merge with stable 2016-04-18 14:41:06 +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
shimizukawa fdaaf020f7 Merge with 'stable' 2016-04-12 22:22:06 +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
Alex Grönholm 0beabaf4cf Fix unwanted * between varargs and keyword only args
The * parameter must only be present when a holder for positional variable arguments is not present.
2016-04-09 17:35:32 +03: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
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
shimizukawa 55a991e241 Merge with 'stable'
Conflicts:
	CHANGES
	sphinx/__init__.py
2016-03-28 22:08:08 +09:00
Jan Duzinkiewicz d8cd3ec4be fix #2379 - Keyword args rendered with type links, as normal parameters (configurable under napoleon_use_keyword option) 2016-03-23 19:30:14 +01:00
Takeshi KOMIYA 478c1d2ea6 Merge branch 'stable' into 1.4-release 2016-03-23 22:01:14 +09:00
Takeshi KOMIYA ceedbb4d51 Skip tests for inheritance_diagram if graphviz not found 2016-03-11 14:41:02 +09:00
Takeshi KOMIYA d86ea47b52 Add `:caption:` option for sphinx.ext.inheritance_diagram 2016-03-11 13:20:05 +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