Skip to content

Conversation

@melissawm
Copy link
Member

References and relevant issues

Related to #807 and #801

Description

Deactivates the announcement banner and moves the template back to _static.

The reason the templates needs to live in _static is that we want to be able to do updates to the banner without rebuilding the full docs site (see https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/announcements.html#update-or-remove-announcement-banner)

Also remove redundant logic for the version switcher.

Move announcement banner template to _static for future updates.
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Aug 1, 2025
@willingc
Copy link
Contributor

willingc commented Aug 1, 2025

@melissawm Curious about what the downside is for doing a full docs rebuild when changing the announcement?

@psobolewskiPhD
Copy link
Member

psobolewskiPhD commented Aug 1, 2025

@willingc I think this PR the the "source of truth" #341

The idea is that all the banners on all of the versions that were built with the flag will read from the same source that they can all access and is simple to edit. Then those old versions do not need to be rebuilt for a specific file.

@willingc willingc merged commit 6d46524 into napari:main Aug 2, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants