Skip to content

gh-154753: Fix doc references to moved Platforms/ paths and removed files#154754

Open
ZayanKhan-12 wants to merge 7 commits into
python:mainfrom
ZayanKhan-12:docs/fix-platforms-paths
Open

gh-154753: Fix doc references to moved Platforms/ paths and removed files#154754
ZayanKhan-12 wants to merge 7 commits into
python:mainfrom
ZayanKhan-12:docs/fix-platforms-paths

Conversation

@ZayanKhan-12

Copy link
Copy Markdown

Fixes the stale file references collected in gh-154753, one commit per file:

  • Doc/using/android.rst — five :source: links updated to Platforms/Android/... (moved in Move Android folder to Platforms #146445; the old links 404 on docs.python.org today)
  • Doc/using/ios.rstPlatforms/Apple/iOS/README.md (×2), the testbed reference updated to Platforms/Apple/testbed (the shared Apple testbed's actual location), the Apple build-script mention, and the python Apple/testbed clone ... shell example (matches the invocations in Platforms/Apple/iOS/README.md)
  • Doc/using/configure.rst:source:`iOS/README.rst` :source:`Platforms/Apple/iOS/README.md` (moved twice; the file is Markdown)
  • Doc/extending/extending.rstObjects/pycapsule.cObjects/capsule.c (no pycapsule.c exists; the Include/pycapsule.h half of the sentence is correct)
  • Doc/library/sys.rstObjects/lnotab_notes.txt (removed in Remove deprecated co_lnotab from CodeType #134690) → InternalDocs/code_objects.md, which documents the locations table that replaced lnotab
  • InternalDocs/jit.md — drop the relative link to jit_stencils.h, a gitignored build artifact (404 on GitHub)
  • InternalDocs/code_objects.md — fix inverted Markdown link syntax (text)[url][text](url)

Every corrected target was verified to exist in the current tree, and each old target verified missing.

Backporting: the Platforms/ fixes (android.rst, ios.rst, configure.rst) must not be backported — 3.13/3.14 still have the pre-gh-146445 tree layout. The capsule.c and sys.rst fixes may be independently backport-eligible; happy to defer to the merger on labels.

Verified locally on macOS: make -C Doc check and make -C Doc html (which runs with --fail-on-warning) both pass; rendered HTML spot-checked for the new URLs.

Prepared with AI assistance (Claude); every change was mechanically verified against the repository tree as described above.

📚 Documentation preview 📚: https://cpython-previews--154754.org.readthedocs.build/

zk-khan and others added 7 commits July 26, 2026 18:28
The Android build tooling moved from Android/ to Platforms/Android/
in pythongh-146445, but the five :source: references in Doc/using/android.rst
still point at the old location and render as broken GitHub links.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The iOS build tooling moved to Platforms/Apple in pythongh-146445, with the
shared testbed now at Platforms/Apple/testbed rather than under iOS/.
Update the :source: references and the example testbed invocation to
match (the invocation upstream README uses at Platforms/Apple/iOS/README.md).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
iOS/README.rst moved to Platforms/Apple/iOS/README.md (and became
Markdown along the way); the old :source: reference renders as a
broken GitHub link.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The Capsule implementation lives in Objects/capsule.c; there is no
Objects/pycapsule.c (the header half of the sentence is correct).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lnotab_notes.txt was removed in pythongh-134690 with the last co_lnotab
support. The line-number/locations table is now documented in
InternalDocs/code_objects.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
jit_stencils.h is a gitignored build artifact, so the relative link
404s on GitHub.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(text)[url] does not render as a link.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@python-cla-bot

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33768120 | 📁 Comparing 89cfae1 against main (5afbb60)

  🔍 Preview build  

5 files changed · ± 5 modified

± Modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants