summaryrefslogtreecommitdiff
path: root/sphinx/ext/imgmath.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Use subprocess.run() instead of Popen()Takeshi KOMIYA2019-01-131-24/+18
| | | | | | Since python3.5, subprocess.run() has been introduced. It works a wrapper of Popen, and it looks much simple and better. This uses it instead of Popen to make our code simple.
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-181-3/+2
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #5803 from jdufresne/encoding-utf8Takeshi KOMIYA2018-12-161-1/+1
|\ \ | | | | | | Avoid respecifying default encoding for .encode()/.decode() calls
| * | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, both .encode() and .decode() default the encoding to 'utf-8'. See the docs: https://docs.python.org/3/library/stdtypes.html#str.encode https://docs.python.org/3/library/stdtypes.html#bytes.decode Simplify and shorten the code by using the default instead of respecifying it.
* | | Merge pull request #5796 from jdufresne/superTakeshi KOMIYA2018-12-161-1/+1
|\ \ \ | | | | | | | | Use Python 3 super() argument-less syntax
| * | | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-1/+1
| |/ / | | | | | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | | Replace ENOENT errno checks with Python 3 FileNotFoundErrorJon Dufresne2018-12-151-7/+3
|/ / | | | | | | | | | | | | | | 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.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-11/+10
| |
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-1/+1
| |
* | Fix annotationsTakeshi KOMIYA2018-12-081-1/+1
| |
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-1/+1
| |
* | Fix annotaions for extensionsTakeshi KOMIYA2018-11-281-7/+8
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Use super() to call parent class's methodJon Dufresne2018-11-111-1/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-1/+1
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-1/+1
| |
* | Prefer builtin open() over io.open() and codecs.open()Jon Dufresne2018-09-111-2/+1
|/ | | | | | | | | | | | In Python3, the functions io.open() is an alias of the builtin open() and codecs.open() is functionally equivalent. To reduce indirection, number of imports, and number of patterns, always prefer the builtin. https://docs.python.org/3/library/io.html#high-level-module-interface > io.open() > > This is an alias for the builtin open() function.
* Merge branch '1.7'Takeshi KOMIYA2018-08-171-2/+1
|\
| * Fix #5298: imgmath: math_number_all causes equations to have two numbers in htmlTakeshi KOMIYA2018-08-151-2/+1
| |
* | Deprecate whole of sphinx.ext.mathbaseTakeshi KOMIYA2018-07-291-4/+3
| |
* | Implement math_renderer frameworkTakeshi KOMIYA2018-07-281-6/+5
| |
* | Enable math_block node rendering by default (without HTML builders)Takeshi KOMIYA2018-05-171-9/+6
| |
* | Enable math node rendering by default (without HTML builders)Takeshi KOMIYA2018-05-151-8/+11
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\ \ | |/
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Make console and warning messages translatableTakeshi KOMIYA2018-03-031-7/+7
|/
* Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
|
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-9/+8
|
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | make math_numfig work with singlehtml writerOliver Jahn2017-12-161-1/+1
| |
* | use numfig for numbering equations by section rather than pageOliver Jahn2017-10-181-1/+3
|/
* Fix mypy violationsTakeshi KOMIYA2017-06-121-5/+7
|
* Fix #3835: sphinx.ext.imgmath fails to convert SVG images if project ↵Takeshi KOMIYA2017-06-111-85/+146
| | | | directory name contains spaces
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-1/+1
| |
* | Remove unused "type: ignore"Takeshi KOMIYA2017-02-061-1/+1
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-01-121-1/+1
|\ \ | |/
| * Fix flake8 violationsTakeshi KOMIYA2017-01-121-1/+1
| |
* | Update by reviewTakeshi KOMIYA2017-01-041-2/+2
| |
* | Use loggersTakeshi KOMIYA2017-01-021-9/+12
| |
* | Merge branch '1.5-release'Takeshi KOMIYA2016-11-231-2/+3
|\ \ | |/
| * Merge branch 'stable' into 1.5-releaseTakeshi KOMIYA2016-11-231-2/+3
| |\
| | * Fix imgmath: crashes on showing error messages if image generation failedTakeshi KOMIYA2016-11-211-2/+3
| | |
* | | Add type-check annotations to sphinx.extTakeshi KOMIYA2016-11-161-4/+17
|/ /
* | sphinx.ext.math: Update the label of permalinkTakeshi KOMIYA2016-07-191-1/+1
| |