Commit Graph
1208 Commits
Author SHA1 Message Date
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
jfbu 038dd00777 Changes of LaTeX macro names in sphinx.sty to use Sphinx prefix.
modified:   sphinx/texinputs/sphinx.sty
	modified:   sphinx/writers/latex.py
	modified:   tests/test_directive_code.py
2016-03-04 12:46:34 +01:00
Takeshi KOMIYA 0211e19ae6 Fix #2337: Use `\url{URL} macro instead of \href{URL}{URL}` in LaTeX writer 2016-03-04 15:45:28 +09:00
Takeshi KOMIYA 4899214238 Merge branch 'stable' 2016-03-03 23:18:53 +09:00
Takeshi KOMIYA f33e25dbad Fix broken merges 2016-03-03 23:14:16 +09:00
Takeshi KOMIYA dda98c7d53 Merge branch 'useless-test-noise' 2016-03-03 23:01:34 +09:00
Takeshi KOMIYA da94ca5699 Merge branch '2327_toplevel_sectioning' 2016-03-03 20:41:17 +09:00
Takeshi KOMIYA 3939c4d684 Merge branch '2229_suppress_warnings' 2016-03-03 20:40:38 +09:00
Takeshi KOMIYA 92934ebe79 Add `\sphinxAtStartFootnote` macro 2016-03-03 00:19:48 +09:00
Takeshi KOMIYA d91fd33de5 Rename `\internalreference to \crossref` 2016-03-02 22:58:17 +09:00
Takeshi KOMIYA 6efdd07d94 #2351: Fix footnote spacing 2016-03-02 12:22:05 +09:00
Takeshi KOMIYA 110c2b0dbc Fix #2327: Add latex_toplevel_sectioning to switch the top level sectioning of LaTeX document. 2016-03-02 11:18:08 +09:00
Takeshi KOMIYA cfd8b520b6 Fix test_search has been failed 2016-03-01 00:48:58 +09:00
shimizukawa 283bf42ea7 Merge with 'stable'
Conflicts:
	CHANGES
	sphinx/__init__.py
	sphinx/io.py
2016-02-29 23:19:13 +09:00
Takeshi KOMIYA 77df787e81 Fix #2019: the domain objects in search result are not escaped 2016-02-29 10:52:48 +09:00
Takeshi KOMIYA a682ab2e57 Define `\internalreference` macro to redefine the style of references 2016-02-25 22:07:18 +09:00
Takeshi KOMIYA cea81e7a70 Define `\menuselection and \accelerator macros to redefine the style of menuselection` roles. 2016-02-25 20:58:01 +09:00
Takeshi KOMIYA 611aa10f78 Merge pull request #2340 from xuhdev/mathjax-align
Math extension: support alignment of multiple equations for MathJAX.
2016-02-23 12:44:09 +09:00
Takeshi KOMIYA 2441c647d2 Fix #2229: no warning is given for unknown options 2016-02-23 12:23:06 +09:00
Takeshi KOMIYA ae9d786390 Add :confval:suppress_warnings to supress arbitrary warning message 2016-02-23 12:23:06 +09:00
Takeshi KOMIYA 606daeda18 Fix the confval type checker emits warnings if unicode is given to confvals which expects string value 2016-02-23 11:14:58 +09:00
Takeshi KOMIYA 0636d54f6f `sphinx.ext.graphviz` supports graph substituions by locale 2016-02-22 21:32:06 +09:00
Takeshi KOMIYA 3f0843bca0 Add figure_language_filename to customize filename pattern for figure substitutions 2016-02-22 21:32:05 +09:00
Takeshi KOMIYA 1f5aa28db0 Fix #1921: Support figure substitutions by locale 2016-02-22 21:32:05 +09:00
Takeshi KOMIYA 46138ca605 Select an image by similarity if multiple images are globbed by `.. image:: filename.*`
Until this point, it is used the last image returned from glob.glob().
The order of glob.glob() is determined by filesystem.
After this, Sphinx uses filename similarity to determine the image.
2016-02-22 17:06:35 +09:00
Takeshi KOMIYA 7d1b0ec7a1 Refactor tests: Add @skip_if_graphviz_not_found decorator 2016-02-22 16:30:41 +09:00
Takeshi KOMIYA d38b3ff2a0 Merge branch 'stable' 2016-02-20 21:19:51 +09:00
Takeshi KOMIYA f6af2af9a4 Don't show option-role warnings in 1.3.x too 2016-02-20 19:43:39 +09:00
Takeshi KOMIYA 2b93e09c0a Highlighting fallbacks by default
In 423bf7b, I tried to add fallback mechanism to ``python3``. But it breaks
the python3 highlighting on python2 environment.

This adds ``'default'`` to highlighting languages; it works like
``'python3'``, but fallbacks if failed Highlighting. And this removes
try-parse step from ``'python3'`` language. Now, it highlights regardless of
runtime environments.  Thanks to Yoshiki SHIBUKAWA.
2016-02-20 00:44:28 +09:00
Georg Brandl 6101cb4ab6 fix tests 2016-02-19 09:25:48 +01:00
Hong Xu d019d3f9b8 Correct a duplicated test case name in test_ext_math 2016-02-18 18:51:02 -08:00
Hong Xu bb9cde4e32 Math extension: support alignment of multiple equations for MathJAX.
This is a follow-up commit of #2254, which supported alignment of
multiple equations for imgmath and LaTeX output.
2016-02-18 18:49:10 -08:00
Takeshi KOMIYA b780d2207a Fix ValueError is raised if LANGUAGE is empty string 2016-02-17 01:13:00 +09:00
Takeshi KOMIYA 423bf7b5e3 Fix code-block literals raises highlighting warnings by default 2016-02-17 01:07:18 +09:00
Takeshi KOMIYA ae283bc1da Merge branch 'stable' 2016-02-15 11:51:45 +09:00
Takeshi KOMIYA 50f4862b06 Fix some testcase get error with pygments-2.1.1 2016-02-15 11:46:30 +09:00
Takeshi KOMIYA 4452cc3d2e Fix #794: Date formatting in latex output is not localized 2016-02-14 21:48:24 +09:00
Georg Brandl c1b7b6f369 The default highlight language is now Python 3.
References: #2279.

This means that source code is highlighted as Python 3 (which is mostly
a superset of Python 2), and no parsing is attempted to distinguish
valid code.
2016-02-14 09:21:35 +01:00
Takeshi KOMIYA 7a4f914f91 Fix #1286, #2099: Add `sphinx.ext.autosectionlabel` extension to allow reference sections using its title 2016-02-14 16:30:57 +09:00
Takeshi KOMIYA 492980c23e Add testcase for PR #2311 2016-02-14 15:06:28 +09:00
Takeshi KOMIYA 2ec60d5919 Fix #1858: Support numbering custom nodes 2016-02-14 14:49:34 +09:00
Takeshi KOMIYA a391b1a1db Add Sphinx.add_enumerable_node() to add enumerable nodes for numfig feature 2016-02-14 14:49:34 +09:00
Takeshi KOMIYA 9273140ee2 Override figure directive to apply :name: option to the figure itself 2016-02-14 14:49:20 +09:00
Takeshi KOMIYA dca1669b2f Merge pull request #2300 from akruis/feature_autoclass_content_from__new__
Feature: enhance autoclass:: to use the docstring of __new__ if __init__ method's is missing of empty
2016-02-14 14:45:25 +09:00
jfbu 89e8cb3459 Address #2262 (latex): avoid pagebreaks after captions of literal blocks
This could fix https://github.com/sphinx-doc/sphinx/issues/2262

The 1.3.5 Verbatim environment from sphinx.sty has many places allowing
a page break after the caption: from the \smallskip, from the list
environment, and from the \MakeFramed: indeed framed package
documentation explains that it encourages page breaks above it.

The only way to avoid the pagebreaks is to put the caption inside the
environment whic is started by \MakeFramed. However, as this environment
typesets multiple times its contents, we must inhibit within it the
increase of counters (only the literal-block counter is concerned), this
is done thanks to a switch provided by the package amsmath which is
already loaded by sphinx.sty.

	modified:   sphinx/texinputs/sphinx.sty
	modified:   sphinx/writers/latex.py
	modified:   tests/test_directive_code.py
2016-02-10 10:50:52 +01:00
shimizukawa 980653f277 Merge with stable
Conflicts:
	sphinx/environment.py
	sphinx/ext/autodoc.py
	sphinx/writers/latex.py
2016-02-09 23:19:49 +09:00
Takeshi KOMIYA 9ba7cc815c Fix #2292: Some footnotes disappear from LaTeX output 2016-02-08 11:24:07 +09:00
Takeshi KOMIYA 9b958b6dcc Fix #2291: pdflatex "Counter too large" error from footnotes inside tables of contents 2016-02-07 20:04:28 +09:00