summaryrefslogtreecommitdiff
path: root/sphinx/config.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | 🐛 FIX: `Config.__getitem__` typingChris Sewell2021-04-231-1/+1
|/
* refactor: Use PEP-526 based variable annotationTakeshi KOMIYA2021-04-081-6/+6
|
* Close #8326: Rename master_doc to root_docTakeshi KOMIYA2021-02-281-9/+10
| | | | | | To describe the purpose more accurately, the `master_doc` is now renamed to `root_doc`. The old name is still available. But it is recommeneded to use new one from now on.
* Merge branch '3.x'Takeshi KOMIYA2021-01-161-0/+13
|\
| * Close #207: Now highlight_language supports multiple languagesTakeshi KOMIYA2021-01-111-0/+13
| | | | | | | | | | | | This changes the structure of `highlight_options` to a dictionary that maps language names to option dictionary. It allows to setting pygments options for multiple languages at once.
* | Merge branch '3.x'Takeshi KOMIYA2021-01-011-1/+1
|\ \ | |/
| * Merge branch '3.4.x' into 3.xTakeshi KOMIYA2021-01-011-1/+1
| |\
| | * A happy new year!Takeshi KOMIYA2021-01-011-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
* | | Merge branch '3.x'Takeshi KOMIYA2020-12-291-1/+2
|\ \ \ | |/ /
| * | Close #8132: Add project_copyright confval as an alias of copyrightTakeshi KOMIYA2020-12-271-1/+2
| |/ | | | | | | | | Avoid to pylint error, add a new config variable; project_copyright as an alias of `copyright`.
* | Merge branch '3.x'Takeshi KOMIYA2020-12-201-0/+8
|\ \ | |/
| * Fix #8549: i18n: ``-D gettext_compact=0`` is no longer workingTakeshi KOMIYA2020-12-201-0/+8
| | | | | | | | | | | | Since 1bf7fe424, ``-D gettext_compact=0`` is not treated as disabling the feature. It is recognized as creating ``0.pot`` because its type is Any. This changes it to `[bool, str]`.
* | Remove config variable: source_parsersTakeshi KOMIYA2020-11-151-1/+0
| | | | | | | | | | | | | | It was already deprecated at 1.8.0 and removed at 3.0.0. So the definition is no longer used. refs: dc45877d3cb9f67348d3e2857bc489e16b71f61a
* | Merge branch '3.x'Takeshi KOMIYA2020-11-121-5/+3
|\ \ | |/
| * Sort imports with isortFrançois Freitag2020-11-111-4/+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.
* | Merge branch '3.x'Takeshi KOMIYA2020-07-051-7/+7
|\ \ | |/
| * Fix exception causes all over the codebaseRam Rachum2020-06-141-7/+7
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-06-041-1/+1
|\ \ | |/
| * Merge branch '3.0.x' into 3.xTakeshi KOMIYA2020-06-031-1/+1
| |\
| | * Fix mypy violations (with mypy-0.780)Takeshi KOMIYA2020-06-031-1/+1
| | |
| * | Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-1/+1
| |/
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-22/+0
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-04-061-5/+5
|\ \ | |/
| * Fix #7409: Convert configuration values on late config-inited eventTakeshi KOMIYA2020-04-051-5/+5
| | | | | | | | | | | | This changes a priority for config-inited handlers of core modules to invoke them at the late of the event. It allows extensions to modify configurations.
* | Deprecate sphinx.util.pycompat.execfile_()Takeshi KOMIYA2020-03-161-3/+4
| |
* | Hello TYPE_CHECKING!Takeshi KOMIYA2020-03-071-2/+2
| |
* | Use typing.NamedTuple instead of collections.namedtuple as possibleTakeshi KOMIYA2020-03-071-3/+5
|/
* Close #7108: Allow to show an error message from conf.py via ConfigErrorTakeshi KOMIYA2020-02-101-0/+3
|
* Merge branch '2.0'Takeshi KOMIYA2020-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2020-01-011-1/+1
| |
| * mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-1/+1
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-12-251-59/+34
|\ \ | |/
| * Migrate to py3 style type annotation: sphinx.configTakeshi KOMIYA2019-12-251-63/+36
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-12-161-0/+6
|\ \ | |/
| * Fix #6900: sphinx-build: -D option does not considers 0 and 1 as a boolean valueTakeshi KOMIYA2019-12-151-0/+6
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-11-301-5/+5
|\ \ | |/
| * Fix #6848: config.py shouldn't pop extensions from overridesTakeshi KOMIYA2019-11-201-5/+5
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-11-171-0/+1
|\ \ | |/
| * Close #1331: Change default User-Agent headerTakeshi KOMIYA2019-10-271-0/+1
| |
* | Drop features and APIs deprecated in 1.8Takeshi KOMIYA2019-03-301-34/+3
|/
* Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+1
|
* refactor: Move NoneType to sphinx.util.typingTakeshi KOMIYA2019-02-111-1/+2
|
* 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-4/+2
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Merge pull request #5819 from jdufresne/coding-commentTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove unnecessary encoding cookie from Python source files
| * | 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.
* | | Deprecate sphinx.config.string_classes; remove all internal usesJon Dufresne2018-12-161-9/+10
|/ / | | | | | | | | | | | | | | | | 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.
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-2/+2
| |
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-19/+18
| |