Commit Graph
100 Commits
Author SHA1 Message Date
Adam Turner 72760ad5f3 Ensure that `[theme] and [options] are tables in theme.toml` 2024-04-11 19:01:17 +01:00
Adam Turner 44a42d53af Add basic tests for `_ConfigFile` 2024-04-11 19:01:17 +01:00
Adam Turner fba5d2af6c Convert `theme.conf to theme.toml` (part 2) 2024-04-11 19:01:17 +01:00
Adam Turner e29e5fed36 Convert `theme.conf to theme.toml` (part 1) 2024-04-11 19:01:17 +01:00
Adam Turner 254bfe4f4e Add `theme.toml` migration tool 2024-04-11 19:01:17 +01:00
Adam Turner 8976fa4498 Support `theme.toml` 2024-04-11 19:01:17 +01:00
Adam Turner a5d7cce7f5 Fix `_ConfigFile` handling of sequence types 2024-04-11 19:01:17 +01:00
Adam Turner 6fd8b30043 Parse `theme.conf to a new _ConfigFile` type (#12254) 2024-04-10 00:10:26 +01:00
Adam Turner 9ebfadbcad Create subsection for theme configuration 2024-04-09 18:34:55 +01:00
Adam Turner e3f0aa9307 Ensure raw strings are used for regular expression patterns 2024-04-09 18:33:42 +01:00
Adam Turner 3421e5382a Narrow `Generator[T, None, None] types to Iterator[T]` (#12241) 2024-04-09 03:26:44 +01:00
Adam TurnerandDaniel Eades fa29004951 Bump Ruff to 0.1.14 and remove flake8-simplify (#11906)
Authored-by: Daniel Eades <danieleades@hotmail.com>
Co-authored-by: Daniel Eades <danieleades@hotmail.com>
2024-01-21 20:42:23 +00:00
Adam Turner 360c7a8022 Load themes through iteration rather than recursion 2024-01-21 03:59:31 +00:00
Adam Turner 99dd0cb4c6 Refactor `sphinx.theming` to prepare for iterative loading 2024-01-21 03:59:31 +00:00
Adam Turner 256c8f9de0 Define theme properties on the `Theme` object 2024-01-21 03:59:31 +00:00
Adam Turner fda9a313a6 Extract sub-functions from `Theme.__init__()` 2024-01-21 03:59:31 +00:00
Adam Turner 0ca2ddf924 Make various theme-related objects private 2024-01-21 03:59:31 +00:00
Adam Turner 49d1e7142e Fix formatting 2024-01-19 04:40:29 +00:00
Adam Turner a9ba9f92d3 Expand all any-generics overrides 2024-01-19 04:39:31 +00:00
Adam Turner 7c24d408f8 Remove an extra line in various C / C++ domain modules 2024-01-19 03:57:15 +00:00
Adam Turner e9dcfebcf9 Split the Python domain into multiple modules
``sphinx.domains.python`` was previously over 1,700 lines long
2024-01-19 03:55:47 +00:00
Adam Turner 1327ec71f2 Fix flake8 in test_build_latex 2024-01-19 03:28:23 +00:00
Adam Turner 4f962bf8e0 Split the C domain into multiple modules
``sphinx.domains.c`` was previously over 3,90 lines long
2024-01-19 03:28:23 +00:00
Adam Turner 7d30821e87 Split the C++ domain into multiple modules
``sphinx.domains.cpp`` was previously over 8,200 lines long
2024-01-19 03:28:23 +00:00
Adam Turner 41b79ee4ff Move some domains into packages 2024-01-19 02:30:51 +00:00
Adam Turner 38ac67bd6c Use long `re` flags 2024-01-19 02:28:06 +00:00
Adam Turner 183dd51f4d Explode the test matrix for test_build_latex_doc 2024-01-19 02:28:06 +00:00
Adam Turner 4c9364896e Consolidate warnings tests in `test_build_warnings` 2024-01-19 02:28:06 +00:00
Adam Turner 6fab64fb55 Explicitly remove the `autodoc_fodder` module 2024-01-19 02:28:06 +00:00
Adam TurnerandJakob Lykke Andersen f195c4ae87 Various C++ domain performance improvements (#11895)
Authored-by: Jakob Lykke Andersen <Jakob@caput.dk>
Co-authored-by: Jakob Lykke Andersen <Jakob@caput.dk>
2024-01-19 02:20:43 +00:00
Adam Turner e3b613aa37 Clean up global state in SphinxTestApp 2024-01-18 23:30:22 +00:00
Adam Turner 1785fc9352 Remove spurious blank lines 2024-01-18 01:26:17 +00:00
Adam Turner 311ca30564 Improve `check_xpath` 2024-01-18 01:21:09 +00:00
Adam Turner 898e50c2c7 Remove `flat_dict` 2024-01-18 01:16:49 +00:00
Adam Turner 0331bdec0e Fix import order 2024-01-18 00:54:27 +00:00
Adam Turner 7800bf00dc Split `test_domain_py` 2024-01-18 00:52:25 +00:00
Adam Turner 1cb9fc3e63 Split `test_build_html` 2024-01-18 00:52:25 +00:00
Adam Turner 462404cb25 Organise tests into directories 2024-01-17 03:56:35 +00:00
Adam Turner 841f2bd9b7 Remove unneeded uses of `flat_dict()` 2024-01-17 01:58:52 +00:00
Adam Turner 882a174e48 Add 2024 copyright year update to `.git-blame-ignore-revs` 2024-01-16 22:15:22 +00:00
Adam Turner 569fde84d4 Happy New Year! 2024-01-16 22:13:47 +00:00
Adam Turner 55f3089981 Improve uses of `str.join` with a throwaway list 2024-01-16 22:06:34 +00:00
Adam Turner 80d5396f9d Allow the `:no-search:` metadata tag 2024-01-15 08:15:56 +00:00
Adam Turner 9a6885d0d5 Add new maintainers 2024-01-15 08:11:51 +00:00
Adam Turner 53f7ac025f Move those who haven't committed in the last two years to "Former maintainers" 2024-01-15 08:11:51 +00:00
Adam Turner 587e01177d Provide example interface for ``Scorer` 2024-01-14 04:47:44 +00:00
Adam Turner 134703192d Change pytest settings
- Use the 'prepend' import mode
- Show all test statuses, save passed tests
- Set log level to INFO
2024-01-14 04:38:57 +00:00
Adam Turner 5073c29637 Don't copy `{html,epub}_theme_options ` [GH-11203] 2024-01-14 04:27:29 +00:00
Adam Turner 23cef9b59a Use `https://` where possible 2024-01-14 04:18:57 +00:00
Adam Turner 08d2a205c0 Resolve test failures 2024-01-14 03:29:56 +00:00
Adam Turner 1de54e62bd Resolve GitHub Actions failures 2024-01-14 02:57:58 +00:00
Adam Turner f8e8b4745e Enable ANN001, ANN102, ANN202 2024-01-14 02:50:25 +00:00
Adam Turner 0a76199f99 Enable mypy error codes 2024-01-13 22:04:59 +00:00
Adam Turner 17c1aa76c6 Add type hints to untyped definitions 2024-01-13 21:23:48 +00:00
Adam Turner 82d78c19bf Bump Ruff to 0.1.13 2024-01-13 20:49:45 +00:00
Adam Turner 767e39df8c Enable some flake8-annotations (ANN) lint rules 2024-01-13 20:48:09 +00:00
Adam Turner 85400a0430 Improve typing for `_ConfigRebuild` 2024-01-13 02:32:10 +00:00
Adam Turner 6ac7cdbb02 Allow hyphens in group names for productionlist cross-references 2024-01-09 02:36:58 +00:00
Adam Turner db9e476288 Increase the minimum supported version of Alabaster to 0.7.14 (#11858) 2024-01-08 19:49:04 +00:00
Adam Turner a6b0dbc5b9 Remove unused blocks in the `search.html` template 2024-01-08 19:47:09 +00:00
Adam Turner 959f73fe4b Improve `_stable_hash()` 2024-01-08 19:28:20 +00:00
Adam Turner 18394ae96b Add more types with an incorrect `__module__` attribute (#11861) 2024-01-08 18:25:05 +00:00
Adam Turner ea9c61fb38 Add placeholders for pydocstyle (D) in Ruff configuration 2024-01-04 04:27:03 +00:00
Adam Turner 7213e57e29 Enable the entire FA category (flake8-future-annotations) in Ruff 2024-01-04 04:20:14 +00:00
Adam Turner 3b797e10d3 Enable the entire INP category in Ruff 2024-01-04 04:17:17 +00:00
Adam Turner e570f56022 Enable flake8-logging (LOG) rules 2024-01-04 04:16:13 +00:00
Adam Turner df6ac6044f Note Trio isn't used 2024-01-04 04:14:09 +00:00
Adam Turner 1b4177540e Enable RUF017 2024-01-04 04:12:26 +00:00
Adam Turner 9a9599450c Enable RUF019 2024-01-04 04:12:26 +00:00
Adam Turner 97a83acb17 Enable RUF013 2024-01-04 04:12:26 +00:00
Adam Turner 7e7b3def82 Update RUF rules list 2024-01-04 04:12:26 +00:00
Adam Turner 9d6667d8f7 Enable Ruff perflint (PERF) rules 2024-01-04 04:12:26 +00:00
Adam Turner f547aefa15 Enable FURB codes in Ruff config 2024-01-04 03:53:27 +00:00
Adam Turner 4227154cf3 Add placeholder refurb (FURB) entries in Ruff's configuration 2024-01-04 02:58:05 +00:00
Adam Turner 1859b32374 Add missing linters to Ruff configuration 2024-01-04 02:53:12 +00:00
Adam Turner 3d98eeea79 Update Ruff to 0.1.11 2024-01-04 02:43:52 +00:00
Adam Turner bc9479b241 Use long options for sphinx-build in GitHub Actions 2024-01-04 02:40:44 +00:00
Adam Turner efd24cf4ca Defer computation of configuration values (#11855) 2024-01-04 02:23:45 +00:00
Adam Turner 4ce2d84761 Move special-case bool conversion to 'gettext' 2024-01-03 23:41:35 +00:00
Adam Turner 09edb88458 Make `Config.overrides` private 2024-01-03 22:17:11 +00:00
Adam Turner 68af0ac2be Make `Config.values` private 2024-01-03 22:17:11 +00:00
Adam Turner 259118d182 Narrow the type for configuration option 'valid_types' values 2024-01-03 21:51:39 +00:00
Adam Turner fd23cf0256 Introduce a configuration option type
* Normalise rebuild values
* Ensure that the tuple interface continues to work
2024-01-03 19:58:55 +00:00
Adam Turner c3deb1746a Improve control flow in `check_confval_types()` 2024-01-03 17:24:17 +00:00
Adam Turner 20e804ab90 Introduce types for the `setup()` function 2024-01-03 05:05:54 +00:00
Adam Turner 0145f95716 Simplify `Config.read()` 2024-01-03 04:44:23 +00:00
Adam Turner 826ba0fcd9 Eliminate a redundant variable 2024-01-03 04:43:11 +00:00
Adam Turner edf52e709f Emend a spelling error 2024-01-03 04:43:10 +00:00
Adam Turner 2910a92d66 Prefer dict.fromkeys 2024-01-03 04:43:10 +00:00
Adam Turner ffaced9f3c Prefer a map() in is_serializable() 2024-01-03 04:43:09 +00:00
Adam Turner 5678704593 Merge `load_external_theme() into load_extra_theme()` 2024-01-03 04:33:20 +00:00
Adam Turner 0b64b21670 Remove alabaster special-casing in `load_extra_theme()` 2024-01-03 04:32:09 +00:00
Adam Turner 19b2950511 Narrow the type for configuration option 'rebuild' values 2024-01-03 04:17:46 +00:00
Adam Turner cb9656f654 Update all GitHub Actions versions 2024-01-03 03:31:39 +00:00
Adam Turner a31ebf7f8d Test with released versions of Python 3.12 2024-01-03 03:23:58 +00:00
Adam Turner c617138445 Add `Config.__repr__()` 2024-01-03 03:21:38 +00:00
Adam Turner 90ebd881fa Standardise iteration over configration values 2024-01-03 03:21:37 +00:00
Adam Turner 134d1341dd Refactor `Config.__init__()` 2024-01-03 03:21:37 +00:00
Adam Turner 512570bfe6 Standardise verbiage for Config values (default, rebuild, valid_types) 2024-01-03 03:21:36 +00:00
Adam Turner 0c509a2e5d Standardise type-validation verbiage in `sphinx.config` 2024-01-03 03:21:35 +00:00