alamb opened a new pull request, #27769:
URL: https://github.com/apache/datafusion/pull/27769

   ## Which issue does this PR close?
   
   - None
   
   ## Rationale for this change
   
   The documentation at https://datafusion.apache.org/ is for the `main` 
branch, yet it
   carries the full text of every upgrade guide back to 46.0.0. Those old guides
   describe APIs as they were several releases ago, and they show up in the site
   search next to the current documentation.
   
   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
   - 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
   - Searching for `FileScanConfig` returns 2 pages, both upgrade guides 
(46.0.0 and 56.0.0)
   
   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?
   
   Replace the content of the upgrade guides for 46.0.0 through 55.0.0 with a 
link to
   the same guide in the versioned documentation. The pages still exist, so 
existing links
   such as 
https://datafusion.apache.org/library-user-guide/upgrading/55.0.0.html keep 
working.
   
   The guides for 56.0.0 (the current release) and 57.0.0 (in development) are 
unchanged.
   
   | Guide | Links to |
   | --- | --- |
   | 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 newest version that has each of them as its 
own page.
   - The `doc_comment::doctest!` entries for the 46.0.0 to 53.0.0 guides in
     `datafusion/core/src/lib.rs` are removed, as those pages no longer have 
code examples.
   
   ## What is the testing strategy for this PR?
   
   Checked that every link target returns HTTP 200. The docs build in CI covers 
the rest.
   
   ## Are there any user-facing changes?
   
   Yes, the old upgrade guides on the `main` documentation site are now links 
to the versioned documentation.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to