Skip to content

Commit 139d6b0

Browse files
committed
Use full URLs for links to issues and pull requests
1 parent 2c46e54 commit 139d6b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+225
-128
lines changed

sphinx/addnodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class index(nodes.Invisible, nodes.Inline, nodes.TextElement):
436436
437437
*key* is categorization characters (usually a single character) for
438438
general index page. For the details of this, please see also:
439-
:rst:dir:`glossary` and issue #2320.
439+
:rst:dir:`glossary` and https://github.com/sphinx-doc/sphinx/pull/2320.
440440
"""
441441

442442

sphinx/builders/html/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,13 +1193,14 @@ def js_tag(js: _JavaScript | str) -> str:
11931193

11941194
# sort JS/CSS before rendering HTML
11951195
try: # NoQA: SIM105
1196-
# Convert script_files to list to support non-list script_files (refs: #8889)
1196+
# Convert script_files to list to support non-list script_files
1197+
# See: https://github.com/sphinx-doc/sphinx/issues/8889
11971198
ctx['script_files'] = sorted(
11981199
ctx['script_files'], key=lambda js: js.priority
11991200
)
12001201
except AttributeError:
12011202
# Skip sorting if users modifies script_files directly (maybe via `html_context`).
1202-
# refs: #8885
1203+
# See: https://github.com/sphinx-doc/sphinx/issues/8885
12031204
#
12041205
# Note: priority sorting feature will not work in this case.
12051206
pass
@@ -1503,7 +1504,8 @@ def setup(app: Sphinx) -> ExtensionMetadata:
15031504
'html_scaled_image_link', True, 'html', types=frozenset({bool})
15041505
)
15051506
app.add_config_value('html_baseurl', '', 'html', types=frozenset({str}))
1506-
# removal is indefinitely on hold (ref: https://github.com/sphinx-doc/sphinx/issues/10265)
1507+
# removal is indefinitely on hold
1508+
# See: https://github.com/sphinx-doc/sphinx/issues/10265
15071509
app.add_config_value(
15081510
'html_codeblock_linenos_style', 'inline', 'html', types=ENUM('table', 'inline')
15091511
)

sphinx/builders/linkcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def setup(app: Sphinx) -> ExtensionMetadata:
802802
app.connect('config-inited', compile_linkcheck_allowed_redirects, priority=800)
803803

804804
# FIXME: Disable URL rewrite handler for github.com temporarily.
805-
# ref: https://github.com/sphinx-doc/sphinx/issues/9435
805+
# See: https://github.com/sphinx-doc/sphinx/issues/9435
806806
# app.connect('linkcheck-process-uri', rewrite_github_anchor)
807807

808808
return {

sphinx/cmd/quickstart.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
if sys.platform == 'win32':
7878
# On Windows, show questions as bold because of PowerShell's colour scheme
79-
# (xref: https://github.com/sphinx-doc/sphinx/issues/5294).
79+
# See: https://github.com/sphinx-doc/sphinx/issues/5294
8080
from sphinx._cli.util.colour import bold as _question_colour
8181
else:
8282
from sphinx._cli.util.colour import purple as _question_colour
@@ -163,9 +163,10 @@ def do_prompt(
163163
else:
164164
prompt = PROMPT_PREFIX + text + ': '
165165
if USE_LIBEDIT:
166-
# Note: libedit has a problem for combination of ``input()`` and escape
167-
# sequence (see #5335). To avoid the problem, all prompts are not colored
168-
# on libedit.
166+
# Note: libedit has a problem for combination of ``input()``
167+
# and escape sequences.
168+
# To avoid the problem, all prompts are not colored on libedit.
169+
# See https://github.com/sphinx-doc/sphinx/issues/5335
169170
pass
170171
else:
171172
prompt = _question_colour(prompt)

sphinx/domains/c/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from sphinx.util.typing import ExtensionMetadata, OptionSpec
4848

4949
# re-export objects for backwards compatibility
50-
# xref https://github.com/sphinx-doc/sphinx/issues/12295
50+
# See: https://github.com/sphinx-doc/sphinx/issues/12295
5151
from sphinx.domains.c._ast import ( # NoQA: F401
5252
ASTAlignofExpr,
5353
ASTArray,

sphinx/domains/cpp/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
from sphinx.util.typing import ExtensionMetadata, OptionSpec
5252

5353
# re-export objects for backwards compatibility
54-
# xref https://github.com/sphinx-doc/sphinx/issues/12295
54+
# See: https://github.com/sphinx-doc/sphinx/issues/12295
5555
from sphinx.domains.cpp._ast import ( # NoQA: F401
5656
ASTAlignofExpr,
5757
ASTArray,
@@ -317,7 +317,7 @@ def run(self) -> list[Node]:
317317
env.ref_context['cpp:parent_key'] = root.get_lookup_key()
318318

319319
# The lookup keys assume that no nested scopes exists inside overloaded functions.
320-
# (see also #5191)
320+
# See: https://github.com/sphinx-doc/sphinx/issues/5191
321321
# Example:
322322
# .. cpp:function:: void f(int)
323323
# .. cpp:function:: void f(double)

sphinx/domains/cpp/_symbol.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ def _symbol_lookup(
604604
return None
605605
# We have now matched part of a nested name, and need to match more
606606
# so even if we should match_self before, we definitely shouldn't
607-
# even more. (see also issue #2666)
607+
# even more.
608+
# See: https://github.com/sphinx-doc/sphinx/issues/2666
608609
match_self = False
609610
parent_symbol = symbol
610611

sphinx/domains/python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from sphinx.util.typing import ExtensionMetadata, OptionSpec
3939

4040
# re-export objects for backwards compatibility
41-
# xref https://github.com/sphinx-doc/sphinx/issues/12295
41+
# See: https://github.com/sphinx-doc/sphinx/issues/12295
4242

4343
from sphinx.domains.python._annotations import ( # NoQA: F401
4444
_parse_arglist, # for sphinx-immaterial

sphinx/environment/adapters/toctree.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def _resolve_toctree(
146146
# </ul>
147147
#
148148
# The transformation is made in two passes in order to avoid
149-
# interactions between marking and pruning the tree (see bug #1046).
149+
# interactions between marking and pruning the tree.
150+
# See: https://github.com/sphinx-doc/sphinx/issues/1046
150151

151152
toctree_ancestors = _get_toctree_ancestors(env.toctree_includes, docname)
152153
included = Matcher(env.config.include_patterns)

sphinx/ext/autodoc/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ def process(
288288

289289

290290
# This class is used only in ``sphinx.ext.autodoc.directive``,
291-
# But we define this class here to keep compatibility (see #4538)
291+
# But we define this class here to keep compatibility
292+
# See: https://github.com/sphinx-doc/sphinx/issues/4538
292293
class Options(dict[str, Any]):
293294
"""A dict/attribute hybrid that returns None on nonexisting keys."""
294295

@@ -3021,7 +3022,7 @@ def get_doc(self) -> list[list[str]] | None:
30213022
try:
30223023
# Disable `autodoc_inherit_docstring` temporarily to avoid to obtain
30233024
# a docstring from the value which descriptor returns unexpectedly.
3024-
# ref: https://github.com/sphinx-doc/sphinx/issues/7805
3025+
# See: https://github.com/sphinx-doc/sphinx/issues/7805
30253026
orig = self.config.autodoc_inherit_docstrings
30263027
self.config.autodoc_inherit_docstrings = False
30273028
return super().get_doc()

0 commit comments

Comments
 (0)