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

Add favicon to documentation #1967

Merged
merged 2 commits into from Dec 31, 2022
Merged

Add favicon to documentation #1967

merged 2 commits into from Dec 31, 2022

Conversation

choldgraf
Copy link
Contributor

@choldgraf choldgraf commented Dec 19, 2022

I've been browsing the datasette documentation and found it hard to quickly locate tabs with many of them open, because it does not ship a favicon. So this PR:

  • Grabs the favicon .png from datasette itself1
  • Adds it to the _static/ folder
  • Sets html_favicon to load it in the docs

Footnotes

  1. I also learned that Chrome can fetch favicons as an internal service! See chrome://favicon/https://datasette.io/tools/github-to-sqlite.

@simonw
Copy link
Owner

simonw commented Dec 31, 2022

Thanks for this!

Datasette has a favicon in this file: https://github.com/simonw/datasette/blob/2b4a8aa0833068da25072b6247bf349949ca00ee/datasette/static/favicon.png - so I'll copy that over and use it here as well.

@simonw
Copy link
Owner

simonw commented Dec 31, 2022

My Firefox tab before:

image

And after:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants