Joel Nothman
db415ba05c
Avoid duplicate calls to autodoc-process-docstring ( #4198 )
2018-01-08 11:09:29 +09:00
Takeshi KOMIYA
2ae7f26fe5
test: Adjust testcase for #3962
2018-01-07 12:09:41 +09:00
Takeshi KOMIYA
e18c49ec59
Merge commit '4277eb13315d5649401190df86874b3832ddfa3e'
2018-01-07 01:13:32 +09:00
jfbu
309f38a91f
Split out fancy LaTeX macros from `\sphinxcode into \sphinxupquote`
...
Since #2627 (1.4.4), `\code`, and then again at #3116 (1.5)
`\sphinxcode` which is the new name has become more complicated than the
original `\texttt{#1}`. This was to obtain straight quotes in PDF output,
and to allow long inline literals to break across lines.
This means though that users who want to customize `\sphinxcode`, for
example to not only do `\texttt` but to use some colour, have to copy
about 10 lines of complicated LaTeX macros which should be not modified
in any way. This commit moves all the code out of `\sphinxcode` into a
separate macro `\sphinxupquote`.
The LaTeX writer will output `\sphinxcode{\sphinxupquote{foo}}` in place
of former `\sphinxcode{foo}`. Moving the `\texttt` from innermost to
outermost level is with no consequence.
2018-01-03 08:46:19 +01:00
Takeshi KOMIYA
850e9a9c5c
Fix links to external option docs with intersphinx (refs: #3769 )
2018-01-02 01:01:29 +09:00
Takeshi KOMIYA
023dad6c66
Merge pull request #4335 from zufallsgenerator/fix-4334-apidoc-toc-inconsistencies
...
Closes #4334 : sphinx-apidoc: References to non-existing files in TOC
2018-01-01 12:03:32 +09:00
Takeshi KOMIYA
5562e76585
A happy new year!
2018-01-01 01:10:10 +09:00
Takeshi KOMIYA
f1f6ca8cc9
Merge branch 'happy_new_year' into master
2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b
A happy new year!
2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
e8402bf0ee
Merge branch 'stable'
2017-12-31 21:13:34 +09:00
Takeshi KOMIYA
1cae50f748
Merge branch 'stable' into 4a164170-33e9-4df3-aad2-a13af37b6b43
2017-12-31 20:43:16 +09:00
Takeshi KOMIYA
40186077d7
Merge pull request #4358 from tk0miya/ensure_parallelism
...
Ensure parallelism
2017-12-30 10:04:22 +09:00
Takeshi KOMIYA
1d3362425b
Add app.is_parallel_allowed()
2017-12-30 00:54:55 +09:00
Stephen Finucane
9a3ebaaff5
Resolve warning filter issues
...
There's an issue with 'pkgutils' and namespace packages. This has been
reported against setuptools [1], but until this is resolved, we simply
need to live with it. Ensure said warnings are filtered from tox too and
remove some unnecessary ones.
[1] https://github.com/pypa/setuptools/issues/1111
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:32 +00:00
Stephen Finucane
7c0723fd46
tests: Remove 'tests/run.py'
...
This is no longer necessary. One test needs to be modified to deal with
how 'python -m pytest' modifies the PATH.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:31 +00:00
Stephen Finucane
529c96a3c9
tests: Use 'pytest_sessionstart'
...
This is the recommended way to do pre-session configuration in pytest if
not using session fixtures [1].
With this, we're able to remove the custom 'test/run.py' script in its
entirety and run 'pytest' like everyone else does. We'll do this
separately to keep things simple.
[1] https://stackoverflow.com/a/12600154/613428
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:26 +00:00
Stephen Finucane
c33ecd1f8f
tests: Use 'pytest_report_header'
...
This is the recommended way to print extra headers [1].
[1] https://docs.pytest.org/en/latest/example/simple.html#adding-info-to-test-report-header
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:07 +00:00
Stephen Finucane
9348c4bea1
tests: Stop explicitly checking for modules
...
This will have already been handled by setuptools. If the user isn't
using this then they've dug their own grave.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-29 13:02:04 +00:00
Jakob Lykke Andersen
f3c05adebc
C++, fix handling of (templated) operators
2017-12-28 16:50:32 +01:00
Jakob Lykke Andersen
9766c2f339
C++, support the template disambiguator for dependent names.
2017-12-24 16:31:10 +01:00
Takeshi KOMIYA
a9efb2517a
Fix flake8 violations
2017-12-23 21:21:21 +09:00
Jean-François B
f5dfdfcfe2
Merge pull request #4332 from jfbu/latex_math_numfig
...
Let LaTeX obey :confval:`math_numfig` for equation numbering
2017-12-21 19:32:10 +01:00
Christer Bystrom
2d99648e99
Closes #4334 : sphinx-apidoc: Don't generate references to non-existing files in TOC
2017-12-21 19:06:17 +01:00
Takeshi KOMIYA
e2e907b3ee
Fix broken test_autodoc
2017-12-22 00:53:53 +09:00
Takeshi KOMIYA
ffa9d48d0e
Merge branch 'master' into ignore__all__
2017-12-22 00:28:26 +09:00
Takeshi KOMIYA
389b6d2ec1
Merge pull request #4324 from tk0miya/refactor_test_autodoc2
...
test_autodoc: Separate testdata (python objects) and testcases
2017-12-22 00:25:44 +09:00
jfbu
3bb61e9094
Let LaTeX obey :confval:math_numfig for equation numbering
2017-12-21 12:23:20 +01:00
Takeshi KOMIYA
ec240614d9
test_autodoc: Separate testdata (python objects) and testcases
2017-12-21 12:12:13 +09:00
jfbu
43bed034cd
Add test for latex obey numfig_secnum_depth feature
2017-12-20 23:28:24 +01:00
jfbu
0a66d51cbc
Merge branch 'stable'
2017-12-20 21:52:45 +01:00
jfbu
1ee2c2fb95
Re-use some existing test with extras
2017-12-20 21:30:05 +01:00
Kevin Keating
e932ff5ad2
Closes #947 : autodoc now supports ignore-module-all to ignore a module's __all__
2017-12-20 15:07:33 -05:00
Takeshi KOMIYA
e2bf2ef11d
Merge pull request #4166 from jahn/math_numfig
...
Number equations across pages and by section (fix #3991 , #4080 )
2017-12-21 00:39:44 +09:00
Jakob Lykke Andersen
42f557d4b0
Merge branch 'master' of github.com:sphinx-doc/sphinx
2017-12-20 09:06:22 +01:00
Jakob Lykke Andersen
c7a145cc18
C++, handle defaulted constrained template type parameters
2017-12-20 09:05:34 +01:00
Stephen Finucane
c8d56236c9
tests: Ignore roots using 'collect_ignore'
...
This is slightly cleaner than how we're doing this at the moment.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-18 20:10:18 +00:00
Stephen Finucane
e243e82723
tests: Ignore tests using 'collect_ignore'
...
Per the pytest docs [1], this is the preferred way to ignore tests. This
necessitates removing the 'test-async' target as it no longer makes any
sense.
[1] https://docs.pytest.org/en/latest/example/pythoncollection.html
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-18 20:10:18 +00:00
Stephen Finucane
41c19ddf91
tests: Skip tests with missing binaries
...
While there are already some skips included here, they clearly aren't
doing their job and the test fail locally. Resolve this.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-12-18 20:10:18 +00:00
jfbu
245876c6e7
Add test for latex_toplevel_sectioning
2017-12-18 08:27:59 +01:00
Takeshi KOMIYA
464f94c238
deprecate formatargspec() and format_annotation()
2017-12-17 15:25:44 +09:00
Oliver Jahn
44708b03dc
Merge branch 'master' into math_numfig
2017-12-16 11:15:07 -05:00
Takeshi KOMIYA
5bc5b8f013
Merge branch 'stable'
2017-12-16 00:53:55 +09:00
Takeshi KOMIYA
c250c63daa
test: Skip some builders on test_build_all
2017-12-15 21:15:04 +09:00
Takeshi KOMIYA
2a2ed8915a
diet test-root: Move .mo files to new testroot (for test_html_rebuild_mo)
2017-12-15 21:15:02 +09:00
Takeshi KOMIYA
e3bbffc36e
test: Add test_html_copy_source
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a3f04c3397
Refactor test_build_html: Use basic project instead roots
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a5b64c98af
diet test-root: Remove html_static_path and html_extra_path (duplicated with test-html_assets)
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
a8ab1f164b
diet test-root: Move testtheme to test-theming
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
60f3968ef7
diet test-root: Move ziptheme to test-theming
2017-12-15 02:35:32 +09:00
Takeshi KOMIYA
acf5eaae84
Merge pull request #4294 from tk0miya/refactor_parser
...
Refactor docutils components of Sphinx (reader, parser, FileInput and so on).
2017-12-14 23:13:28 +09:00