Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Support and prefer ``.jinja`` to ``_t`` for static templates ↵ | James Addison | 2023-04-23 | 1 | -16/+3 |
| | | | | | (#11165)" (#11329) This reverts commit 5d13215b58f93c6be8255ef2e3e20836508c7d47. | ||||
* | Support and prefer ``.jinja`` to ``_t`` for static templates (#11165) | James Addison | 2023-04-07 | 1 | -3/+16 |
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> | ||||
* | Run pyupgrade (#11070) | Adam Turner | 2023-01-02 | 1 | -3/+3 |
| | |||||
* | Use PEP 604 types | Adam Turner | 2023-01-01 | 1 | -3/+3 |
| | |||||
* | Use PEP 595 types | Adam Turner | 2023-01-01 | 1 | -3/+3 |
| | |||||
* | Insert ``from __future__ import annotations`` | Adam Turner | 2023-01-01 | 1 | -0/+2 |
| | |||||
* | Fix more strict static typing errors (#10681) | danieleades | 2022-08-28 | 1 | -4/+5 |
| | |||||
* | 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 |
| | |||||
* | Merge branch '3.x' | Takeshi KOMIYA | 2021-01-01 | 1 | -1/+1 |
|\ | |||||
| * | 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 | ||||
* | | Do isort | Takeshi KOMIYA | 2020-11-12 | 1 | -2/+1 |
| | | |||||
* | | Merge branch '3.x' into master | Takeshi KOMIYA | 2020-10-03 | 1 | -5/+13 |
|\ \ | |/ | |||||
| * | Close #8100: html: Show a better error message for html_static_files | Takeshi KOMIYA | 2020-08-14 | 1 | -5/+13 |
| | | | | | | | | | | | | The HTML Builder crashes if error raised on copying html_static_files. This handles the exception and show a better error message to let users the reason of errors (ex. failed on extracting Jinja templates). | ||||
* | | Hello TYPE_CHECKING! | Takeshi KOMIYA | 2020-03-07 | 1 | -2/+2 |
|/ | |||||
* | A happy new year! | Takeshi KOMIYA | 2020-01-01 | 1 | -1/+1 |
| | |||||
* | Migrate to py3 style type annotation: sphinx.util.fileutil | Takeshi KOMIYA | 2019-06-02 | 1 | -7/+7 |
| | |||||
* | Merge branch '1.8' | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 |
|\ | |||||
| * | A happy new year! | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #5509 from stephenfin/remove-future-imports | Takeshi KOMIYA | 2018-12-17 | 1 | -1/+0 |
|\ \ | | | | | | | Remove future imports | ||||
| * | | py3: Remove (most) __future__ imports | Stephen Finucane | 2018-12-17 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru> | ||||
* | | | Remove unnecessary encoding cookie from Python source files | Jon Dufresne | 2018-12-16 | 1 | -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. | ||||
* | | Replace all "unicode" type by "str" | Takeshi KOMIYA | 2018-12-15 | 1 | -3/+2 |
| | | |||||
* | | Move to py3 mode for mypy (and remove many "type: ignore" comments) | Takeshi KOMIYA | 2018-12-15 | 1 | -2/+2 |
| | | |||||
* | | Simplify open() call by removing default mode | Jon Dufresne | 2018-12-11 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | The open() function opens files in read-only text mode by default. Drop the mode argument to be slightly simpler and more idiomatic. https://docs.python.org/3/library/functions.html#open > The default mode is 'r' (open for reading text, synonym of 'rt'). | ||||
* | | Add sphinx.util.typing:unicode to help mypy-3 migration | Takeshi KOMIYA | 2018-11-24 | 1 | -0/+1 |
| | | |||||
* | | Simplify ensuredir() with Python3 stdlib features | Jon Dufresne | 2018-11-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | - Simplify ensuredir() to equivalent os.makedir(name, exist_ok=True) - Do not check if a directory exists before calling ensuredir() (ensuredir() already handles it) - Add exist_ok argument to path.makedirs() to follow same pattern - Drop unnecessary .exists() check immediately before .isdir() - Add tests for ensuredir | ||||
* | | refactor: Separate message catalogs to sphinxmessage.sty | Takeshi KOMIYA | 2018-10-07 | 1 | -1/+1 |
| | | |||||
* | | Deprecate Python2 compat shim sphinx.util.osutil.walk() | Jon Dufresne | 2018-10-05 | 1 | -2/+2 |
| | | | | | | | | | | Code should use os.walk() instead, which works with either str or bytes. All internal calls use str. | ||||
* | | Prefer builtin open() over io.open() and codecs.open() | Jon Dufresne | 2018-09-11 | 1 | -3/+2 |
|/ | | | | | | | | | | | | 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. | ||||
* | Optimize copy_asset() | Takeshi KOMIYA | 2018-05-02 | 1 | -0/+4 |
| | | | | Instantiate default renderer object only once to reduce the cost. | ||||
* | Revert "Use typing.TYPE_CHECKING for typehints" | Takeshi KOMIYA | 2018-03-13 | 1 | -2/+2 |
| | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4. | ||||
* | Use typing.TYPE_CHECKING for typehints | Takeshi KOMIYA | 2018-02-14 | 1 | -2/+2 |
| | |||||
* | Use flake8-import-order | Takeshi KOMIYA | 2018-01-28 | 1 | -1/+3 |
| | |||||
* | A happy new year! | Takeshi KOMIYA | 2018-01-01 | 1 | -1/+1 |
| | |||||
* | copy static files beyond symlinked directories under _static directory. | shimizukawa | 2017-08-16 | 1 | -1/+1 |
| | | | | This issue caused from ref #2744 | ||||
* | Update type annotations for new mypy | Takeshi KOMIYA | 2017-05-07 | 1 | -1/+1 |
| | |||||
* | Merge branch 'stable' | Takeshi KOMIYA | 2017-03-26 | 1 | -1/+1 |
|\ | |||||
| * | Year++ | Takeshi KOMIYA | 2017-03-26 | 1 | -1/+1 |
| | | |||||
* | | Upgrade to mypy-0.5 | Takeshi KOMIYA | 2017-03-03 | 1 | -1/+1 |
| | | |||||
* | | Fix mypy violations | Takeshi KOMIYA | 2017-02-08 | 1 | -3/+11 |
|/ | |||||
* | Fix copy_asset_file() rewrote destination-filename | Takeshi KOMIYA | 2017-01-09 | 1 | -1/+3 |
| | |||||
* | Fix #2687: Uninstall sphinx directives and roles after build | Takeshi KOMIYA | 2016-09-21 | 1 | -0/+2 |
| | |||||
* | Fix importing error | Takeshi KOMIYA | 2016-07-08 | 1 | -1/+1 |
| | |||||
* | Fix typo | Takeshi KOMIYA | 2016-07-08 | 1 | -1/+1 |
| | |||||
* | Use SphinxRenderer as a default renderer of copy_asset() | Takeshi KOMIYA | 2016-07-07 | 1 | -6/+6 |
| |