Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show announcement banner if announcement contents are empty #1703

Merged
merged 3 commits into from
Feb 12, 2024

Conversation

melissawm
Copy link
Contributor

Also add documentation about updating and removing announcement banners.

Closes #1695

Also add documentation about updating and removing announcement banners.
@trallard trallard added the kind: enhancement New feature or request label Feb 5, 2024
Copy link
Collaborator

@drammock drammock left a comment

Choose a reason for hiding this comment

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

Sorry for the slow review @melissawm

I pushed a commit to remove the else and dedent its contents (since we return in the if branch). I'll also add 2 tiny formatting fixes to the docs (which are otherwise perfect, thanks!)

docs/user_guide/announcements.rst Outdated Show resolved Hide resolved
docs/user_guide/announcements.rst Outdated Show resolved Hide resolved
@drammock
Copy link
Collaborator

ignoring codecov upload failures, which should be fixed by #1717

thanks @melissawm!

@drammock drammock merged commit 7de2c04 into pydata:main Feb 12, 2024
14 of 16 checks passed
@melissawm melissawm deleted the banner-update branch February 26, 2024 22:13
jni added a commit to napari/docs that referenced this pull request Feb 28, 2024
The survey has now closed. Until we build the docs with a release of
pydata sphinx theme containing [this
PR](pydata/pydata-sphinx-theme#1703), we can't
remove the banner without rebuilding the docs entirely. Therefore, until
our next release, we can have some helpful text at the top. 😊
ivanov pushed a commit to ivanov/pydata-sphinx-theme that referenced this pull request Jun 5, 2024
…ydata#1703)

* Do not show announcement banner if announcement contents are empty

Also add documentation about updating and removing announcement banners.

* dedent

* Apply suggestions from code review

---------

Co-authored-by: Daniel McCloy <dan@mccloy.info>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not show announcement banner if contents are empty
3 participants