Skip to content

Fix broken links in the documentation #35497

Backlog

Description

@DeaMariaLeon

This issue is reserved for people attending the Compute! sprint in person on November 27, 2026

This issue was temporary closed due to the amount of low quality of contributions. I'll try again but: Make sure to read and follow the instructions and avoid having your LLM do all the work without you understanding. People not following the instructions will have their PR closed. One PR per person.

Below is a list of broken links in the documentation and their locations.
Instructions are at the top of each section and, for some items, next to the link.
Links in section 5 may only be temporarily down: please check them in a browser first.

If you want to work on this, please:

  • Open one pull request per link, or per group of closely related links (e.g. links to the same site).
  • Please open one pull request by person so more people can try this.
  • Comment on this issue saying which link(s) you want to tackle, so that several people can work in parallel.
  • Reference this issue in your pull request description with Towards #35497
    (not "Fixes" or "Closes", which would close this issue when your PR is merged).
  • Do not open 100% AI generated pull requests.

1. Broken redirects in doc/conf.py

The redirects dict in doc/conf.py generates small pages that forward old URLs to new ones.

  • doc/conf.py:516-518: the entry for auto_examples/cluster/plot_agglomerative_clustering
    includes the .html suffix in both the key and the value, which produces
    plot_agglomerative_clustering.html.html redirecting to plot_ward_structured_vs_unstructured.html.html.
    The old URL plot_agglomerative_clustering.html is therefore not redirected.
    Fix: remove .html from both strings, like the other entries.
  • doc/conf.py:462-464: auto_examples/datasets/plot_digits_last_image redirects to
    auto_examples/exercises/plot_digits_classification_exercises, which no longer exists
    (examples/exercises/ was removed).
    Fix: propose an existing example as the new target in the PR, or remove the entry.

2. External pages that no longer exist (404 / 410)

To fix: search for the page's new location (same title on the same site, or the
project's current docs) and update the URL in the source. If it has moved nowhere,
use an archived copy from https://web.archive.org/ or remove the link and keep the text.

3. Links to a section that does not exist (anchor not found)

Please check these in a browser before changing them: some pages build their
sections with JavaScript, which a link checker cannot see.

To fix: open the target page and find the section's new id (hover over its heading,
or copy the #… link from the heading's anchor, ¶ or 🔗). Then replace the old
#fragment in the .rst/.py source with it. If the section no longer exists,
link to the page without a # part, or to a page that covers the same topic.

4. Needs a re-check (possibly temporary errors)

These failed with server errors, timeouts, connection failures or certificate errors.
They may be down only temporarily; confirm before changing them.

To fix: open the link in a browser, and re-check it. If it keeps failing, fix it as in section 2:
new location, archived copy, or remove the link. Update every source listed for a URL.
URLs marked † are already in linkcheck_ignore in doc/conf.py; if you fix one,
remove it from that list too.

Download URLs used by an example (if they are gone, the example itself fails):

LIBSVM / LIBLINEAR site (502):

Stanford IR book:

Papers:

Websites and personal pages:

How the list of broken links was created using lychee 1. Build the documentation (from the `doc` directory):
cd doc
make html-noplot
cd ..
  1. With Docker running, run lychee from the repository root.
    So the build runs in doc/ and the lychee step runs in the root. And the report is saved to link-check/broken_links_report.txt.

    DOCS="$(pwd)/doc/_build/html/stable"
    OUT="$(pwd)/link-check"
    mkdir -p "$OUT"
    
    docker run --rm -t -v "$DOCS":/docs:ro -v "$OUT":/out lycheeverse/lychee \
     --output /out/broken_links_report.txt \
     --timeout 30 \
     --max-concurrency 32 \
     --accept '200..=206,403,429' \
     --include-verbatim \
     --include-fragments \
     --exclude-path '/docs/whats_new/v0' \
     --user-agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0 Safari/537.36' \
     '/docs/**/*.html'

Extra notes:

  • make html-noplot has to run inside doc/, because that's where the Makefile is. It writes the HTML into _build/html/stable inside the folder it runs in, so the files end up in scikit-learn/doc/_build/html/stable.
  • The lychee step builds the path from wherever you are. DOCS="$(pwd)/doc/_build/html/stable" takes the current folder and appends /doc/_build/html/stable. From the repository root, that gives scikit-learn/doc/_build/html/stable.

IMPORTANT: This issue is for people who want to learn. Please don't open bot-generated, one-click pull requests just to complete a homework assignment or similar.

Activity

  1. added
    Needs Triage
    on Nov 23, 2026
  2. github-actions commented on Nov 23, 2026

    @github-actions

    Thanks for the work you've done so far. The goal of this comment is to set expectations.

    Deciding on new features or substantial changes is a lengthy process. It frequently happens that no maintainer is available to take on this task right now.

    Please do not create a Pull Request before a decision has been made regarding the proposed work. Making this decision can often take a significant amount of time and effort.

  3. added
    Meta-issue
    good first issue
    on Nov 23, 2026
  4. DeaMariaLeon commented on Nov 23, 2026

    @DeaMariaLeon
    MemberAuthor

    Temporary closing

  5. removed
    Needs Triage
    on Nov 27, 2026
  6. Naveen447-a11y commented on Nov 29, 2026

    @Naveen447-a11y

    Hi! I'd like to contribute to this issue.

    I noticed that PRs #35542 and #35555 are already addressing some of the broken links. I'm interested in fixing a few of the remaining broken external documentation links.

    Could you please let me know which links or sections are still available to work on? I'll wait for confirmation before opening a PR.

    Thank you!

  7. DeaMariaLeon commented on Nov 30, 2026

    @DeaMariaLeon
    MemberAuthor

    Hi @Naveen447-a11y ! only the first section is done, and #35555 will only fix the first point of section 3. All the rest is available.

  8. mlkbsalah commented on Nov 30, 2026

    @mlkbsalah
    Contributor

    Hi, I'd like to claim the three Joblib links in section 2. I found #35521 that edits doc/computing/parallelism.rst file where two of those broken links are still present.

  9. 7 remaining items

  10. weekin25-glitch commented on Dec 1, 2026

    @weekin25-glitch

    I'd like to take the broken link to the k-means++ paper in the clustering guide, listed in section 4.

  11. TheCreatorJJ commented on Dec 1, 2026

    @TheCreatorJJ

    Hi! I'd like to take the broken Wikipedia anchor link for Tweedie distribution (https://en.wikipedia.org/wiki/Tweedie_distribution#The_Tweedie_deviance) in doc/modules/model_evaluation.rst (line 2866, Section 3). The heading on Wikipedia is now #Tweedie_deviance. I'll open a PR for it referencing Towards #35497.

  12. DeaMariaLeon commented on Dec 1, 2026

    @DeaMariaLeon
    MemberAuthor

    @TheCreatorJJ the link is working. Please don't open a PR.
    section 3 has: "Please check these in a browser before changing them: some pages build their
    sections with JavaScript, which a link checker cannot see."

  13. sujairibrahim commented on Dec 1, 2026

    @sujairibrahim
    Contributor

    I'd like to take the LARS paper link in section 4 (http://statweb.stanford.edu/~tibs/ftp/lars.pdf, used 3 times in sklearn/linear_model/_least_angle.py). It returns HTTP 500. I plan to replace it with the paper's DOI using the :doi: role, the same way the user guide already cites this paper in doc/modules/linear_model.rst. I'll open one PR with "Towards #35497".

  14. spearb0lt commented on Dec 1, 2026

    @spearb0lt

    I'd like to take these: OpenML #data anchor (section 3), scipy Meson doc, gbm vignette, Bouckaert & Frank PDF, the Evernote and PeerIndex testimonial links, and the Perrot and Vanderplas contributor links (section 2). One PR each.

    I opened PR #35585 towards fxing the previously broken link to Bouckaert & Frank paper PDF as i had claimed in the comment.
    I have also opened PR #35594 towards fixing broken OpenML docs link in loading_other_datasets.rst

  15. TheAgencyMGE commented on Dec 1, 2026

    @TheAgencyMGE

    I would like to tackle this link: https://www.cms.waikato.ac.nz/~ml/publications/2004/bouckaert-frank.pdf in examples/model_selection/plot_grid_search_stats.py:558

  16. adii0018 commented on Dec 2, 2026

    @adii0018

    Hi! I'd like to work on the broken pytest documentation anchor listed in Section 3.

    File: doc/developers/tips.rst

    I'll verify and update the outdated pytest URL anchor, then submit a focused PR referencing Towards #35497.

    Thank you!

  17. owaisjunedi commented on Dec 2, 2026

    @owaisjunedi

    I opened PR #35595 towards - Fix broken redirect link to the new SciPy Meson documentation according to reported issue:

    External pages that no longer exist

    This has already been approved by @DeaMariaLeon . It's awaiting Second Review to be merged in main branch.

  18. Tariolle commented on Dec 2, 2026

    @Tariolle

    I'd like to take the Koenker & Bassett (1978) link in section 4 (https://gib.people.uic.edu/RQ.pdf, doc/modules/linear_model.rst:2005). The host no longer responds; I'll cite the paper's DOI with the :doi: role instead and open one PR with "Towards #35497".

    Also, the MIT CBCL link (MIT-CSAIL-TR-2007-025) in section 4 is already fixed on main (since #35219), so it can be checked off.

  19. DeaMariaLeon commented on Dec 2, 2026

    @DeaMariaLeon
    MemberAuthor

    @owaisjunedi, FYI, commenting here (on this issue) doesn't normally help for a PR to be merged.
    I'll ping a sklearn member that can merge on your PR. If nothing moves.

  20. chris-buckminster commented on Dec 2, 2026

    @chris-buckminster

    I'd like to take the broken Stanford tech report link (http://i.stanford.edu/pub/cstr/reports/cs/tr/79/773/CS-TR-79-773.pdf) in sklearn/naive_bayes.py (Section 4) and replace it with the Wayback Machine copy.

  21. akashsiripuram commented on Dec 2, 2026

    @akashsiripuram

    Hi! I'd like to take the Diebold & Mariano link in section 4 (examples/model_selection/plot_grid_search_stats.py:568). The uc3m.es host no longer responds. I plan to replace it with the paper's DOI, and I'll open one PR with "Towards #35497".

  22. owaisjunedi commented on Dec 2, 2026

    @owaisjunedi

    @owaisjunedi, FYI, commenting here (on this issue) doesn't normally help for a PR to be merged. I'll ping a sklearn member that can merge on your PR. If nothing moves.

    Thank You @DeaMariaLeon . Much appreciated! 💜

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Meta-issuegood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions