Commit Graph

1660 Commits

Author SHA1 Message Date
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
Takeshi KOMIYA
e6cd347f6c Merge branch 'stable' 2017-01-16 01:31:57 +09:00
Takeshi KOMIYA
067044211e Fix #3158: too much space after captions in PDF output 2017-01-15 22:02:15 +09:00
Marco Buttu
960f889a2c Added pyversion option for doctest (issue 3303)
Code, tests and documentation.
2017-01-15 10:27:34 +01:00
Jakob Lykke Andersen
ccd6bf4a0c C++, fix refs to operator() functions.
Fixes sphinx-doc/sphinx#2952.
2017-01-15 14:36:29 +09:00
Marco Buttu
19298dec33 Added pyversion option for doctest (issue 3303) 2017-01-14 18:57:19 +01:00
Jakob Lykke Andersen
e3cb2bbcf1 C++, at option tparam-line-spec for templates.
Make it possible to render template parameters on separate lines.
2017-01-15 00:52:08 +09:00
Marco Buttu
160b9a5fd0 Added pyversion option for doctest (issue 3303) 2017-01-13 22:36:17 +01:00
shimizukawa
a11218151f fix nits 2017-01-13 00:24:10 +09:00
shimizukawa
2254da3782 refs #3329: emit warnings if po file is invalid and can't read it. Also writing mo too. 2017-01-13 00:11:35 +09:00
Takeshi KOMIYA
81a4248df9 Merge pull request #3323 from gbaier/apidoc_extensions
apidoc takes extension options
2017-01-12 23:42:56 +09:00
Gerald Baier
d9ae4ed81e implementing PR comments 2017-01-12 08:52:32 +01:00
Takeshi KOMIYA
603cf3a84a Merge branch 'master' into split_app.status_iterator 2017-01-12 11:38:12 +09:00
Gerald Baier
2402fd7ebe apidoc takes extension options 2017-01-11 11:51:23 +01:00
Takeshi KOMIYA
de3d03a7b5 Fix testcase 2017-01-10 01:06:57 +09:00
Takeshi KOMIYA
8cbe1efe8d Merge branch 'stable' 2017-01-10 01:04:21 +09:00
shimizukawa
b5530629a9 pytest: update by reviewing
* remove 'specific_srcdir' feature
* simplify 'shared_result' feature
* rename 'AppWrapper' into 'SphinxTestAppWrapperForSkipBuilding'
2017-01-09 17:41:47 +09:00
shimizukawa
561abdd164 pytest optimizatoin:
- remote using deprecated decorators
- remove gen_with_app
- remove yield testing
- remove pytest warnings
- refactoring
2017-01-08 15:14:38 +09:00
Takeshi KOMIYA
929683df27 Sphinx.status_iterator() is now deprecated 2017-01-07 18:43:32 +09:00
Takeshi KOMIYA
ae24524d5f Drop debug2() (refs: #3304) 2017-01-07 15:03:16 +09:00
shimizukawa
402a11aeba pytest: remove deprecated test util functions 2017-01-07 02:17:58 +09:00
shimizukawa
4c22cd10ca Merge branch 'stable' 2017-01-07 02:14:29 +09:00
shimizukawa
89e1df0bba pytest: nits 2017-01-06 23:10:52 +09:00
shimizukawa
baaef9146d pytest: remove deprecated with_app decorator functions 2017-01-06 01:14:47 +09:00
shimizukawa
b3c207dd49 fix 2017-01-06 00:50:02 +09:00
shimizukawa
f962ad67d2 pytest: remove deprecated raises and raises_msg assert functions 2017-01-06 00:46:42 +09:00
shimizukawa
f566f003f3 pytest: nits 2017-01-06 00:26:31 +09:00
shimizukawa
d0a33dd785 pytest: remove deprecated with_tempdir decorator 2017-01-06 00:26:01 +09:00
shimizukawa
380dd23d9f pytest: remove repr_as testing feature that avoids long annoying log for test generator feature on nose. In contrast, pytest does not produce such output. So repr_as is not needed anymore. refs #1785 2017-01-05 23:43:16 +09:00
shimizukawa
ad6d731ecf pytest: remove unused testing feature for a while. 2017-01-05 23:36:36 +09:00
Takeshi KOMIYA
431d865d4a Drop deprecated options for html builder 2017-01-05 13:51:55 +09:00
Takeshi KOMIYA
5d715cb148 Drop deprecated options for latex builder 2017-01-05 13:48:41 +09:00
Takeshi KOMIYA
ea856fd909 Drop LDML support of format_date() 2017-01-05 13:47:19 +09:00
shimizukawa
5b7d237db3 pytest migration 2017-01-04 00:59:30 +09:00
Takeshi KOMIYA
15b46598e2 logger.warning() supports node as location parameter 2017-01-02 12:59:51 +09:00
Takeshi KOMIYA
e755a8c004 Use loggers 2017-01-02 12:59:51 +09:00
Takeshi KOMIYA
6bf201533a Fix style-check violation 2017-01-02 12:59:51 +09:00
Takeshi KOMIYA
aa65a19466 Add sphinx.util.logging.SafeEncodingWriter 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
ad871e5a48 Add sphinx.util.logging.pending_warnings() 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
d8ad3d063c sphinx.util.parallel supports logging in child workers 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
70d6a560f2 sphinx.util.logging supports colorized log 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
7358512f11 logging.info() supports verbosity filter by app.verbosity 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
284ace16bf Now sphinx.util.logging supports info and other logs 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
3698fe2b0f Add testcase for sphinx.util.logging 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
85dcd7baa8 Use sphinx.util.logging instead app.warn() 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
6d4e645409 Add sphinx.util.logging 2017-01-02 12:59:50 +09:00
Takeshi KOMIYA
bd382528d0 Merge branch 'stable' 2016-12-25 12:40:27 +09:00
Takeshi KOMIYA
01736bb397 Fix test_latex failed if stylefiles not found (refs: #3264) 2016-12-24 19:30:32 +09:00
jfbu
3099150a0d Merge branch 'stable' 2016-12-17 16:50:35 +01:00
Takeshi KOMIYA
3b9aee43a2 Fix #185: References to section title including raw node has broken 2016-12-17 17:29:03 +09:00
Takeshi KOMIYA
ab00f5fe49 Merge branch 'stable' 2016-12-17 15:59:13 +09:00
Takeshi KOMIYA
9fc53cecf7 Reduce deprecation warnings (refs: #3192) 2016-12-15 17:15:49 +09:00
Takeshi KOMIYA
ade2603767 Use docutils' Directive class instead compat module 2016-12-14 16:50:43 +09:00
Takeshi KOMIYA
e645ea59db Merge branch 'stable' 2016-12-14 00:12:23 +09:00
shimizukawa
5fc8d3db91 Fix: #2469: Ignore updates of catalog files for gettext builder. Thanks to Hiroshi Ohkubo. 2016-12-12 23:28:00 +09:00
Takeshi KOMIYA
92a9c653f7 Merge branch 'stable' 2016-12-12 22:35:55 +09:00
Jean-François B
0b1130a7cb Merge pull request #3206 from jfbu/fixlatexhyperlink
Fix #3200: 1.5 LaTeX: xref inside desc_name not allowed
2016-12-11 14:50:44 +01:00
shimizukawa
124938c9ae Merge branch '1.5-release' into stable 2016-12-10 11:56:22 +09:00
Rob Ruana
f4716ed3a3 [Napoleon] adds xref test data for pull request #3168 2016-12-09 14:13:29 -08:00
jfbu
9d1f95c9a0 fix 3 line too long style-check errors 2016-12-08 22:30:48 +01:00
jfbu
6dcf43c826 fix pattern string in test_inheritance_diagram_latex for CI testing 2016-12-08 22:14:48 +01:00
jfbu
18e01c8341 fix one more test failure and fix previous fix test (missing u) 2016-12-08 22:05:08 +01:00
jfbu
2e9ee59ee9 fix tests for latex build 2016-12-08 21:43:04 +01:00
shimizukawa
b1abd4629b Fix#3198: AttributeError is raised when toctree has 'self'.
this regression introduced at dc985ed4.
2016-12-08 00:34:19 +09:00
Jellby
6ce1bb1f00 Merge remote-tracking branch 'upstream/master'
Conflicts:
	sphinx/application.py
	sphinx/builders/html.py
2016-12-06 19:14:12 +01:00
shimizukawa
0a7d039df5 Merge branch '1.5-release' into master 2016-12-05 23:14:25 +09:00
Takeshi KOMIYA
7e066e6513 Fix broken tests 2016-12-04 23:34:57 +09:00
shimizukawa
eb0aa50536 fix 3 test failures that cause by translation changed 2016-12-04 23:03:46 +09:00
shimizukawa
9fb398e475 Merge branch 'stable' into 1.5-release 2016-12-04 21:44:16 +09:00
shimizukawa
6ae67f9f38 Fix #3024, refs #3037: In Python3, application.Sphinx._log crushed when the log message cannot be encoded into console encoding. 2016-12-04 13:54:11 +09:00
Takeshi KOMIYA
f43a02ca27 Merge branch 'stable' into 1.5-release 2016-12-03 21:05:18 +09:00
Takeshi KOMIYA
61a6ca5b37 Merge branch 'stable' into 1.5-release 2016-12-03 16:25:58 +09:00
Junpei Kawamoto
df37a05420 Update the regex in util.split_docinfo so that it parses multi-line field bodies.
Field Lists, which are used to define docinfo, allow multi-line field bodies,
but util.split_docinfo didn't consider it.
This commit updates the regex in that function so that it parses such multi-line field bodies.
2016-12-02 23:39:12 -05:00
shimizukawa
3284e89991 Merge branch 'fix-attr-documenter' into stable 2016-11-24 23:55:02 +09:00
Rob Ruana
f45fe6fc8c Fix #3174: [Napoleon] Defers autodoc-skip-member to other extensions if Napoleon doesn't care if the member is skipped 2016-11-23 10:45:39 -08:00
shimizukawa
76f2ed9215 Fix #3015: fix a broken test on Windows. 2016-11-24 00:26:36 +09:00
Takeshi KOMIYA
a413b857af Merge branch '1.5-release' 2016-11-23 14:45:05 +09:00
Takeshi KOMIYA
98f7818101 Fix merging 2016-11-23 13:38:20 +09:00
Takeshi KOMIYA
e63afbc60e Merge branch '1.5-release' 2016-11-23 13:31:02 +09:00
Takeshi KOMIYA
0ee524e392 Merge branch 'stable' into 1.5-release 2016-11-23 13:22:38 +09:00
Takeshi KOMIYA
52f54a6379 Fix #3164: Change search order of `sphinx.ext.inheritance_diagram` 2016-11-23 00:50:02 +09:00
Takeshi KOMIYA
9676e79c1c inheritance_diagram: Move _import_class_or_module() method to function 2016-11-23 00:49:46 +09:00
Takeshi KOMIYA
43197de299 Fix #3117: LaTeX writer crashes if admonition is placed before first section title 2016-11-23 00:42:34 +09:00
Rob Ruana
407a525ac8 [Napoleon] adds xref test data for pull request #3168 2016-11-21 16:12:23 -08:00
shimizukawa
8f79c11b04 #3093: fix test again 2016-11-20 18:35:12 +09:00
shimizukawa
6b0d3e7400 #3093: fix test again 2016-11-20 18:17:16 +09:00
shimizukawa
e712401dd1 #3093: fix test 2016-11-20 18:00:23 +09:00
shimizukawa
3566352bdb refs #3093: add tests 2016-11-20 17:48:07 +09:00
Takeshi KOMIYA
b84035416f Revert "Add `config-inited` event"
This reverts commit 9569c6dbff.
2016-11-20 12:46:30 +09:00
Takeshi KOMIYA
9569c6dbff Add `config-inited` event 2016-11-18 20:55:51 +09:00
Takeshi KOMIYA
4ca84aba45 Fix #3135: `sphinx.ext.autodoc` crashes with plain Callable 2016-11-13 00:01:41 +09:00
Takeshi KOMIYA
ceb4e9a805 Use sphinx-doc.org for testing 2016-11-06 17:52:15 +09:00
jfbu
53d202440f add `@skip_if_stylefiles_notfound` to maxlistdepth test 2016-11-05 11:50:12 +01:00
jfbu
0473e438dc add unit test for maxlistdepth (latex) 2016-11-04 23:57:00 +01:00
Takeshi KOMIYA
a503849ac1 Merge pull request #2495 from electrofelix/linkcheck-skip-anchors
Allow skipping anchor checking using regex
2016-11-04 23:53:46 +09:00
Takeshi KOMIYA
56958227c8 Refactor test_bulid_latex: add skip_if_stylefiles_notfound() 2016-11-04 15:14:41 +09:00
Takeshi KOMIYA
3f4721e140 Refactore test_build_latex: add compile_latex_document() 2016-11-04 12:06:19 +09:00
Alex Grönholm
a1f6baaa81 Fix annotations formatting for plain typing.Callable
The typing.Callable class may be used without generic arguments, in which case it is equivalent to collections.abc.Callable.
2016-11-02 21:43:33 +02:00
Takeshi KOMIYA
b32d9a9bc7 Merge pull request #3071 from mleinart/autodoc/pass_through_decorators
Autodoc: Allow mocked module decorators to pass-through functions unchanged
2016-11-02 23:01:16 +09:00
Takeshi KOMIYA
ae1f523d52 Add `--extensions to sphinx-quickstart` to support enable arbitary extensions from command line (ref: #2904) 2016-11-02 11:11:15 +09:00
shimizukawa
a5bdf1fdae Closes #3060: autodoc supports documentation for attributes of Enum class. Now autodoc render just the value of Enum attributes instead of Enum attribute representation. 2016-10-28 00:02:09 +09:00