Skip to content

Commit

Permalink
Merge branch 'master' into issue-11317/linkcheck-close-streamed-http-…
Browse files Browse the repository at this point in the history
…connections
  • Loading branch information
jayaddison committed Apr 27, 2023
2 parents b6d8006 + 3c4e78e commit 69a6828
Show file tree
Hide file tree
Showing 25 changed files with 21 additions and 1,324 deletions.
11 changes: 11 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ Dependencies
Incompatible changes
--------------------

* #11359: Remove long-deprecated aliases for ``MecabSplitter`` and
``DefaultSplitter`` in ``sphinx.search.ja``.
* #11360: Remove deprecated ``make_old_id`` functions in domain object
description classes.
* #11363: Remove the Setuptools integration (``build_sphinx`` hook in
``setup.py``).
* #11364: Remove deprecated ``sphinx.ext.napoleon.iterators`` module.
* #11365: Remove support for the ``jsdump`` format in ``sphinx.search``.
* #11366: Make ``locale`` a required argument to
``sphinx.util.i18n.format_date()``.

Deprecated
----------

Expand Down
3 changes: 0 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ def setup(app):
app.add_object_type('confval', 'confval',
objname='configuration value',
indextemplate='pair: %s; configuration value')
app.add_object_type('setuptools-confval', 'setuptools-confval',
objname='setuptools configuration value',
indextemplate='pair: %s; setuptools configuration value')
fdesc = GroupedField('parameter', label='Parameters',
names=['param'], can_collapse=True)
app.add_object_type('event', 'event', 'pair: %s; event', parse_event,
Expand Down
2 changes: 1 addition & 1 deletion doc/extdev/deprecated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The following is a list of deprecated interfaces.
- 7.0
- The standard library ``json`` module.

* - :doc:`Setuptools integration </usage/advanced/setuptools>`
* - The Setuptools integration (``setup.py build_sphinx``)
- 5.0
- 7.0
- N/A
Expand Down
200 changes: 0 additions & 200 deletions doc/usage/advanced/setuptools.rst

This file was deleted.

1 change: 0 additions & 1 deletion doc/usage/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ looking for guidance on extending Sphinx, refer to :doc:`/development/index`.
extensions/index
theming
advanced/intl
advanced/setuptools
advanced/websupport/index
1 change: 0 additions & 1 deletion doc/usage/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ More topics to be covered
- :doc:`Other extensions </usage/extensions/index>`:
- Static files
- :doc:`Selecting a theme </usage/theming>`
- :doc:`/usage/advanced/setuptools`
- :ref:`Templating <templating>`
- Using extensions
- :ref:`Writing extensions <dev-extensions>`
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: Setuptools Plugin",
"Framework :: Sphinx",
"Framework :: Sphinx :: Extension",
"Framework :: Sphinx :: Theme",
Expand Down
5 changes: 3 additions & 2 deletions sphinx/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,8 +1119,9 @@ def add_lexer(self, alias: str, lexer: type[Lexer]) -> None:
.. versionadded:: 0.6
.. versionchanged:: 2.1
Take a lexer class as an argument. An instance of lexers are
still supported until Sphinx-3.x.
Take a lexer class as an argument.
.. versionchanged:: 4.0
Removed support for lexer instances as an argument.
"""
logger.debug('[app] adding lexer: %r', (alias, lexer))
lexer_classes[alias] = lexer
Expand Down
8 changes: 0 additions & 8 deletions sphinx/domains/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -3312,14 +3312,6 @@ def after_content(self) -> None:
self.env.temp_data['c:parent_symbol'] = self.oldParentSymbol
self.env.ref_context['c:parent_key'] = self.oldParentKey

def make_old_id(self, name: str) -> str:
"""Generate old styled node_id for C objects.
.. note:: Old Styled node_id was used until Sphinx-3.0.
This will be removed in Sphinx-5.0.
"""
return 'c.' + name


class CMemberObject(CObject):
object_type = 'member'
Expand Down
16 changes: 0 additions & 16 deletions sphinx/domains/javascript.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,6 @@ def after_content(self) -> None:
self.env.ref_context['js:object'] = (objects[-1] if len(objects) > 0
else None)

def make_old_id(self, fullname: str) -> str:
"""Generate old styled node_id for JS objects.
.. note:: Old Styled node_id was used until Sphinx-3.0.
This will be removed in Sphinx-5.0.
"""
return fullname.replace('$', '_S_')

def _toc_entry_name(self, sig_node: desc_signature) -> str:
if not sig_node.get('_toc_parts'):
return ''
Expand Down Expand Up @@ -321,14 +313,6 @@ def run(self) -> list[Node]:
ret.extend(content_node.children)
return ret

def make_old_id(self, modname: str) -> str:
"""Generate old styled node_id for JS modules.
.. note:: Old Styled node_id was used until Sphinx-3.0.
This will be removed in Sphinx-5.0.
"""
return 'module-' + modname


class JSXRefRole(XRefRole):
def process_link(self, env: BuildEnvironment, refnode: Element,
Expand Down
12 changes: 1 addition & 11 deletions sphinx/domains/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,16 +1064,6 @@ def run(self) -> list[Node]:
ret.extend(content_node.children)
return ret

def make_old_id(self, name: str) -> str:
"""Generate old styled node_id.
Old styled node_id is incompatible with docutils' node_id.
It can contain dots and hyphens.
.. note:: Old styled node_id was mainly used until Sphinx-3.0.
"""
return 'module-%s' % name


class PyCurrentModule(SphinxDirective):
"""
Expand Down Expand Up @@ -1378,7 +1368,7 @@ def resolve_xref(self, env: BuildEnvironment, fromdocname: str, builder: Builder
type, searchmode)

if not matches and type == 'attr':
# fallback to meth (for property; Sphinx-2.4.x)
# fallback to meth (for property; Sphinx 2.4.x)
# this ensures that `:attr:` role continues to refer to the old property entry
# that defined by ``method`` directive in old reST files.
matches = self.find_obj(env, modname, clsname, target, 'meth', searchmode)
Expand Down
16 changes: 0 additions & 16 deletions sphinx/domains/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ def add_target_and_index(self, name: str, sig: str, signode: desc_signature) ->
def get_index_text(self, objectname: str, name: str) -> str:
return ''

def make_old_id(self, name: str) -> str:
"""Generate old styled node_id for reST markups.
.. note:: Old Styled node_id was used until Sphinx-3.0.
This will be removed in Sphinx-5.0.
"""
return self.objtype + '-' + name

def _object_hierarchy_parts(self, sig_node: desc_signature) -> tuple[str, ...]:
if 'fullname' not in sig_node:
return ()
Expand Down Expand Up @@ -193,14 +185,6 @@ def current_directive(self) -> str:
else:
return ''

def make_old_id(self, name: str) -> str:
"""Generate old styled node_id for directive options.
.. note:: Old Styled node_id was used until Sphinx-3.0.
This will be removed in Sphinx-5.0.
"""
return '-'.join([self.objtype, self.current_directive, name])


class ReSTRole(ReSTMarkup):
"""
Expand Down

0 comments on commit 69a6828

Please sign in to comment.