Skip to content

Adding citing sunpy to navbar #284

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

Merged
merged 4 commits into from
Jun 19, 2025
Merged

Conversation

hayesla
Copy link
Member

@hayesla hayesla commented Mar 27, 2025

Fixes sunpy/sunpy.org#438 and adds an easy link to cite sunpy to the navbar

@@ -58,6 +58,7 @@ def default_navbar():
("Get Help", "help/", 2),
("Contribute", "contribute/", 2),
("Blog", "blog/", 2),
("Citing SunPy", "https://docs.sunpy.org/en/stable/citation.html", 3),
Copy link
Member

Choose a reason for hiding this comment

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

I'm a little reluctant to add more stuff to the very top level of the navbar, there's a practical limit to the number of things we can have before the nav bar starts looking wrong on certain screen widths.

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 totally get that - but I think having it prominent across the templates would be good?

Copy link
Member Author

Choose a reason for hiding this comment

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

or any other suggestion about where to put it?

Copy link
Member

Choose a reason for hiding this comment

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

We could move affiliated packages under about?!

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm i dont know, its also good to have that on the landing page with an easy button?

Copy link
Member Author

@hayesla hayesla Mar 27, 2025

Choose a reason for hiding this comment

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

does adding "Citing SunPy" here go beyond the practical limit ? i think its worthy here no?

Copy link
Member

Choose a reason for hiding this comment

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

yes, this happens below 1082 pixels wide:

Screen Shot 2025-03-27 at 15 49 51

Copy link
Member

Choose a reason for hiding this comment

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

We can attempt to fix this bug rather than work around it with less things of course.

Copy link
Member Author

Choose a reason for hiding this comment

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

ugh yeah thats gross.

@nabobalis nabobalis merged commit 7d57444 into sunpy:main Jun 19, 2025
10 checks passed
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.

Add link to how to cite sunpy to the landing page
3 participants