Commit Graph

3407 Commits

Author SHA1 Message Date
jfbu
d4d1a4ba84 Merge branch 'master' into latex_tableofcontentshook 2018-12-23 11:31:10 +01:00
jfbu
701b39328f Merge branch '1.8'
(Resolved) Conflicts:
	sphinx/texinputs/sphinxmanual.cls
2018-12-23 11:23:04 +01:00
Jean-François B
a77f344035 Merge pull request #5850 from jfbu/latex_sphinxmaketitle
LaTeX: ``\sphinxmaketitle`` and optional ``\sphinxbackoftitlepage``
2018-12-23 11:01:46 +01:00
jfbu
8e14532b08 LaTeX: move some hard-coded re-definitions to user hook for TOC 2018-12-22 17:33:03 +01:00
jfbu
1920d1d950 LaTeX: `\sphinxmaketitle and optional \sphinxbackoftitlepage`
Closes: #5849
2018-12-21 21:38:27 +01:00
Takeshi KOMIYA
f06e84ac4f Fix #5800: todo: crashed if todo is defined in TextElement 2018-12-22 01:10:23 +09:00
jfbu
da90d63e32 Reorder bugfix entries in CHANGES for 2.0 2018-12-20 21:26:52 +01:00
jfbu
f8389f5181 [DOC] Make link to list of deprecated APIs in CHANGES an internal link 2018-12-20 21:18:37 +01:00
jfbu
f5163d46da Update CHANGES for PR #5768 2018-12-20 21:00:47 +01:00
jfbu
bfcddc63ca Update CHANGES for #5249 "fix" via added documentation (refs: #5693) 2018-12-20 20:44:11 +01:00
Takeshi KOMIYA
5bbd61df0a Merge branch '1.8' into 5834_apidoc_wrong_help 2018-12-20 11:31:50 +09:00
Takeshi KOMIYA
914e655960 Merge pull request #5664 from tk0miya/refactor_latex3
refactor: Initialize template variables for LaTeX in builder; date, logofilename and packages
2018-12-20 11:13:47 +09:00
Takeshi KOMIYA
33387a0343 Fix flake8 violation in conf.py 2018-12-20 10:32:52 +09:00
Takeshi KOMIYA
6fe57436a8 Merge pull request #5839 from jdufresne/description
Deprecate unused Exception attributes
2018-12-20 10:15:06 +09:00
Takeshi KOMIYA
bf47f0a178 Merge pull request #5783 from tk0miya/refactor_OSError
Replace EnvironmentError and IOError by OSError
2018-12-20 10:11:14 +09:00
Takeshi KOMIYA
d0f5862597 Replace EnvironmentError and IOError by OSError
Since python 3.3, EnvironmentError and IOError were merged into
OSError.
2018-12-19 19:26:50 +09:00
Jon Dufresne
e9eaf41a58 Deprecate unused Exception attributes
The attributes were used only for the string representation, but that is
also the default behavior of the Exception class. Observe:

>>> str(Exception('foo'))
'foo'
>>> print(Exception('foo'))
foo
2018-12-18 18:32:16 -08:00
jfbu
4405366e22 Update CHANGES (refs: #1682, #5645) 2018-12-18 23:07:56 +01:00
jfbu
f6ac360b9c Update CHANGES (add Fedora package name for xelatex FreeFont dependency) 2018-12-18 16:56:52 +01:00
Takeshi KOMIYA
e115eafa43 Fix #5834: apidoc: wrong help for --tocfile 2018-12-19 00:43:37 +09:00
Takeshi KOMIYA
a2ec232c71 refactor: latex: Initialize 'logofilename' on context 2018-12-18 23:41:13 +09:00
Takeshi KOMIYA
3905cb8b7c Merge branch '1.8' 2018-12-18 23:32:52 +09:00
Takeshi KOMIYA
9574607578 Merge pull request #5827 from tk0miya/refactor_io3
Refactor sphinx.io
2018-12-18 23:28:50 +09:00
Takeshi KOMIYA
bc7814e33a Merge pull request #5828 from tk0miya/reorder_arguments_for_Translators
Reorder the arguments for translators
2018-12-18 23:17:19 +09:00
Takeshi KOMIYA
f596439a0f Merge pull request #5786 from tk0miya/requests-2.5
Update deps: requests-2.5.0 or above
2018-12-18 23:12:19 +09:00
Takeshi KOMIYA
518c2f2e0e Merge pull request #5829 from tk0miya/5724_setlocale_failure
Fix #5724: quickstart: sphinx-quickstart fails when $LC_ALL is empty
2018-12-18 23:10:32 +09:00
Michael Goerz
77e617e25a Use mathjax CDN "latest" URL by default
Closes #5725
2018-12-17 22:14:25 -05:00
Takeshi KOMIYA
afea0b1085 Merge pull request #5831 from jdufresne/term-decode
Deprecate quickstart.term_decode() and remove internal uses
2018-12-18 00:24:04 +09:00
Jon Dufresne
43ff640b58 Deprecate quickstart.term_decode() and remove internal uses
Per the Python 3 docs, input() always returns a string:

https://docs.python.org/3/library/functions.html#input

> The function then reads a line from input, converts it to a
> string (stripping a trailing newline), and returns that.

The stubs from typeshed say the same:

5c69373890/stdlib/3/builtins.pyi (L835)

Here is the implementation from CPython with also shows a call to
PyUnicode_Decode on the result:

https://github.com/python/cpython/blob/3.7/Python/bltinmodule.c#L1960-L2143

As the value is always a string, there is nothing to decode. Therefore
the call to term_decode() unnecessary and can safely be removed.

With this in mind, must adjust quickstart tests to be more
representative.
2018-12-17 06:44:17 -08:00
jfbu
cce4ad7f80 Merge branch '1.8'
(Resolved) Conflicts:
	sphinx/domains/cpp.py
2018-12-17 15:23:00 +01:00
Takeshi KOMIYA
a3ab764a5b Reorder the arguments for translators 2018-12-17 23:20:01 +09:00
Takeshi KOMIYA
4b331dae48 Fix #5724: quickstart: sphinx-quickstart fails when $LC_ALL is empty 2018-12-17 23:08:08 +09:00
Takeshi KOMIYA
f3350b8b7d Deprecate SphinxFileInput.supported 2018-12-17 22:26:29 +09:00
Takeshi KOMIYA
636ca67528 Deprecate SphinxBaseFileInput 2018-12-17 22:08:00 +09:00
Takeshi KOMIYA
de49b991f6 refactor: Use simple Input class 2018-12-17 22:07:56 +09:00
Takeshi KOMIYA
71a7ce1453 Merge branch 'master' into string-classes 2018-12-17 18:58:32 +09:00
Jon Dufresne
c4baa7234e Deprecate the old IndexBuilder.feed() method signature
The method signature changed in commit
d27386cc95 (Jun 8, 2016).
2018-12-16 13:52:56 -08:00
Jon Dufresne
80861d105b Deprecate sphinx.config.string_classes; remove all internal uses
With only a single text type across supported Python versions, the
string_classes is no longer necessary.

Internally, all uses were converted to the value `[str]`. For
.add_config_value() uses that also supply a default string, the type is
inferred.
2018-12-16 11:35:06 -08:00
Jakob Lykke Andersen
57f70d0f1d C++, fix assertion in partial builds with duplicates
Fixes sphinx-doc/sphinx#5496
2018-12-16 19:36:35 +01:00
jfbu
30ec4b6bba Merge branch '1.8' 2018-12-16 18:34:05 +01:00
Jakob Lykke Andersen
73a8b7e658 Merge branch 'cpp_fix_float_literals' into 1.8 2018-12-16 17:19:57 +01:00
Jakob Lykke Andersen
b3de33deef C++, fix parsing of floating point literals
Fixes sphinx-doc/sphinx#5636
2018-12-16 16:56:55 +01:00
jfbu
88a019dc99 LaTeX: allow sphinxVerbatim usage without explicit "hllines" extra setup
Fixes: #5810
2018-12-16 16:54:28 +01:00
Takeshi KOMIYA
6461ea233b Merge pull request #5793 from tk0miya/pretty_changes
Pretty changes
2018-12-16 23:13:37 +09:00
Takeshi KOMIYA
1bf9a7eac5 Deprecate LaTeXTranslator.collect_footnotes() 2018-12-16 21:52:30 +09:00
Takeshi KOMIYA
531c9f0384 Fix typo 2018-12-16 21:51:33 +09:00
Takeshi KOMIYA
048cfb5e0a Deprecate UnicodeMixin 2018-12-16 21:51:18 +09:00
Takeshi KOMIYA
19a187cb54 Update deps: requests-2.5.0 or above 2018-12-16 21:28:02 +09:00
Jean-François B
6395c7d242 Merge pull request #5790 from jfbu/latex_turnoff_lualatex_ligatures
Latex turnoff lualatex ligatures
2018-12-16 11:00:26 +01:00
Jon Dufresne
49d3a3c0c1 Replace ENOENT errno checks with Python 3 FileNotFoundError
The error is more specific and self documenting.

This removes the last use of sphinx.util.osutil.ENOENT, so it is now
deprecated for removal. sphinx.util.osutil.EEXIST was already unused so
that is deprecated as well.
2018-12-15 09:02:55 -08:00