Skip to content

Conversation

@devanshshukla99
Copy link
Contributor

@devanshshukla99 devanshshukla99 commented Mar 18, 2023

As highlighted in #705, the documentation contains astropy's logo at the top left and as the favicon. This PR replaces those with the stingray's logo, fixes #705

The favicon can be replaced easily by overriding html_favicon in conf.py, unfortunately, the same is not true for the logo in the top left, since it's hard coded into astropy_sphinx_theme at https://github.com/astropy/astropy-sphinx-theme/blob/main/astropy_sphinx_theme/bootstrap-astropy/static/bootstrap-astropy.css?plain=1#L253-L255

The current implementation works by overriding the css propery using custom.css and adding the 32x32 stingray's logo in base64 form.

Rendered docs:

image
image

@codecov
Copy link

codecov bot commented Mar 18, 2023

Codecov Report

Merging #707 (a9d62a6) into main (fb98a57) will not change coverage.
The diff coverage is n/a.

❗ Current head a9d62a6 differs from pull request most recent head 300dd93. Consider uploading reports for the commit 300dd93 to get more accurate results

@@           Coverage Diff           @@
##             main     #707   +/-   ##
=======================================
  Coverage   97.21%   97.21%           
=======================================
  Files          42       42           
  Lines        7797     7797           
=======================================
  Hits         7580     7580           
  Misses        217      217           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@devanshshukla99 devanshshukla99 marked this pull request as ready for review March 18, 2023 14:31
ViratSrivastava added a commit to ViratSrivastava/astropy-sphinx-theme that referenced this pull request Apr 3, 2023
change made as per issues raised by
#705 StingraySoftware/stingray#705
#707 from StingraySoftware/stingray#707
Now documentation will show the stingray log.
I was unable to add the stingray logo to the statics, hence replaced the image source with links from documentation website of stingray
@matteobachetti
Copy link
Member

Thanks @devanshshukla99 !

@matteobachetti matteobachetti added this pull request to the merge queue Apr 13, 2023
Merged via the queue into StingraySoftware:main with commit a417cc1 Apr 13, 2023
@devanshshukla99 devanshshukla99 deleted the fix-logo branch April 13, 2023 09:16
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.

Documentations should have stingray logo, not astropy logo

2 participants