Skip to content

docs: Clean up old upgrade guides with links to the versioned docs - #27769

Merged
alamb merged 6 commits into
apache:mainfrom
alamb:alamb/trim-old-upgrade-guides
Dec 1, 2026
Merged

alamb merged 6 commits into
apache:mainfrom
alamb:alamb/trim-old-upgrade-guides

Conversation

@alamb

@alamb alamb commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • None

Rationale for this change

The documentation at https://datafusion.apache.org/ is for the main branch, but it carries the full text of every upgrade guide back to 46.0.0.

Screenshot 2026-11-29 at 7 02 21 AM

Those old guides describe APIs as they were several releases ago, and they show up in the site search next to the current documentation and pollute the search index.

According to the 🤖, In the search index currently published at https://datafusion.apache.org/searchindex.js, 14 of the 89 indexed pages are upgrade guides, and they account for 21% of all term entries

So for example, Searching for ScalarUDFImpl returns 6 pages, and 5 of them are the upgrade guides for 46.0.0, 47.0.0, 48.0.0, 52.0.0 and 53.0.0

Screenshot 2026-11-29 at 7 05 52 AM

Now that each release has its own copy of the documentation under /versions/<version>/, the old guides are already published there, so the main site only needs to link to them.

What changes are included in this PR?

  • The upgrade guide is now a single page, "Upgrade Guide", with no child pages. It holds the guide for 57.0.0 (in development).
Screenshot 2026-11-29 at 7 22 32 AM
  • That page ends with a "Past Upgrade Guides" section that links to the guide for each released version in the versioned documentation.
Screenshot 2026-11-29 at 7 24 33 AM
Guide Redirects to
56.0.0 https://datafusion.apache.org/versions/56.0.0/library-user-guide/upgrading/56.0.0.html
55.0.0 https://datafusion.apache.org/versions/55.2.0/library-user-guide/upgrading/55.0.0.html
54.0.0 https://datafusion.apache.org/versions/54.1.0/library-user-guide/upgrading/54.0.0.html
53.0.0 https://datafusion.apache.org/versions/53.0.0/library-user-guide/upgrading/53.0.0.html
52.0.0 https://datafusion.apache.org/versions/52.0.0/library-user-guide/upgrading.html#datafusion-52-0-0
51.0.0 https://datafusion.apache.org/versions/51.0.0/library-user-guide/upgrading.html#datafusion-51-0-0
50.0.0 https://datafusion.apache.org/versions/50.0.0/library-user-guide/upgrading.html#datafusion-50-0-0
46.0.0 to 49.0.0 https://datafusion.apache.org/versions/53.0.0/library-user-guide/upgrading/<version>.html

Notes:

  • The 50.0.0 to 52.0.0 docs have a single upgrading.html page, so those links use an anchor.
  • There are no versioned docs before 50.0.0, so the 46.0.0 to 49.0.0 guides link to the
    copies in the 53.0.0 docs.
  • The doc_comment::doctest! entries for the 46.0.0 to 53.0.0 guides in
    datafusion/core/src/lib.rs are removed along with the pages.

What is the testing strategy for this PR?

Built the docs locally and checked that every redirect and link target returns HTTP 200.

Are there any user-facing changes?

Yes, the main documentation site has one upgrade guide page, and the guides for released versions are in the versioned documentation.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation core Core DataFusion crate labels Nov 26, 2026
@alamb alamb changed the title docs: replace old upgrade guides with links to the versioned docs docs: Clean up old upgrade guides with links to the versioned docs Nov 29, 2026
alamb and others added 3 commits November 29, 2026 07:26
…guides

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comment thread docs/source/conf.py
@@ -146,4 +146,18 @@
"library-user-guide/adding-udfs": "functions/index.html",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The changes to this file ensure all existing links still keep working

upgrade, please consider documenting it in the version-specific [Upgrade Guide].

[upgrade guide]: ../library-user-guide/upgrading/index.rst
[upgrade guide]: ../library-user-guide/upgrading/index.md

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the url stays the same (index.html)

@alamb
alamb marked this pull request as ready for review November 29, 2026 12:30
@alamb
alamb enabled auto-merge December 1, 2026 19:56
@alamb

alamb commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @AdamGS -- I am going to merge this and then test out the main site to make sure it looks good

@alamb
alamb added this pull request to the merge queue Dec 1, 2026
Merged via the queue into apache:main with commit 8690ce0 Dec 1, 2026
43 checks passed
@alamb
alamb deleted the alamb/trim-old-upgrade-guides branch December 1, 2026 20:41
@alamb

alamb commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

https://datafusion.apache.org/library-user-guide/upgrading/index.html looks good

Screenshot 2026-12-01 at 4 13 49 PM

As do the past upgrade guides

Screenshot 2026-12-01 at 4 14 17 PM

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

Labels

core Core DataFusion crate documentation Improvements or additions to documentation v57.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants