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
Takeshi KOMIYA
1ece29597e
Merge branch 'master' into simplify_conf.py
2019-02-16 21:25:21 +09:00
Takeshi KOMIYA
61f1477942
Add testcase for XRefRole class
2019-02-16 21:23:01 +09:00
Takeshi KOMIYA
6748a6de2f
Add testcase for download role
2019-02-16 21:23:01 +09:00
Takeshi KOMIYA
3ec032fa39
Replace :file: and :samp: roles by class based implementation
2019-02-16 12:37:46 +09:00
Takeshi KOMIYA
ea4d8ca08d
Replace :guilabel: and :menuselection: roles by class based implementation
2019-02-16 02:30:28 +09:00
Takeshi KOMIYA
1660269d01
Fix a test
2019-02-16 01:55:58 +09:00
Takeshi KOMIYA
cb49a6b091
Fix :pep: and :rfc: roles are broken
2019-02-16 01:47:52 +09:00
Takeshi KOMIYA
686486498c
Closes #1148 : autodoc: Add autodecorator directive for decorators
2019-02-15 02:14:38 +09:00
Takeshi KOMIYA
3b49f9fe3d
Separate htmlhelp to sphinxcontrib package
2019-02-15 01:44:32 +09:00
Takeshi KOMIYA
cd542fb2af
Merge pull request #6061 from tk0miya/reduce_warnings_of_rootcase
...
test: Reduce warnings on building test-root
2019-02-14 22:24:27 +09:00
Takeshi KOMIYA
9afe93d8f6
refactor: test: Remove unused settings from conf.py
2019-02-14 02:21:07 +09:00
Takeshi KOMIYA
891178e8ed
test: Reduce warnings on building test-root
...
Note: all warnings are tested on test-warnings.
2019-02-14 02:20:55 +09:00
Takeshi KOMIYA
3e7113c4c6
Fix test_ext_autosectionlabel conflicts with HTML5 writer
2019-02-14 02:13:14 +09:00
Takeshi KOMIYA
550c88f98c
Merge pull request #6064 from tk0miya/5636_add_autosummary_mock_imports
...
Closes #5635 : autosummary: Add autosummary_mock_imports to mock external libraries
2019-02-14 01:13:04 +09:00
Takeshi KOMIYA
1dfddb52ff
Merge pull request #6063 from tk0miya/4261_autosectionlabel_max_depth
...
Add autosectionlabel_max_depth config option
2019-02-14 01:12:05 +09:00
Takeshi KOMIYA
73b8d6ff33
Closes #5636 : autosummary: Add autosummary_mock_imports to mock external libraries
2019-02-11 23:19:25 +09:00
Takeshi KOMIYA
ac399b3b4e
refactor tests for autosectionlabel
2019-02-11 18:34:04 +09:00
Takeshi KOMIYA
2d44232e34
Fix autosectionlabel_maxdepth is 0 origin
2019-02-11 18:33:42 +09:00
Takeshi KOMIYA
4250b197c5
autosectionlabel: Rename confval to autosectionlabel_maxdepth
2019-02-11 18:21:41 +09:00
Takeshi KOMIYA
7770940af8
Merge branch 'master' into 4261_autosectionlabel_max_depth
2019-02-11 17:53:50 +09:00
Takeshi KOMIYA
a3cdd465ec
HTML builder outputs HTML5 by default
2019-02-11 17:46:56 +09:00
Takeshi KOMIYA
54be6ae494
Merge pull request #6053 from tk0miya/5459_autodoc_default_options_accepts_True
...
Closes #5459 : autodoc: autodoc_default_options accepts True as a value
2019-02-11 12:48:43 +09:00
Takeshi KOMIYA
7f7d34def7
Merge pull request #5924 from arxanas/githubpages-cname
...
githubpages: support custom domains
2019-02-11 12:41:57 +09:00
Takeshi KOMIYA
ad517af81c
Merge branch 'master' into 5459_autodoc_default_options_accepts_True
2019-02-11 12:34:59 +09:00
Takeshi KOMIYA
11a398b1b0
Merge pull request #6052 from tk0miya/5394_meaningful_annotations_for_mock
...
Display meaningful names in type annotations for mocked objects
2019-02-11 12:32:45 +09:00
Waleed Khan
33c8b1d952
githubpages: support custom domains
...
Github Pages allows you to link a custom domain to your Github Pages
site by adding a `CNAME` file at the top-level of your `docs` directory.
The `githubpages` extension already inserts a `.nojekyll` file in the
`docs` directory, so it's a good place to add support for this `CNAME`
file as well.
2019-02-10 16:39:41 -08:00
Takeshi KOMIYA
8812131a57
Merge pull request #6022 from tk0miya/5196_linkcheck_should_check_remote_image
...
Close #5196 : linkcheck also checks remote images exist
2019-02-11 02:05:14 +09:00
Takeshi KOMIYA
b0148c6921
Closes #5459 : autodoc: autodoc_default_options accepts True as a value
2019-02-11 02:03:09 +09:00
Takeshi KOMIYA
a6ef8190ce
Add testcase for mocked objects in autodoc
2019-02-11 01:46:38 +09:00
Takeshi KOMIYA
453ed5e29a
Merge branch 'master' into 5394_meaningful_annotations_for_mock
2019-02-11 01:38:26 +09:00
Takeshi KOMIYA
3a237f7f4d
Merge pull request #6017 from tk0miya/4550_align_figures_to_center
...
Close #4550 : All tables and figures without ``align`` option are displayed to center
2019-02-10 20:54:24 +09:00
Takeshi KOMIYA
7aaae7760a
Merge pull request #6023 from tk0miya/refactor_htmlhelp
...
Refactor htmlhelp builder
2019-02-10 20:50:10 +09:00
Takeshi KOMIYA
1a96f2b2cb
Do test with docutils-0.12
2019-02-09 15:48:33 +09:00
Takeshi KOMIYA
3791013c08
quickstart: Simplify generated conf.py (master_doc)
2019-02-09 15:00:27 +09:00
Takeshi KOMIYA
d4df28c643
quickstart: Simplify generated conf.py (source_suffix)
2019-02-09 15:00:27 +09:00
Takeshi KOMIYA
d08903d9b9
quickstart: Simplify generated conf.py (EPUB)
2019-02-09 15:00:27 +09:00
Takeshi KOMIYA
7415f64eab
refactor: htmlhelp: Generate .hhc file from template
2019-02-09 14:56:51 +09:00
Takeshi KOMIYA
28b0b744b6
refactor: htmlhelp: Generate .hhp file from template
2019-02-09 14:56:51 +09:00
Takeshi KOMIYA
47058cd175
test: Give freshenv=True to test_docutilsconf for windows environment
2019-02-09 14:44:37 +09:00
Takeshi KOMIYA
1d5e3cba0e
refactor: test-docutilsconf
...
Use options for reST parser instead of HTML4 writer's.
2019-02-09 00:49:49 +09:00
Takeshi KOMIYA
25027945f5
Close #4550 : All tables and figures without `align
` option are displayed to center
2019-02-08 01:39:41 +09:00
Takeshi KOMIYA
500bf85443
Merge branch 'master' into 5196_linkcheck_should_check_remote_image
2019-02-08 00:10:14 +09:00
Takeshi KOMIYA
55100dce26
refactor: tests/conftest.py
2019-02-07 22:14:06 +09:00
Takeshi KOMIYA
9ac06520b9
test: clear SPHINX_TEST_TEMPDIR before testing
2019-02-07 01:28:45 +09:00
Takeshi KOMIYA
952d76dabb
Merge pull request #5996 from tk0miya/show_tempdir_header_on_testing
...
Show tempdir header on testing (refs: #5902 )
2019-02-07 01:22:40 +09:00
Jean-François B
ed86ada661
Merge pull request #5992 from jfbu/latex_safe_graphics
...
LaTeX: safer image inclusion
2019-02-05 18:03:07 +01:00
jfbu
87058e6783
Remove from test never executed print(result) debugging info
2019-02-05 17:51:13 +01:00
jfbu
0d72052141
Merge branch 'master' into latex_safe_graphics
2019-02-05 17:46:00 +01:00
Takeshi KOMIYA
ff80d2f538
Merge pull request #5983 from tk0miya/separate_applehelp
...
Separate applehelp to sphinxcontrib package
2019-02-06 01:14:02 +09:00
Takeshi KOMIYA
c4397318d3
Separate applehelp to sphinxcontrib package
2019-02-06 00:44:37 +09:00
Takeshi KOMIYA
20edbe9500
Merge pull request #6015 from tk0miya/1851_omit_argument_for_code-block
...
Close #1851 : Allow to omit an argument for code-block directive
2019-02-06 00:24:17 +09:00
Takeshi KOMIYA
f551915e9f
Close #5196 : linkcheck also checks remote images exist
2019-02-06 00:21:52 +09:00
Takeshi KOMIYA
3fbb599d23
Merge pull request #5985 from tk0miya/refactor_test_build_html
...
refactor: test_build_html.py
2019-02-04 01:59:21 +09:00
Takeshi KOMIYA
d1cd72660b
Merge pull request #6012 from tk0miya/update_svgimg
...
Fix test: imgconverter expects size of images fixed
2019-02-04 01:53:34 +09:00
Takeshi KOMIYA
6ca669295c
Close #1851 : Allow to omit an argument for code-block directive
2019-02-04 01:50:44 +09:00
Takeshi KOMIYA
07f3f034a8
Merge pull request #6011 from tk0miya/fix_compile_latex_document
...
Fix test: compile_latex_document()
2019-02-04 00:05:33 +09:00
Takeshi KOMIYA
21fef75c3b
Fix test: imgconverter expects size of images fixed
2019-02-03 23:59:15 +09:00
Takeshi KOMIYA
7b1755d21b
Fix test: compile_latex_document()
2019-02-03 23:54:22 +09:00
Takeshi KOMIYA
622a678377
Merge pull request #6010 from tk0miya/4611_show_warnings_for_duplicated_toctree
...
Fix #4611 : epub: Show warning for duplicated ToC entries
2019-02-03 23:36:43 +09:00
Takeshi KOMIYA
b40ad9ffd4
Merge branch '1.8'
2019-02-03 23:20:26 +09:00
Takeshi KOMIYA
b950480218
Fix #4611 : epub: Show warning for duplicated ToC entries
2019-02-03 22:53:30 +09:00
Takeshi KOMIYA
b7c679626a
Fix #5948 : LaTeX: duplicated labels are generated for sections
2019-02-03 22:33:24 +09:00
Takeshi KOMIYA
c70dfcd390
Merge branch '1.8'
2019-02-03 19:53:12 +09:00
Takeshi KOMIYA
ed3d13b939
Merge pull request #6009 from tk0miya/4611_add_testcase_for_html_style
...
Separate testcase for html_style to single case from root
2019-02-03 19:48:56 +09:00
Takeshi KOMIYA
705248af2f
Merge branch '1.8'
2019-02-03 19:33:28 +09:00
Takeshi KOMIYA
ba7b7b3698
Merge pull request #6008 from tk0miya/4611_use_simple_svg
...
test: Replace SVG image by simple one
2019-02-03 19:26:37 +09:00
Takeshi KOMIYA
97782c8ba1
Separate testcase for html_style to single case from root
2019-02-03 19:16:04 +09:00
Takeshi KOMIYA
36e770fe68
test: Replace SVG image by simple one
...
Old SVG image contains non standard tags and attributes. Therefore,
epubcheck warns it as invalid. To avoid the warnings, this replaces it
by very simple one.
2019-02-03 19:08:28 +09:00
Takeshi KOMIYA
e483e4afc3
texinfo: remove DOTs from name if name contains other characters
2019-02-03 19:01:37 +09:00
Takeshi KOMIYA
133ed17de6
Add testcase for TexinfoTranslator.escape_id()
2019-02-03 19:01:37 +09:00
Takeshi KOMIYA
aabbbe346c
Merge branch '1.8'
2019-02-03 17:07:13 +09:00
Takeshi KOMIYA
b6478accb0
Fix #5995 : autodoc: autodoc_mock_imports conflict with metaclass
2019-02-02 01:22:57 +09:00
Takeshi KOMIYA
ed90306ee5
Show tempdir header on testing (refs: #5902 )
2019-02-01 22:36:10 +09:00