Skip to content

Add PyTorch 2.10 through 2.13 documentation support - #2723

Merged
simon04 merged 5 commits into
freeCodeCamp:mainfrom
ring00:pytorch-2.13
Sep 13, 2026
Merged

simon04 merged 5 commits into
freeCodeCamp:mainfrom
ring00:pytorch-2.13

Conversation

@ring00

@ring00 ring00 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This PR adds PyTorch documentation versions 2.10 through 2.13.

PyTorch's structured Schema.org breadcrumbs are now preferred when available, with the existing visible-breadcrumb parsing retained as a fallback for older versions. This restores the complete names of pages whose visible breadcrumbs are incomplete, such as Use fullgraph=True to Identify and Eliminate Graph Breaks.

Key changes:

  • Adds PyTorch 2.10, 2.11, 2.12, and 2.13.
  • Uses structured breadcrumbs while preserving compatibility with older documentation themes.
  • Updates the PyTorch attribution year.

Validation:

  • Generated all four new versions successfully.
  • Verified rendering and entry categorization using the local DevDocs server.
  • Regenerated PyTorch 2.8 to verify compatibility with an existing schema-enabled version.

If you're updating existing documentation to its latest version, please ensure that you have:

  • Updated the versions and releases in the scraper file
  • Ensured the license is up-to-date
  • Ensured the icons and the SOURCE file in public/icons/your_scraper_name/ are up-to-date if the documentation has a custom icon
  • Ensured self.links contains up-to-date urls if self.links is defined
  • Tested the changes locally to ensure:
    • The scraper still works without errors
    • The scraped documentation still looks consistent with the rest of DevDocs
    • The categorization of entries is still good

@ring00
ring00 marked this pull request as ready for review August 28, 2026 18:09
@ring00
ring00 requested a review from a team as a code owner August 28, 2026 18:09
Add the four newer documentation releases and extract complete structured
breadcrumbs used by the current PyTorch documentation theme.

Keep the existing HTTP-based scraping workflow and cover structured,
malformed, single-item, and legacy breadcrumb formats.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The version registrations and breadcrumb handling are consistent with the available documentation structure and preserve older-theme compatibility.

Pull request overview

Adds PyTorch documentation support for versions 2.10–2.13 and improves entry naming and categorization.

Changes:

  • Registers four new PyTorch documentation versions.
  • Prefers Schema.org breadcrumbs while retaining legacy fallbacks.
  • Updates the attribution year to 2026.
File summaries
File Description
lib/docs/scrapers/pytorch.rb Adds versions 2.10–2.13 and updates attribution.
lib/docs/filters/pytorch/entries.rb Extracts structured breadcrumbs with fallback support.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Scrape the PyTorch documentation from a local copy instead of fetching
thousands of pages from docs.pytorch.org on every run. The rendered HTML
is published per version in the "site" branch of pytorch/docs, so document
the sparse checkout in docs/file-scrapers.md.

Skip non-HTML paths, since the published tree ships a .md source next to
every .html page.
Check out the version being scraped from the "site" branch of pytorch/docs,
which is what https://docs.pytorch.org serves. There is no documentation
archive to download, and the branch holds every version at once, so the
files are taken from a sparse clone rather than with #download_and_extract.

@simon04 simon04 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@simon04
simon04 merged commit bdaaab3 into freeCodeCamp:main Sep 13, 2026
2 checks passed
@ring00
ring00 deleted the pytorch-2.13 branch September 14, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants