-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Related to ARROW-1299 for hosting the nightly docs, we could also keep the built docs for older versions instead of overwriting them at each release.
Currently, the built docs live in the apache/arrow-site repo (asf-site branch) in the "/docs/" subdirectory.
When releasing, we could add the newly built docs for that release in a subdirectory instead. Something like "/docs/5.0/" or "/docs/version/5.0".
(And we could retroactively add some docs of previous releases, if we want)
To make this useful for the user, we need a version switcher in the sphinx theme layout. There are other projects that use the same sphinx theme that have added this (see eg https://mne.tools/stable/index.html), and there is some work to upstream this to the base theme (but on the short term we could also copy such a custom implementation).
For the "stable" docs (latest release), we could either 1) keep a duplicated version of the latest built docs at "/docs/", or 2) symlink "/docs/" to "/docs/5.0/" (and update this for each release; although I am not sure this is possible since it's the other is a child directory).
We could also add a "/docs/stable/" and make this the default url.
Reporter: Joris Van den Bossche / @jorisvandenbossche
Subtasks:
- [Docs] Add canonical url to the docs
- [Docs] Add version dropdown to the sphinx docs
- [Docs] Add version dropdown to the pkgdown (R) docs
- [Docs] Add canonical url to the pkgdown (R) docs
- [Docs] Ensure links to non-sphinx parts of the docs are relative instead of absolute
- [Docs] Automate incrementing of package version for R and non-R version switchers
- [Docs][Release] Update post release script to move stable docs to versioned + keep dev docs
Related issues:
- [Python] Provide links to documentation pages for old versions (is cloned by)
- [Doc] Adding support for versioned documentation (is cloned by)
- [Doc] Build API docs on a per-release basis (duplicates)
- [Doc][Python] Make docs release match arrow releases (is duplicated by)
Note: This issue was originally created as ARROW-13260. Please see the migration documentation for further details.