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

docs: add favicon #2853

Draft
wants to merge 5 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const config: UserConfig<DefaultTheme.Config> = {
description,

head: [
['link', { rel: 'icon', href: '/logo.svg' }],
['link', { rel: 'icon', href: '/favicon.svg' }],
['meta', { name: 'theme-color', content: '#40af7c' }],
[
'meta',
Expand Down
10 changes: 10 additions & 0 deletions docs/public/favicon.svg
Copy link
Member

@xDivisionByZerox xDivisionByZerox Apr 28, 2024

Choose a reason for hiding this comment

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

The file could be optimized by using a tool like SVGOMG. I get a file size reduction from around 40% when doing so. Additionally, the paths are usually don't require a precision of more than 3 digits. You can round all of them using the "precision" slider on the mentioned tool.

This step will be required when uploading to simple-icons as well.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.