Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Include source in highlighting warnings (#11150) | Jeremy Maitin-Shepard | 2023-03-17 | 1 | -2/+2 |
| | | | | | | | | | | | | | If pygments fails to lex a source string as the specified highlight language, Sphinx prints a warning. Previously, that warning did not include the actual source text, although it does include location information. However, in some cases the location information may be missing, there may be multiple highlighted literals on the same line, or the rST is automatically generated somehow. In such cases, it can be difficult to determine the source text that led to the error. With this change, the source text is included in the warning. | ||||
* | Adopt ``profile = "black"`` for ``isort`` | Adam Turner | 2023-01-07 | 1 | -2/+9 |
| | | | | This allows using Ruff's import sorting fixers | ||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 1 | -2/+2 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -4/+4 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -6/+6 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Fix highlighting lexers | Adam Turner | 2022-09-25 | 1 | -0/+2 |
| | | | | - Ensure `pycon3` is always normalised to `pycon` | ||||
* | Remove Pygments compatability code (#10812) | Adam Turner | 2022-09-09 | 1 | -28/+5 |
| | |||||
* | Improve static typing strictness (#10569) | danieleades | 2022-07-18 | 1 | -4/+4 |
| | |||||
* | Fix #10506 (again): replacements to Pygments escapes | Jean-François B | 2022-07-02 | 1 | -4/+31 |
| | | | | Relates: pygments/pygments#2172 | ||||
* | LaTeX: fix #10506 (make Pygments \PYG macro \protected) | Jean-François B | 2022-06-30 | 1 | -2/+7 |
| | |||||
* | Collapse single line docstrings | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove copyright and licence fields | Adam Turner | 2022-02-20 | 1 | -3/+0 |
| | |||||
* | Fix module docstring indentation | Adam Turner | 2022-02-20 | 1 | -2/+2 |
| | |||||
* | Fix module docstring first line | Adam Turner | 2022-02-20 | 1 | -2/+1 |
| | |||||
* | Remove module titles in docstrings | Adam Turner | 2022-02-19 | 1 | -3/+0 |
| | |||||
* | A happy new year! | Takeshi KOMIYA | 2022-01-01 | 1 | -1/+1 |
| | |||||
* | Replace distutils.versions.LooseVersion by packaging.version.Version | Takeshi KOMIYA | 2021-11-07 | 1 | -2/+2 |
| | | | | | | | Distutils module are now deprecated and will be removed in Python 3.12. This replaces it by packaging module and reduces the dependency to it. refs: #9820 | ||||
* | refactor: Use PEP-526 based variable annotation | Takeshi KOMIYA | 2021-04-08 | 1 | -4/+4 |
| | |||||
* | Mention pygments_style in sphinxhighlight.sty | jfbu | 2021-02-13 | 1 | -0/+1 |
| | |||||
* | LaTeX, better workaround for a Pygments <= 2.7.4 line spacing issue | jfbu | 2021-02-13 | 1 | -0/+15 |
| | | | | | | Closes: #8874 Relates #4249 | ||||
* | A happy new year! | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 |
| | | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype | ||||
* | Sort imports with isort | François Freitag | 2020-11-11 | 1 | -5/+3 |
| | | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip. | ||||
* | Fix #7139: ``code-block:: guess`` does not work | Takeshi KOMIYA | 2020-02-12 | 1 | -6/+1 |
| | |||||
* | Merge branch '2.0' | Takeshi KOMIYA | 2020-01-01 | 1 | -3/+3 |
|\ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2020-01-01 | 1 | -1/+1 |
| | | |||||
| * | mypy: Enable disallow_incomplete_defs flag for type checking | Takeshi KOMIYA | 2019-12-30 | 1 | -2/+2 |
| | | |||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-12-25 | 1 | -18/+12 |
|\ \ | |/ | |||||
| * | Migrate to py3 style type annotation: sphinx.highlighting | Takeshi KOMIYA | 2019-12-25 | 1 | -21/+13 |
| | | |||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-12-16 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | LaTeX: avoid quotes and TeX ligature replacements in PDF output | jfbu | 2019-12-15 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refs: #6890 The comma character is not TeX-escaped because it is frequent in general text and escaping it would make the LaTeX output larger for only dealing with the problem of the LaTeX-ligature of ,, into a single character. And one there is problem with the commas in options to Verbatim from PygmentsBridge. The hyphen character is escaped (not in ids and URIs!) to \sphinxhyphen{} for both Unicode and non-Unicode engines. This is needed to work around hyperref transforming -- and --- from section titles into EN DASH resp. EM DASH in PDF bookmarks. https://github.com/latex3/hyperref/issues/112 Note to expert LaTeX users: if Sphinx latex user with xelatex has - turned off Smart Quotes for some reason, - but does want TeX ligatures and thus overrode Sphinx latex_elements['fontenc'] default (since #6888) to this effect, then this should be added to LaTeX preamble: \def\sphinxhyphen#1{-}% (\protected is now not needed) \let\sphinxhyphenforbookmarks\sphinxhyphen | ||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-11-30 | 1 | -4/+2 |
|\ \ | |/ | |||||
| * | Make escape() and hlescape() as public APIs of texescape | Takeshi KOMIYA | 2019-11-16 | 1 | -5/+3 |
| | | |||||
* | | Fix flake8 violation | Takeshi KOMIYA | 2019-11-17 | 1 | -1/+1 |
| | | |||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-11-17 | 1 | -4/+6 |
|\ \ | |/ | |||||
| * | Fix #6738: latex: literal_block does not support raw unicode characters | Takeshi KOMIYA | 2019-11-16 | 1 | -4/+7 |
| | | |||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-08-19 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Switch uses of __import__ to importlib.get_module() | Jon Dufresne | 2019-08-17 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Python docs for __import__ recommend using importlib.get_module(). https://docs.python.org/3/library/functions.html#__import__ > Note: This is an advanced function that is not needed in everyday > Python programming, unlike importlib.import_module(). As importlib.get_module() uses the Python module cache and returns the module, this also allows simplifying many module cache checks of use of sys.modules. importlib.get_module() has been available since Python 3.3. | ||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-06-21 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Fix #6497: custom lexers fails highlighting when syntax error | Takeshi KOMIYA | 2019-06-18 | 1 | -1/+2 |
| | | |||||
* | | Merge commit '54d5fcfaebc3364044761d30c0fed6bd4d3052c3' | Takeshi KOMIYA | 2019-06-02 | 1 | -30/+41 |
|\ \ | |/ | |||||
| * | Add :force: option to code directives | Takeshi KOMIYA | 2019-06-01 | 1 | -14/+15 |
| | | |||||
| * | highlight: Enable raiseonerror only if force=False | Takeshi KOMIYA | 2019-06-01 | 1 | -29/+38 |
| | | |||||
* | | Merge branch '2.0' | Takeshi KOMIYA | 2019-05-13 | 1 | -15/+27 |
|\ \ | |/ | |||||
| * | refactor: Add PygmentsBridge.get_style() and .get_lexer() | Takeshi KOMIYA | 2019-05-12 | 1 | -15/+27 |
| | | |||||
* | | Drop features and APIs deprecated in 1.8 | Takeshi KOMIYA | 2019-03-30 | 1 | -31/+2 |
|/ | |||||
* | Clean up import for annotations | Takeshi KOMIYA | 2019-03-06 | 1 | -1/+1 |
| | |||||
* | Merge branch '1.8' | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 |
|\ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 |
| | | |||||
* | | Replace use of six.text_type with str | Jon Dufresne | 2018-12-18 | 1 | -2/+1 |
| | | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency. |