Travis A. Everett
b6694c9ca1
Make super call version-agnostic
2017-03-04 14:27:41 -06:00
Travis A. Everett
cabfcbd70d
Fix #3506 : consistently pass node to depart_admonition in HTML writer
2017-03-04 13:40:05 -06:00
jfbu
0882a41f24
Rename and simplify LaTeX macros
...
in particular:
``\sphinxbelowtablecaptionskip`` renamed to ``\sphinxbelowcaptionskip``
as it may be extended in future to usage for captions of literal blocks.
2017-03-04 16:09:49 +01:00
Jellby
68cf06a2ce
Update version (there's still hope)
2017-03-04 12:14:54 +01:00
Jellby
3ce6168958
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
tests/test_build_html.py
2017-03-04 12:03:15 +01:00
jfbu
5f71a2ccb3
Fix #3491 via equalizing vertical spaces for latex tables of all types
...
User interface via macros ``\sphinxtablepre``, ``\sphinxtablepost``
and ``\sphinxbelowtablecaptionskip``.
2017-03-04 00:08:02 +01:00
Takeshi KOMIYA
432ec25d9c
Fix for py3
2017-03-04 01:03:29 +09:00
Takeshi KOMIYA
ffb627db89
Merge branch 'master' into refactor_inventory
2017-03-04 00:13:39 +09:00
Takeshi KOMIYA
7cb655d7cd
Update testcase
2017-03-04 00:02:38 +09:00
Yoshiki Shibukawa
7e178785a7
fix style check warnings
2017-03-03 22:03:16 +09:00
jfbu
3743199576
Remove frame around LaTeX longtable's "Continued on next page" footer
...
refs: PR #3497
2017-03-03 10:08:08 +01:00
jfbu
33bf5410f6
Update tests after 'stable' merge (refs: #3497 )
2017-03-03 10:00:56 +01:00
Takeshi KOMIYA
c1a70397e1
Add InventoryFile.dump()
2017-03-02 23:48:05 +09:00
Takeshi KOMIYA
29254c15f1
Move InventoryFile class to sphinx.util.inventory
2017-03-02 22:51:42 +09:00
Takeshi KOMIYA
69bb12c1e1
intersphinx: Add InventoryFile utility
2017-03-02 17:26:07 +09:00
Takeshi KOMIYA
00e32eeeff
intersphinx: Add ZlibReader utility
2017-03-02 16:45:31 +09:00
Yoshiki Shibukawa
0ef9ac54f1
Add experimental HTML5 writer
2017-03-02 09:56:50 +09:00
jfbu
bc67d4298f
Improve latex tables: fix #1574 and other rendering issues
...
- allow multi-paragraph contents in grid table merged cells
- allow code-blocks in merged cells
- allow generally speaking reST contents allowed in regular
cells to be also allowed in merged cells, whether multirow,
multicolumn, or both.
This is made possible by custom LaTeX macros replacing original
``\multicolumn`` and ``\multirow`` (none of the originals allows
verbatim contents as is needed for code-blocks). They are defined in
bundled LaTeX style file sphinxmulticell.sty. The multicolumn merged
cells give much better results with tabulary as it is coerced into
taking them into account in its automatic width algorithm.
This deprecates use of LaTeX packages eqparbox and multirow, which are
not needed anymore.
New config setting ``latex_use_latex_multicolumn`` (default value False,
currently) as custom Sphinx multicolumn is not fully compatible will all
types of custom table col specs which may be inserted via tabularcolumns
directive. It works best with standard ``|`` column separator.
The default tabulary column specifier has been changed from L
(flushleft) to J (justifying). Internally the column type is called T,
so ``r'\newcolumntype{T}{L}'`` in preamble key recovers the former
behaviour. A ``\Y`` column type is defined which admits one decimal
argument in place of the two integers for ``\X``.
2017-03-01 09:41:30 +01:00
Takeshi KOMIYA
a98818bf06
Merge pull request #3476 from stephenfin/feat/sphinx-setuptools-multiple-builders
...
setuptools: Support multiple builders
2017-03-01 15:30:33 +09:00
Takeshi KOMIYA
0b1178bff7
Merge branch 'stable'
2017-03-01 15:04:28 +09:00
Yoshiki Shibukawa
3502831214
replace internal copy of ElementTree with standard library's ElementTree
2017-03-01 12:01:40 +09:00
Stephen Finucane
2afa0b6627
setuptools: Support multiple builders
...
At present, the 'builder' option for the setuptools integration only
supports a single output format, typically HTML, like so:
[build_sphinx]
builder = man
There is value in being able to specify multiple format, like so:
[build_sphinx]
builder = html man
Make this possible.
Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-02-28 17:30:28 +00:00
Yoshiki Shibukawa
229c5cfa3b
Add warning messages for required EPUB3 metadata
2017-02-28 19:51:39 +09:00
jfbu
3e3d97ff9c
fix test
2017-02-28 08:13:37 +01:00
Dmitry Shachnev
73cd4b038a
Add tests for the previous two changes
2017-02-27 15:48:26 +03:00
Jean-François B
56d446cb42
Merge pull request #3466 from jfbu/lualatexsettings
...
same default settings for lualatex as for xelatex
2017-02-27 12:19:32 +01:00
Takeshi KOMIYA
496ff70f4a
Merge branch 'stable'
2017-02-26 16:01:22 +09:00
Takeshi KOMIYA
64041636d6
Merge pull request #3455 from shibukawa/fix-again/epub-nbsp-issue
...
Fix   is appeared in EPUB docs #3450 again
2017-02-26 15:46:33 +09:00
Takeshi KOMIYA
1d0083edc5
Fix #3421 : Could not translate a caption of tables
2017-02-26 13:47:53 +09:00
Takeshi KOMIYA
ece821e141
Merge branch 'master' into 3421_translate_table_caption
2017-02-26 13:43:36 +09:00
jfbu
40d99445f8
same default settings for lualatex as for xelatex
...
this requires fontspec sufficiently recent (TeXLive 2013 or later)
2017-02-26 00:13:06 +01:00
Yoshiki Shibukawa
1cce97ad5c
Fix   is appeared in EPUB docs #3450 again
2017-02-26 00:29:25 +09:00
Takeshi KOMIYA
fc9a02af3c
Merge pull request #3416 from tk0miya/refactor_literalinclude
...
Refactor literalinclude
2017-02-25 17:10:57 +09:00
Takeshi KOMIYA
20510ef272
Merge branch 'stable'
2017-02-24 02:12:25 +09:00
Takeshi KOMIYA
13a48d330c
Fix #3438 : update timestamp certainly to ensure test condition
2017-02-24 02:12:09 +09:00
Takeshi KOMIYA
675b5f4237
literalinclude directive allows combination of :pyobject: and :lines:
2017-02-22 00:29:24 +09:00
Takeshi KOMIYA
3eb5b2960a
Merge branch 'master' into refactor_literalinclude
2017-02-22 00:18:31 +09:00
Takeshi KOMIYA
89cf56da1c
Merge branch 'master' of github.com:sphinx-doc/sphinx
2017-02-22 00:15:36 +09:00
Takeshi KOMIYA
4d9165a883
Merge branch 'stable'
2017-02-21 16:12:06 +09:00
Takeshi KOMIYA
5bfdc6ae4f
Show warning if :lines: and :emphasize-lines: get out of range
2017-02-21 13:27:37 +09:00
Takeshi KOMIYA
19d2d56e36
Fix IndexBuilder.prune() and load() supports _filenames field
2017-02-21 00:17:38 +09:00
Takeshi KOMIYA
1f973caf06
Fix #3349 : Result of `IndexBuilder.load()
` is broken
2017-02-20 16:33:37 +09:00
jfbu
5bb8bd8930
update test_build_latex.py test of footnote in longtable caption
2017-02-18 16:48:46 +01:00
jfbu
99315fa8e0
update root footnote test
2017-02-18 16:26:00 +01:00
Takeshi KOMIYA
6b29792994
Fix typo
2017-02-18 22:43:27 +09:00
jfbu
9a8e36568d
(latex) hyperlinked footnotes from table bodies
...
Memo: footnotehyper-sphinx LaTeX package incorporates here some fixes
from upstream footnotehyper 0.99. At Sphinx 1.6 il will for simplicity
copy all of upstream footnotehyper 0.99. Then old footnote.sty LaTeX
package is not a dependency of Sphinx anymore.
2017-02-18 12:36:28 +01:00
Takeshi KOMIYA
ce5d506fc4
Add testcases
2017-02-18 14:49:56 +09:00
Takeshi KOMIYA
2ebcbc882e
Refactor testcases
2017-02-18 00:12:54 +09:00
Takeshi KOMIYA
d1b5f7227d
Merge branch 'master' into refactor_literalinclude
2017-02-17 23:37:35 +09:00
Takeshi KOMIYA
88b84a532f
Add testcase for :lineno-match: option
2017-02-17 23:36:12 +09:00
Jean-François B
32817f9efa
Merge pull request #3413 from jfbu/literalincludelines
...
If ``:start-after:`` is used, make ``:lines:`` relative (close : #3412 )
2017-02-17 09:00:40 +01:00
Takeshi KOMIYA
24fd651bbb
Merge pull request #3414 from tk0miya/refactor_epub_builder
...
Refactor epub builder
2017-02-17 02:27:07 +09:00
Takeshi KOMIYA
74a0e3589b
test: Filter ImportWarning from pytest_cov
2017-02-17 02:01:04 +09:00
Takeshi KOMIYA
e1da72b59c
Reduce DeprecationWarnings for regexp
2017-02-17 02:01:04 +09:00
Takeshi KOMIYA
6b7dcf0889
Fix #3421 : Could not translate a caption of tables
2017-02-15 18:08:54 +09:00
Takeshi KOMIYA
c62a0ad765
Merge branch 'stable'
2017-02-15 01:42:20 +09:00
Takeshi KOMIYA
b9bba672ed
Fix #3366 : option directive does not allow punctuations
2017-02-15 01:42:08 +09:00
Jean-François B
a7becf30de
Merge branch 'master' into literalincludelines
2017-02-13 19:38:22 +01:00
Takeshi KOMIYA
f1d4248eea
parselinenos() raises out of range error
2017-02-13 00:04:28 +09:00
Takeshi KOMIYA
6b20c72521
Add testcases for LiteralIncludeReader
2017-02-13 00:04:15 +09:00
Takeshi KOMIYA
f562af06b2
parselinenos() raise errors for "10-1" range
2017-02-12 22:19:18 +09:00
Takeshi KOMIYA
0e9c2e6027
Merge branch 'master' of github.com:sphinx-doc/sphinx
2017-02-12 21:52:52 +09:00
Takeshi KOMIYA
ef1f587344
Merge branch 'stable'
2017-02-12 21:52:20 +09:00
jfbu
1c38710ed2
update latex table tests and CHANGES for PR#3415
2017-02-11 18:02:19 +01:00
jfbu
dcb211f5de
refactor latex table templates to avoid extra vertical spaces (refs #3405 )
...
also, make "center" the default for short table horizontal alignment (it
is already so for longtable)
2017-02-11 18:02:19 +01:00
Takeshi KOMIYA
929e67ffca
Fix parselinenos() could not parse left half open range (cf. "-4")
2017-02-12 00:09:04 +09:00
Takeshi KOMIYA
8f4379ef91
Add testcase for parselinenos
2017-02-12 00:05:27 +09:00
Takeshi KOMIYA
4a72778e06
epub: Refactor around epub_writing_mode
2017-02-11 18:26:54 +09:00
Takeshi KOMIYA
1d3f5c2c55
Fix typo
2017-02-11 17:33:49 +09:00
Takeshi KOMIYA
bbd52dd347
epub: Do not count up tocid on creating nav.xhtml
2017-02-11 17:22:26 +09:00
Takeshi KOMIYA
a051fe2c6d
epub: Add template for tox.ncx
2017-02-11 15:56:19 +09:00
Takeshi KOMIYA
fec760bf94
Add testcases for epub
2017-02-11 15:33:32 +09:00
Takeshi KOMIYA
201ae9c1ac
epub: Use templates to generate EPUB files
2017-02-11 15:33:32 +09:00
Takeshi KOMIYA
37f3050933
latex: Fix assertion error for complex table (refs: #3395 )
2017-02-11 12:19:12 +09:00
Takeshi KOMIYA
fe2daffb4a
Fix #3377 : Add support for Docutils 0.13 `:align:
` option for tables
2017-02-11 10:28:18 +09:00
Takeshi KOMIYA
78c7206dee
Refactor testcase
2017-02-11 10:28:18 +09:00
jfbu
f7e5043949
disambiguate `test_literal_include_lineno_match
`
2017-02-10 17:58:11 +01:00
jfbu
a2338e4838
If `:start-after:
is used, make
:lines:
` relative ( close : #3412 )
2017-02-10 16:55:28 +01:00
Takeshi KOMIYA
82e011cae6
Refactor: split .rst file for text-latex-table
2017-02-10 14:15:47 +09:00
Takeshi KOMIYA
8b2c92d54f
latex: Refactor spanning cells
2017-02-08 00:11:46 +09:00
jfbu
f88e2f23f5
Streamlines newlines in latex output for tables
2017-02-04 16:51:05 +01:00
Takeshi KOMIYA
fdd6f90792
Fix changes in #3381 is lost on merging
2017-02-04 22:29:40 +09:00
Takeshi KOMIYA
976fc326b9
latex: Use templates to render tables
2017-02-04 20:17:49 +09:00
Takeshi KOMIYA
40a957009d
Add testcases for latex tables
2017-02-04 20:09:46 +09:00
Takeshi KOMIYA
4f8b3f94d4
Add testcase for captioned table and longtable
2017-02-04 20:09:46 +09:00
Takeshi KOMIYA
10ae47d7b9
latex: Fix colwidths without :widths: option
2017-02-04 20:09:46 +09:00
Takeshi KOMIYA
1fb13180f3
Merge branch 'master' into move_docref_to_stddomain
2017-01-31 02:09:12 +09:00
Takeshi KOMIYA
238d92beb3
Merge pull request #3313 from tk0miya/collectors
...
Refactor sphinx.environment; Add EnvironmentCollectors
2017-01-31 01:50:28 +09:00
Takeshi KOMIYA
12d6398739
Move doc reference to under standard domain
2017-01-29 19:50:14 +09:00
Takeshi KOMIYA
d33cf04979
Merge branch 'stable'
2017-01-29 18:05:17 +09:00
Takeshi KOMIYA
851172b13b
Reimplement IndexEntriesManager as a collector
2017-01-28 20:44:40 +09:00
Takeshi KOMIYA
e2c7b1db42
Add IndexEntries adapter
2017-01-28 20:43:54 +09:00
Takeshi KOMIYA
d1405e4774
Add sphinx.environment.collectors
2017-01-28 20:43:54 +09:00
Takeshi KOMIYA
1a2488610d
Fix #3370 : the caption of code-block is not picked up for translation
2017-01-26 01:57:22 +09:00
Takeshi KOMIYA
cf2061dfad
Fix flake8 violations
2017-01-26 01:13:17 +09:00
Marco Buttu
ac896790a0
Merge remote-tracking branch 'upstream/master'
2017-01-24 13:20:03 +01:00
jfbu
cf966d4a97
Merge branch 'stable'
2017-01-21 15:21:33 +01:00
Takeshi KOMIYA
bfcb92f6fd
Fix #3285 : autosummary: asterisks are escaped twice
2017-01-21 15:50:41 +09:00
Marco Buttu
e7166bbc08
Removed useless import
2017-01-15 21:13:34 +01:00
Marco Buttu
44732c6aea
compare_version() replaces proper_pyversion()
2017-01-15 21:07:44 +01:00