Skip to content

Conversation

@AlenkaF
Copy link
Member

@AlenkaF AlenkaF commented Jun 23, 2025

Rationale for this change

Stable and dev docs are not correctly updated and need manual intervention due to the upstream change in version warning banner.

What changes are included in this PR?

Another sed substitution is added.

Are these changes tested?

I have tested locally with

> sed -i .bak -e '/^[[:space:]]\{8\}DOCUMENTATION_OPTIONS\.show_version_warning_banner =[[:space:]]*$/{
N
s/^\([[:space:]]\{8\}DOCUMENTATION_OPTIONS\.show_version_warning_banner =[[:space:]]*\)\n[[:space:]]\{12\}false;/\1\n            true;/g
}' index.html

Are there any user-facing changes?

No.

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

BTW, why do we need to update DOCUMENTATION_OPTIONS.show_version_warning_banner in HTMLs? It seems that "preferred": true in our versions.json is enough...

"preferred": true

https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/announcements.html#version-warning-banners

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Jun 23, 2025
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jun 24, 2025
@AlenkaF
Copy link
Member Author

AlenkaF commented Jun 24, 2025

BTW, why do we need to update DOCUMENTATION_OPTIONS.show_version_warning_banner in HTMLs? It seems that "preferred": true in our versions.json is enough...

I think, though I am not 100% sure - would need to check previous discussions, the reason for this is that show_version_warning_banner configuration option was not available for older versions of the docs (also mentioned in the pydata-sphinx-theme announcements link you have shared.

Will check older PRs to see if there is any mention of it.

@AlenkaF
Copy link
Member Author

AlenkaF commented Jun 24, 2025

Hm, I think the reason we need sed for the stable/dev docs is because we simply copy/paste the content where the DOCUMENTATION_OPTIONS.show_version_warning_banner is already set in HTML from the previous release process, see #39737 (comment).

So I think this, unfortunately, has to stay.

I do think we need to update the pin on the theme, though! Will try to work on the issue at the end of this week or in the beginning of next: #39759

@AlenkaF
Copy link
Member Author

AlenkaF commented Jul 1, 2025

I suggest we include this in the 21.0.0 release. I’ll take care of the post-release docs task (post-09-docs.sh) to ensure it works as expected — and will fix it if it doesn’t. What do you think @amoeba @kou @assignUser

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Jul 1, 2025
@assignUser
Copy link
Member

assignUser commented Jul 1, 2025

But I think joris is right here, we use a current version so we should be able to just switch over as long as we maintain the versions.json file?

Ah, yes, show_version_warning_banner will also still have to be updated, but only once for the next release, and then afterwards (if we don't patch that anymore), it should be fine I think.

Edit: Ah, I guess one more edit because we hardcode it to false.

+1 on solving this before 21

Copy link
Member

@amoeba amoeba left a comment

Choose a reason for hiding this comment

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

+1

@AlenkaF
Copy link
Member Author

AlenkaF commented Jul 2, 2025

But I think joris is right here, we use a current version so we should be able to just switch over as long as we maintain the versions.json file?

Yeah, it is a bit confusing. I will do the post release task and see if any of the sed changes can be removed and we could only depend on the versions.json. If that is the case, the sed commands will not have any effect anyways - AFAIU.

@AlenkaF AlenkaF merged commit d024a22 into apache:main Jul 2, 2025
7 checks passed
@AlenkaF AlenkaF removed the awaiting merge Awaiting merge label Jul 2, 2025
@AlenkaF AlenkaF deleted the gh-45290-update-post-docs branch July 2, 2025 05:15
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit d024a22.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

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.

4 participants