Takeshi KOMIYA
021749429d
Merge branch '2.0' into 6178_hidden_tocs
2019-03-19 01:23:17 +09:00
Jon Dufresne
22afc77c48
Python-3-only clean ups discovered by pyupgrade
...
https://github.com/asottile/pyupgrade
> A tool to automatically upgrade syntax for newer versions of the
> language.
- Drop u str prefix
- Drop base object inheritance
- Drop args to super()
- Use set literals
- Use dict comprehension
- Use set comprehension
2019-03-19 01:09:48 +09:00
Jon Dufresne
f210475489
Python-3-only clean ups discovered by pyupgrade
...
https://github.com/asottile/pyupgrade
> A tool to automatically upgrade syntax for newer versions of the
> language.
- Drop u str prefix
- Drop base object inheritance
- Drop args to super()
- Use set literals
- Use dict comprehension
- Use set comprehension
2019-03-17 12:58:03 -07:00
Takeshi KOMIYA
6698bd6b3f
Fix #6178 : i18n: Captions missing in translations for hidden TOCs
2019-03-17 17:19:33 +09:00
Jakob Lykke Andersen
ceb72a78b8
C++, fix parsing of initializers
...
Specifically, add parsing of braced-init-list.
See also michaeljones/breathe#425
2019-03-16 18:23:07 +01:00
Takeshi KOMIYA
332dd5d89f
Merge branch '2.0'
2019-03-10 17:46:12 +09:00
Takeshi KOMIYA
b691fa804d
Fix test: filename has been smallcased since 2.0
2019-03-10 17:07:15 +09:00
Takeshi KOMIYA
4bac6b56d0
Merge branch '1.8' into 2.0
2019-03-10 16:52:51 +09:00
Takeshi KOMIYA
fc99687105
Fix #3859 : manpage: code-block captions are not displayed correctly
2019-03-10 12:40:55 +09:00
Takeshi KOMIYA
a37e508b3f
Merge branch '2.0'
2019-03-10 12:23:15 +09:00
Takeshi KOMIYA
cf74a71848
Merge branch '2.0' into 2155_code_directive
2019-03-10 12:05:26 +09:00
Takeshi KOMIYA
05d3e37ef7
Fix #6149 : LaTeX: :index: role titles causes build error of LaTeX
2019-03-10 02:07:02 +09:00
Takeshi KOMIYA
7c712464bb
Merge branch '2.0'
2019-03-09 18:12:56 +09:00
Takeshi KOMIYA
d7024fe996
Merge branch '1.8' into 2.0
2019-03-09 18:12:33 +09:00
Takeshi KOMIYA
f61a5f91f7
Fix test: imgconverter expects size of images fixed
2019-03-09 18:04:40 +09:00
Takeshi KOMIYA
57ecc5733e
Fix AssertionError is raised for custom citation_reference node (refs: #6147 )
...
AssertionError is raised when custom ``citation_reference`` node
having classes attribute refers missing citation (refs: #6147 )
2019-03-09 15:46:03 +09:00
Takeshi KOMIYA
65970a3033
Fix #6140 : Use unittest.mock instead of mock
2019-03-09 15:16:04 +09:00
Martin Packman
71dec3b38e
Fix UnboundLocalError when building changes
...
Split testing of changes builder to its own test file and root.
Improve coverage a little, and add case that fails if a module
directive is included in the rst source.
Correctly handle changesets with a module declared.
Fixes https://github.com/sphinx-doc/sphinx/issues/6134
2019-03-08 13:30:27 +00:00
Takeshi KOMIYA
e8195d24c7
Merge pull request #6143 from tk0miya/6140_unittest.mock
...
Fix #6140 : Use unittest.mock instead of mock
2019-03-08 00:56:45 +09:00
Takeshi KOMIYA
c83f2a0272
Fix #6140 : Use unittest.mock instead of mock
2019-03-08 00:27:45 +09:00
Takeshi KOMIYA
ba86f4ea78
Merge branch '2.0'
2019-03-07 01:23:26 +09:00
Takeshi KOMIYA
c4a45b4a01
Close #2155 : Support `code` directive
2019-03-03 19:55:31 +09:00
Takeshi KOMIYA
bde9cab7fe
Add sphinx.testing.restructuredtext.parse()
2019-03-03 19:55:31 +09:00
Takeshi KOMIYA
1892eac4b9
test: replace emph_literal_role() by EmphasizedLiteral
2019-03-03 14:24:32 +09:00
Takeshi KOMIYA
01f46111c5
Merge branch '2.0'
2019-03-02 18:38:24 +09:00
Takeshi KOMIYA
ac9e9c0745
Merge branch '1.8' into 2.0
2019-03-02 18:37:20 +09:00
Takeshi KOMIYA
9c2e7b6798
Fix #6067 : LaTeX: images having a target are not aligned even if specified
2019-02-28 02:05:21 +09:00
Takeshi KOMIYA
6c244bdd69
Fix #6067 : LaTeX: images having a target are concatenated to next line
2019-02-28 02:04:12 +09:00
Takeshi KOMIYA
8d0d75fea7
Merge pull request #6110 from tk0miya/refactor_catalog
...
Refactor catalog detection and compilation
2019-02-27 23:36:14 +09:00
Takeshi KOMIYA
a7b1c08487
Merge pull request #6106 from tk0miya/refactor_import_object
...
refactor: import_object() allows to import nested objects (ex. nested class)
2019-02-27 23:34:09 +09:00
Takeshi KOMIYA
10a84030f9
Merge pull request #6108 from tk0miya/refactor_autodoc_mock
...
refactor: Move implementation of mock to sphinx.ext.autodoc.mock
2019-02-27 23:33:45 +09:00
Takeshi KOMIYA
ec30799617
Revert "C++, conditionally disable test on sys.maxunicode"
...
This reverts commit 2a544b4ec3 .
2019-02-27 23:29:17 +09:00
Takeshi KOMIYA
3a0a9f659e
refactor: import_object() allows to import nested objects (ex. nested class)
2019-02-27 23:17:49 +09:00
Takeshi KOMIYA
fb8838ee53
refactor: Use CatalogRepository instead of find_catalog_source_file()
2019-02-27 22:47:08 +09:00
Takeshi KOMIYA
8408109a25
Add CatalogRepository class
2019-02-27 21:43:47 +09:00
Takeshi KOMIYA
6508e8ea5f
Merge pull request #6109 from tk0miya/refactor_test_autodoc
...
refactor: test_autodoc
2019-02-27 21:43:14 +09:00
Takeshi KOMIYA
af51e9825a
refactor: Move implementation of mock to sphinx.ext.autodoc.mock
2019-02-27 21:42:23 +09:00
Takeshi KOMIYA
446bee8c66
refactor: test_autodoc
2019-02-27 15:08:44 +09:00
Takeshi KOMIYA
2745f1e156
Merge pull request #5508 from jdknight/bugfix/allow-applying-linenos-with-post-transform
...
directive-code: do not force linenos value on run
2019-02-24 20:37:22 +09:00
Takeshi KOMIYA
524ac7ff0a
Fix #6096 : html: Anchor links are not added to figures
2019-02-24 19:29:12 +09:00
Takeshi KOMIYA
d9d5594c6f
Ignore filenames without file extension given to `Builder.build_specific()`
...
So far, ``Builder.build_specific()`` accpets filnames without file
extension. On the other hand, ``sphinx-build`` command does not accept
such files. So the special handling code is only working for 3rd party
applications. The behavior is not consistent. In addition, that is not
helpful for users.
This removes such behavior from builders. This does not change Sphinx
application itself. It only effects to the applications which uses the
API directly.
2019-02-23 21:13:09 +09:00
Takeshi KOMIYA
ac4ec47378
Add testcase for specific build
2019-02-20 12:32:17 +09:00
Takeshi KOMIYA
fa022fa377
Merge pull request #6086 from tk0miya/separate_serializinghtml
...
Separate json and pickle to sphinxcontrib package
2019-02-17 22:40:12 +09:00
Takeshi KOMIYA
8a391d1781
Merge branch '1.8'
2019-02-17 22:37:23 +09:00
Takeshi KOMIYA
1ca210aab1
Separate json and pickle to sphinxcontrib package
2019-02-17 22:31:50 +09:00
Takeshi KOMIYA
90bf81bd37
test: Use get_doctree() to load doctree files
2019-02-17 20:27:48 +09:00
Takeshi KOMIYA
08cd23a0bb
Fix #6047 : autodoc: `autofunction` emits a warning for method objects
2019-02-17 18:23:14 +09:00
James Knight
3858a62814
test: verify linenothreshold usage
...
Adding a unit test to verify the use of the `linenothreshold` option
provided by the `highlight` directive [1]. The included document to test
will introduce two sets of `code-block` and `literalinclude` directives
where the first entry generates contents using line numbers and the
second entry generates contents not using line numbers, respectfully.
[1]: https://github.com/sphinx-doc/sphinx/blob/v1.8.4/sphinx/transforms/post_transforms/code.py#L85
Signed-off-by: James Knight <james.d.knight@live.com >
2019-02-16 22:14:30 -05:00
Takeshi KOMIYA
63ccc34475
Merge pull request #6082 from tk0miya/refactor_XRefRole
...
refactor XRefRole using ReferenceRole class
2019-02-16 23:42:10 +09:00
Takeshi KOMIYA
5437ab61e9
Merge pull request #6074 from tk0miya/1148_autodecorator
...
Closes #1148 : autodoc: Add autodecorator directive for decorators
2019-02-16 21:45:36 +09:00