Commit Graph

12354 Commits

Author SHA1 Message Date
Takeshi KOMIYA
c47d8d3d0d
Merge pull request #5922 from tk0miya/refactor_latex_compat
Fix recursive import when importing sphinx.writers.latex directly
2019-01-12 15:10:00 +09:00
Takeshi KOMIYA
6e21598cea
Merge pull request #5926 from tk0miya/update_docs
Fix doc: html_baseurl was added in 1.8.0
2019-01-12 15:09:17 +09:00
Takeshi KOMIYA
b535e13235 Fix doc: html_baseurl was added in 1.8.0 2019-01-12 13:16:31 +09:00
Timotheus Kampik
4662a0ce4a
Fix ToC (#5917)
Intro should be first
2019-01-10 18:08:12 +01:00
Takeshi KOMIYA
6fc7b0b90d Fix recursive import when importing sphinx.writers.latex directly 2019-01-11 01:57:05 +09:00
Jean-François B
214f75800f
Merge pull request #5918 from jfbu/latex_verbatimenvironment_macro
LaTeX: no need for \sphinxVerbatimEnvironment (refactoring)
2019-01-10 14:43:57 +01:00
jfbu
45898757ca LaTeX: no need for \sphinxVerbatimEnvironment
It is not needed as fancyvrb's \VerbatimEnvironment can be used in
nested way and the outer one prevails (sorry for adding the complication
initially when providing sphinxVerbatimintable environment).

That internal macro is not public API, and it is hard to deprecate it
from LaTeX as the Sphinx custom Verbatim environments redefined it
on-the-fly.

I searched and found no usage on internet of this, so there does not
seem any need to deprecate this non-public internal macro before
removal.
2019-01-10 10:52:17 +01:00
Timotheus Kampik
14b67a0464
Update Markdown doc (#5913)
* update Markdown doc

after relase of ecommonmark version 0.5.0
2019-01-09 16:44:00 +01:00
Takeshi KOMIYA
8d3be1addb
Merge pull request #5912 from tk0miya/improve_i18n
Make info messages more translatable
2019-01-09 01:06:05 +09:00
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