Commit Graph

12368 Commits

Author SHA1 Message Date
Takeshi KOMIYA
8b6acc05c4 Merge pull request #5909 from tk0miya/refactor_epub2
refactor: Convert Epub3Builder.validate_config_values() to a function
2019-01-12 18:22:00 +09:00
Takeshi KOMIYA
354e765eef refactor: Convert Epub3Builder.validate_config_values() to a function 2019-01-12 18:05:28 +09:00
Takeshi KOMIYA
51d6a096fb Merge pull request #5910 from tk0miya/refactor_epub
Refactor epub builder: deprecate arguments of build_* method.
2019-01-12 17:47:08 +09:00
Takeshi KOMIYA
c18c1546d7 Merge pull request #5920 from tk0miya/refactor_applehelp
Refactor applehelp builder
2019-01-12 17:35:47 +09:00
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
041da498aa refactor applehelp: Use subprocess.run() instead of Popen 2019-01-11 02:02:37 +09:00
Takeshi KOMIYA
bf62a96831 refactor applehelp: Use shlex.quote() instead of pipes.quote() 2019-01-11 02:02:37 +09:00
Takeshi KOMIYA
aa4d4917f7 refactor applehelp: Move template of access.html to a file 2019-01-11 02:02:37 +09:00
Takeshi KOMIYA
6fc7b0b90d Fix recursive import when importing sphinx.writers.latex directly 2019-01-11 01:57:05 +09:00
Takeshi KOMIYA
a5ce3e8961 refactor applehelp: Divide build_helpbook() to small methods 2019-01-11 01:32:21 +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
e82f5ddb55 The arguments of Epub3Builder.build_navigation_doc() is deprecated. 2019-01-09 00:10:36 +09:00
Takeshi KOMIYA
b6c422ac86 The arguments of EpubBuilder.build_epub() is deprecated. 2019-01-09 00:10:36 +09:00
Takeshi KOMIYA
64533e142c The arguments of EpubBuilder.build_toc() is deprecated. 2019-01-09 00:10:36 +09:00
Takeshi KOMIYA
d437f39bc4 The arguments of EpubBuilder.build_content() is deprecated. 2019-01-09 00:10:36 +09:00
Takeshi KOMIYA
f000df8bfb The arguments of EpubBuilder.build_container() is deprecated. 2019-01-09 00:10:36 +09:00
Takeshi KOMIYA
0f972e8bbf The arguments of EpubBuilder.build_mimetype() is deprecated 2019-01-09 00:10:36 +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