Commit Graph

93 Commits

Author SHA1 Message Date
Takeshi KOMIYA
ab184ac20d mypy: Enable disallow_incomplete_defs flag for type checking 2019-12-30 17:22:56 +09:00
Takeshi KOMIYA
42a02b76e8 Migrate to py3 style type annotation: sphinx.cmdline 2019-12-25 02:01:50 +09:00
Takeshi KOMIYA
5aee836dc1 Close #4683: i18n: make explicit titles in toctree translatable 2019-11-01 22:01:06 +09:00
Takeshi KOMIYA
76e9f57c2e Merge branch '1.8' 2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75 A happy new year! 2019-01-02 16:00:30 +09:00
jfbu
32d57b8637 Merge branch '1.8'
resolved Conflicts:
	doc/development/tutorials/todo.rst
	sphinx/locale/__init__.py
	sphinx/search/zh.py
2018-12-28 12:50:20 +01:00
jfbu
1e07cb10fc Fix various spelling typos 2018-12-27 13:06:33 +01:00
Jon Dufresne
bade33c7e4 Remove unnecessary encoding cookie from Python source files
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:

https://docs.python.org/3/howto/unicode.html#the-string-type

> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...

Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Jon Dufresne
ade973f4e3 Use Python 3 super() argument-less syntax
The form is less verbose and more idiomatic for Python 3 only code.

https://docs.python.org/3/library/functions.html#super
2018-12-15 08:35:55 -08:00
Takeshi KOMIYA
6bc357140d Replace all "unicode" type by "str" 2018-12-15 23:57:43 +09:00
Takeshi KOMIYA
08bc847964 Deprecate abbreviation node (refs: #5720) 2018-12-15 20:13:04 +09:00
Takeshi KOMIYA
446f92362b Install abbreviation node forcedly 2018-12-05 00:05:51 +09:00
Takeshi KOMIYA
773568a4e2 refactor: Use app.add_node() to register Sphinx own nodes 2018-12-05 00:05:51 +09:00
Takeshi KOMIYA
fd73a169c7 Fix annotations (minor fixes) 2018-12-03 01:11:06 +09:00
Takeshi KOMIYA
d6eacf3198 Fix annotations for Directives (Replace N_co with nodes.Node) 2018-12-01 19:49:14 +09:00
Takeshi KOMIYA
495483d28d Fix annotations for i18n 2018-12-01 16:48:05 +09:00
Takeshi KOMIYA
31c4d06a22 refactor: Use super() to call methods of superclass 2018-11-28 01:58:32 +09:00
Takeshi KOMIYA
3c99d00605 Add sphinx.util.typing:unicode to help mypy-3 migration 2018-11-24 23:19:51 +09:00
Takeshi KOMIYA
8b687ac304 Merge branch '1.8' 2018-11-01 01:24:12 +09:00
Takeshi KOMIYA
257394a459 Fix #5471: Show appropriate warning for deprecated APIs 2018-10-17 02:05:07 +09:00
Jon Dufresne
490e4aed41 Remove unnecessary object from class definitions
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Takeshi KOMIYA
e6c51bd535 refactor: Move math_reference node to sphinx.builders.latex.nodes
The node is only used in latex builder.  So this makes it builder-
specific node.
2018-05-20 15:13:59 +09:00
Takeshi KOMIYA
46af04694a Add warning to docstring of math nodes 2018-05-19 16:05:33 +09:00
Takeshi KOMIYA
5f31f9dbab Enable eq role by default 2018-05-17 00:42:44 +09:00
Takeshi KOMIYA
e675ad2ec9 Enable math_block node rendering by default (without HTML builders) 2018-05-17 00:42:22 +09:00
Takeshi KOMIYA
4e04bff4f5 Enable math node rendering by default (without HTML builders)
Nowadays, math elements (inline and block level equations) are
integrated into reST spec by default.  But, in Sphinx, they are
not enabled by default.  For this reason, users have to enable
one of math extensions even if target builder supports math
elements directly.

This change starts to enable them by default.  As a first step,
this replaces math node and its structure by docutils based one.
2018-05-15 22:27:49 +09:00
Takeshi KOMIYA
70a622b86c Revert "Use typing.TYPE_CHECKING for typehints"
This reverts commit a073e17537.
2018-03-13 23:23:15 +09:00
Takeshi KOMIYA
a073e17537 Use typing.TYPE_CHECKING for typehints 2018-02-14 22:57:38 +09:00
Takeshi KOMIYA
2426cedb8b A happy new year! 2018-01-01 01:06:58 +09:00
Takeshi KOMIYA
1f8604e481 Fix :manpage: role is smarty-quoted (refs: #3286) 2017-07-01 18:20:05 +09:00
Takeshi KOMIYA
837ee21c9d Refactor smart-quotes detector 2017-06-24 23:44:40 +09:00
Takeshi KOMIYA
fc36f90246 fix 2017-06-18 22:59:48 +09:00
Takeshi KOMIYA
8f9dd64992 Merge branch 'stable' 2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042 Year++ 2017-03-26 11:49:34 +09:00
Takeshi KOMIYA
554199d30e Upgrade to mypy-0.5 2017-03-03 23:17:34 +09:00
Takeshi KOMIYA
6fa0262802 Fix mypy violations 2017-02-08 18:38:42 +09:00
Takeshi KOMIYA
76443623fa Drop deprecated termsep node 2017-01-05 13:44:04 +09:00
shimizukawa
93dacedfed Fix #3253: In Py2 environment, building another locale with a non-captioned toctree produces None captions 2016-12-17 15:39:06 +09:00
shimizukawa
816b1db93d Emit several warnings that will be deprecated in Sphinx 1.6. There is no way to hide the warnings. 2016-12-04 14:09:17 +09:00
Takeshi KOMIYA
4b5eebdc87 Merge branch 'stable' into 1.5-release 2016-11-16 11:45:57 +09:00
shimizukawa
d50b9b9dce insert blank line(s) to adapt latest flake8/pycodestyle 2016-11-16 10:58:41 +09:00
Jakob Lykke Andersen
4c2815bc95 Make rendering of multiline signatures better in html. 2016-10-20 09:28:59 +02:00
Takeshi KOMIYA
9feebd01d1 Use new style python classes 2016-09-10 15:36:57 +09:00
Takeshi KOMIYA
9b00c31ee2 Fix #1734: Could not translate the caption of toctree directive 2016-09-01 17:58:24 +09:00
Takeshi KOMIYA
cd1e339c80 Fix docstring; wrong directive name 2016-05-27 23:08:02 +09:00
shimizukawa
03af1ca4dd add docstring to write more detail of 'key' of index node 2016-05-25 22:59:03 +09:00
Takeshi KOMIYA
881455ca4b Fix docstring; structure of index node has changed since Sphinx-1.4 2016-05-24 11:42:19 +09:00
shimizukawa
cca371de87 Remove termset node. It is not used anywhere. Restore termsep node and set as Deprecation. refs #2251 2016-02-14 15:11:07 +09:00
shimizukawa
804e866404 Now term nodes in a glossary directive are wrapped with termset node to handle multiple term correctly.
Fix #2251; Line breaks in .rst files are transferred to .pot files in a wrong way.
2016-02-14 15:11:06 +09:00
Takeshi KOMIYA
50426a711c Fix #2060: `:manpage:` role uses incorrect style (node)
It should be use bold style to reference man pages in man format.
On other formats, it is still represented as emphasis.
2016-01-17 19:50:06 +09:00