Skip to content

Comments

fix: update 391 broken NumPy documentation URLs#574

Open
Zephyr-Blessed wants to merge 2 commits intoSciSharp:masterfrom
Zephyr-Blessed:fix/update-numpy-doc-urls
Open

fix: update 391 broken NumPy documentation URLs#574
Zephyr-Blessed wants to merge 2 commits intoSciSharp:masterfrom
Zephyr-Blessed:fix/update-numpy-doc-urls

Conversation

@Zephyr-Blessed
Copy link

Summary

Updates all 391 broken NumPy documentation URLs across 125 C# source files.

Changes

  • Unversioned URLs: docs.scipy.org/doc/numpy/numpy.org/doc/stable/
  • Version-pinned URLs: docs.scipy.org/doc/numpy-1.14.0/, numpy-1.15.0/, numpy-1.16.0/, numpy-1.16.1/, numpy-1.17.0/numpy.org/doc/stable/

Why

The old docs.scipy.org domain now redirects or returns 404 for NumPy documentation. The canonical location is numpy.org/doc/stable/.

125 files changed, 391 URLs updated.

Fixes #530

Replace all references from docs.scipy.org/doc/numpy to numpy.org/doc/stable
across 125 C# source files.

The old docs.scipy.org URLs (both unversioned and version-pinned numpy-1.14
through numpy-1.17) now redirect or return 404. The canonical NumPy
documentation is at numpy.org/doc/stable/.

Fixes SciSharp#530
@Nucs Nucs self-assigned this Feb 18, 2026
@Nucs
Copy link
Member

Nucs commented Feb 18, 2026

Thank you for spending time and tokens on getting this done 👍
I'll double-check the urls and merge

@Nucs
Copy link
Member

Nucs commented Feb 21, 2026

Review: 18 URLs return HTTP 404

I validated every URL in this PR. 18 out of 122 unique URLs return HTTP 404 errors.

Summary of Issues

Category Count Problem Correct Path
Random functions 12 Missing /random/ directory reference/random/generated/numpy.random.*.html
arrays.indexing 1 Wrong section user/basics.indexing.html
c-api.dtype 1 Dot instead of slash reference/c-api/dtype.html
routines.random 1 Old path reference/random/index.html
asscalar 6 Function removed in NumPy 1.23 reference/generated/numpy.ndarray.item.html
find_common_type 6 Function deprecated reference/generated/numpy.result_type.html
itemset 4 Function removed in NumPy 2.4 reference/generated/numpy.put.html

Fix Available

I've pushed the fixes to branch fix/pr574-url-corrections.

You can incorporate these changes by:

git fetch origin fix/pr574-url-corrections
git cherry-pick 66b161a1

Or I can merge that branch into this PR if you prefer.

All 126 URLs now return HTTP 200 after the fix.

Updates URLs that were pointing to incorrect paths:

1. Random functions (12 URLs): Added /random/ directory
   - reference/generated/numpy.random.* → reference/random/generated/numpy.random.*

2. arrays.indexing (1 URL): Corrected section path
   - reference/arrays.indexing.html → user/basics.indexing.html

3. c-api.dtype (1 URL): Fixed path format
   - reference/c-api.dtype.html → reference/c-api/dtype.html

4. routines.random (1 URL): Updated to new location
   - reference/routines.random.html → reference/random/index.html

5. asscalar (6 URLs): Function removed in NumPy 1.23, now links to replacement
   - numpy.asscalar.html → numpy.ndarray.item.html

6. find_common_type (6 URLs): Function deprecated, now links to replacement
   - numpy.find_common_type.html → numpy.result_type.html

7. itemset (4 URLs): Function removed in NumPy 2.4, now links to alternative
   - numpy.ndarray.itemset.html → numpy.put.html

All 126 URLs now return HTTP 200.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update 385 outdated NumPy documentation URLs (scipy.org → numpy.org)

2 participants