Skip to content

Conversation

@amoeba
Copy link
Member

@amoeba amoeba commented Feb 9, 2026

Updates the installation page to comply with https://infra.apache.org/release-download-pages.html#download-page. Uses rst_prolog because I couldn't figure out a better way to dynamically generate the URLs based on version.

Closes #3946

@amoeba amoeba requested a review from lidavidm as a code owner February 9, 2026 21:06
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

Is https://github.com/missinglinkelectronics/sphinxcontrib-globalsubs an option? (Though I guess not having a dependency is nice; that said sphinx-doc/sphinx#2173 implies that rst_prolog can be slow)

Right now release says something like 23 (dev). Do we want to have a separate variable for "latest available to download"? That can be updated by the version bump script.

@amoeba
Copy link
Member Author

amoeba commented Feb 10, 2026

https://github.com/missinglinkelectronics/sphinxcontrib-globalsubs seems worth a try. rst_prolog doesn't seem to have a measurable affect on build time but it's a bit of a coarse solution.

Re: a new variable, I like that idea. I'll try that too.

@amoeba amoeba requested a review from kou as a code owner February 10, 2026 01:41
@amoeba
Copy link
Member Author

amoeba commented Feb 10, 2026

https://github.com/missinglinkelectronics/sphinxcontrib-globalsubs isn't on conda-forge so maybe we can stick with rst_prolog for today.

I pushed a change to add a new variable in 8500c1a. I didn't have a strong preference on the variable's name.

@amoeba amoeba requested a review from lidavidm February 10, 2026 01:42
f".. |source_download| replace:: `apache-arrow-adbc-{quote(release)}.tar.gz <https://www.apache.org/dyn/closer.lua/arrow/apache-arrow-adbc-{quote(release)}/apache-arrow-adbc-{quote(release)}.tar.gz>`__\n" # noqa: E501
f".. |source_checksum| replace:: `checksum <https://downloads.apache.org/arrow/apache-arrow-adbc-{quote(release)}/apache-arrow-adbc-{quote(release)}.tar.gz.sha512>`__\n" # noqa: E501
f".. |source_signature| replace:: `signature <https://downloads.apache.org/arrow/apache-arrow-adbc-{quote(release)}/apache-arrow-adbc-{quote(release)}.tar.gz.asc>`__\n" # noqa: E501
f".. |source_download| replace:: `apache-arrow-adbc-{quote(latest_release)}.tar.gz <https://www.apache.org/dyn/closer.lua/arrow/apache-arrow-adbc-{quote(latest_release)}/apache-arrow-adbc-{quote(latest_release)}.tar.gz>`__\n" # noqa: E501
Copy link
Member Author

Choose a reason for hiding this comment

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

I guess I could remove the quote calls but I also guess they make this safer.

Comment on lines +101 to +102
sed -i.bak -E "s/latest_release = \".+\"/latest_release = \"${docs_version}\"/g" "${ADBC_DIR}/docs/source/conf.py"
rm "${ADBC_DIR}/docs/source/conf.py.bak"
Copy link
Member

Choose a reason for hiding this comment

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

I think this will work on release, but won't work on dev, right? docs_version will be 24 (dev). I think up top, we need to check if this is a release or snapshot; if snapshot use PREVIOUS_RELEASE from versions.env, else use RELEASE

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: update download page to comply with ASF policy

2 participants