Commit Graph

12345 Commits

Author SHA1 Message Date
Takeshi KOMIYA
035ebff407 Make info messages more translatable 2019-01-09 00:54:42 +09:00
Takeshi KOMIYA
90b93dda33
Merge pull request #5384 from tk0miya/smart_latex_conf_py
quickstart: Simplify generated conf.py (for latex)
2019-01-08 02:12:38 +09:00
Takeshi KOMIYA
7aa69237de
Merge pull request #5903 from tk0miya/show_deprecationwarnings_for_pycompat
refactor: deprecate some pycompat functions
2019-01-08 01:54:04 +09:00
Takeshi KOMIYA
7eb8b735c0
Merge pull request #5907 from tk0miya/5906_test_markup
Fix #5906: LaTeX Builder is not initialized correctly on test_markup
2019-01-08 01:51:01 +09:00
Takeshi KOMIYA
bc13c25f9b
Merge branch 'master' into smart_latex_conf_py 2019-01-08 01:34:50 +09:00
Takeshi KOMIYA
6e5fda6bca
Merge pull request #5904 from tk0miya/update_CONTRIBUTING
Update CONTRIBUTING.rst
2019-01-08 01:33:56 +09:00
Takeshi KOMIYA
66228fb60f Fix #5906: LaTeX Builder is not initialized correctly on test_markup 2019-01-08 01:30:25 +09:00
Takeshi KOMIYA
064c80336f
Merge pull request #5881 from tk0miya/refactor_conf_py
refactor: Use repr() to make escaped string in template for conf.py
2019-01-08 00:11:32 +09:00
Takeshi KOMIYA
2c7fd9b681
Merge pull request #5899 from jdufresne/image-import
Remove outdated fallback to 'import Image'
2019-01-08 00:09:39 +09:00
Takeshi KOMIYA
4c78adb92c
Merge pull request #5900 from jdufresne/guess-mime
Add TODO comment to help future developer to refactor guess_mimetype
2019-01-08 00:07:07 +09:00
Jon Dufresne
d8b34cedf0 Add TODO comment to help future developer to refactor guess_mimetype 2019-01-07 06:58:33 -08:00
Jon Dufresne
f1e41a616c Remove outdated fallback to 'import Image'
The fallback 'import Image' was added in commit
99621d7a01 for the PIL package. However,
the PIL package is no longer maintained and does not support Python 3.
Development has moved to the Pillow package which always installs to the
PIL namespace.

Pillow repo: https://github.com/python-pillow/Pillow
Old PIL website: http://www.pythonware.com/products/pil/
2019-01-07 06:44:35 -08:00
Takeshi KOMIYA
46b19b29f3 latex: Do escape_abbr() for author and project 2019-01-07 23:14:56 +09:00
Takeshi KOMIYA
09a8b5e25c doc: quickstart.py has moved 2019-01-07 23:07:48 +09:00
Takeshi KOMIYA
e700532dd1 docs: check_sources.py now becomes flake8 plugin 2019-01-07 23:07:48 +09:00
Takeshi KOMIYA
68c90a26f1 quickstart: Simplify generated conf.py (for latex) 2019-01-07 23:06:14 +09:00
Takeshi KOMIYA
39c0380c4d refactor: deprecate some pycompat functions 2019-01-07 22:54:37 +09:00
Takeshi KOMIYA
353c3e9fd6
Merge pull request #5415 from tk0miya/5410_replace_open_file_by_open
refactor: Repalce HTMLHelpBuilder.open_file() by standard open()
2019-01-07 00:59:03 +09:00
Takeshi KOMIYA
c608c03832
Merge pull request #5898 from jdufresne/incremental
Remove redundant mypy config 'incremental'
2019-01-07 00:57:38 +09:00
Jon Dufresne
5d497d0083 Remove redundant mypy config 'incremental'
The mypy config 'incremental` has defaulted as true since version 0.590.
Can drop the local override. For details, see:

6b13652a46
2019-01-06 06:58:26 -08:00
Jean-François B
74e16bcb71
Merge pull request #5894 from jfbu/latex_fix_addtocaptions_5516
LaTeX: fix ``addtocaptions`` for sphinxmessages.sty_t if 'babel' empty
2019-01-06 10:13:40 +01:00
jfbu
259d5053fa LaTeX: fix `addtocaptions` for sphinxmessages.sty_t if 'babel' empty
For example if config setting `language` is 'ja'.

Refs: #5516
2019-01-06 10:05:02 +01:00
jfbu
af2bb9f80d Merge branch '1.8'
Conflicts:
	sphinx/writers/latex.py
	tests/test_build_latex.py

Also, modifications were needed in further files.

	modified:   CHANGES
	modified:   sphinx/templates/latex/sphinxmessages.sty_t
	modified:   sphinx/util/template.py
	modified:   sphinx/util/texescape.py
	modified:   sphinx/writers/latex.py
	modified:   tests/test_build_latex.py
2019-01-05 11:00:19 +01:00
Jean-François B
e44f56a871
Merge pull request #5891 from jfbu/latex_5889
LaTeX: obey spaces from `numfig_format` (figure and table only)
2019-01-05 10:03:11 +01:00
jfbu
f42e406af4 Update CHANGES for PR #5891 2019-01-05 10:02:00 +01:00
jfbu
2259466d4b Remove some spaces added in last commit, which are ignored anyhow 2019-01-05 00:14:45 +01:00
jfbu
37f1aacd1f LaTeX do not strip spaces from numfig_format split at %s
Only for figure and table, currently. Code-bloks have some FIXME code to
still be handled.

PDF output should remain unchanged so this is backwards compatible. The
`\nobreakspace` from LaTeX default `\fnum@figure` is removed by a normal
space. If figname is an abbreviation, the dot is followed by a `\@` to
avoid double space. At the location where the `\@` is inserted the `@`
has catcode non-letter so a space after it is not swallowed.

MEMO: when this is will be moved to sphinxmessages.sty on master branch
it is needed to use `\@{}` or to modify locally catcode of `@` to avoid
space swallowing..

Closes: #5889
2019-01-04 23:53:17 +01:00
jfbu
18bf90822c Fix LaTeX writer handling of user custom numfig_format 2019-01-04 23:35:30 +01:00
Takeshi KOMIYA
833e5ef78b
Merge pull request #5516 from tk0miya/refactor_latex
Move labels related with numfig_format to sphinxmessage.sty
2019-01-05 00:09:33 +09:00
Takeshi KOMIYA
56f4b27faa Deprecate LaTeXTranslator.generate_numfig_format() 2019-01-04 23:06:34 +09:00
Takeshi KOMIYA
cd28de5ba8 refactor: Move \literalblockname to sphinxmessage.sty 2019-01-04 23:06:34 +09:00
Takeshi KOMIYA
ebd484ead2 refactor: Move \tablename to sphinxmessage.sty 2019-01-04 23:06:34 +09:00
Takeshi KOMIYA
1c34501e85 refactor: Move \figurename to sphinxmessage.sty 2019-01-04 23:06:34 +09:00
Takeshi KOMIYA
fc43bfc639 Convert sphinxmessage to LaTeX package 2019-01-04 23:06:34 +09:00
Takeshi KOMIYA
45d04703fe latex: Move ExtBabel to sphinx.builders.latex.util package 2019-01-04 23:06:34 +09:00
Takeshi KOMIYA
2b1512749a
Merge pull request #5882 from tk0miya/4611_invalid_html5_for_multiple_terms
Fix HTML: Invalid HTML5 file is generated for glossary (refs: #4611)
2019-01-03 18:46:54 +09:00
Takeshi KOMIYA
7459d8771a Fix HTML: Invalid HTML5 file is generated for glossary (refs: #4611)
Note: It was caused by a glossary having multiple terms for one
description.
2019-01-03 18:17:17 +09:00
Takeshi KOMIYA
b04bfcfab7
Merge pull request #5883 from tk0miya/remove_use_of_deprecated_apis
Remove use of deprecated APIs
2019-01-03 13:44:28 +09:00
Takeshi KOMIYA
a0e1390472 Remove use of deprecated APIs 2019-01-03 13:27:33 +09:00
Takayuki SHIMIZUKAWA
7b91a2438f
Merge pull request #5747 from jdufresne/bad-decode
Remove unused `except UnicodeDecodeError` block
2019-01-03 12:40:28 +09:00
Takeshi KOMIYA
1926193ff0 refactor: Use repr() to make escaped string in template for conf.py 2019-01-03 11:31:54 +09:00
Takeshi KOMIYA
30e51bf3ce
Merge pull request #5878 from tk0miya/refactor_latex_compat
refactor: Add compat module to avoid recursive import
2019-01-03 11:20:55 +09:00
Takeshi KOMIYA
64df1d1e89
Merge pull request #5880 from tk0miya/omit_master_doc
test: Omit master_doc settings from testcases
2019-01-03 11:20:26 +09:00
Takeshi KOMIYA
5b23ea08a6
Merge pull request #5879 from tk0miya/refactor_tests_encoding
encoding keyword for path.text() and path.write_text() is no longer needed
2019-01-03 11:13:31 +09:00
Takeshi KOMIYA
114ff77f68 test: Omit master_doc settings from testcases 2019-01-03 10:58:42 +09:00
Takeshi KOMIYA
c4c878303f encoding keyword for path.text() and path.write_text() is no longer needed 2019-01-03 10:58:07 +09:00
Takeshi KOMIYA
4938b71bca refactor: Add compat module to avoid recursive import 2019-01-03 10:54:39 +09:00
Takeshi KOMIYA
657fa843c8
Merge pull request #5876 from tk0miya/remove_magic_comments
Remove coding magic comments from tests
2019-01-03 10:39:28 +09:00
Takeshi KOMIYA
3c7b4e77e0 refactor: Repalce HTMLHelpBuilder.open_file() by standard open() 2019-01-03 02:05:32 +09:00
Jean-François B
7ff7dfc427
Merge pull request #5867 from jfbu/latex_checkmark
LaTeX: escape Unicode HEAVY CHECK MARK into latex macros
2019-01-02 15:25:45 +01:00