Skip to content

Commit

Permalink
Add static assets to docs pages (#6951)
Browse files Browse the repository at this point in the history
## Summary

This PR points the docs towards the static assets that we use for
`astral.sh`, so that we can use shared assets for the Ruff and uv docs.
  • Loading branch information
charliermarsh authored Sep 3, 2024
1 parent 47f4ca2 commit 92e93da
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
20 changes: 20 additions & 0 deletions docs/.overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% extends "base.html" %}

{% block extrahead %}
<link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png"/>
<link rel="manifest" href="/static/site.webmanifest"/>
<link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#2e183d"/>
<meta name="msapplication-TileColor" content="#d7ff64"/>
<meta name="theme-color" content="#ffffff"/>
<meta name="robots" content="index,follow"/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Astral",
"url": "https://astral.sh"
}
</script>
{% endblock %}
Binary file modified docs/assets/favicon.ico
Binary file not shown.
4 changes: 0 additions & 4 deletions docs/assets/favicon.svg

This file was deleted.

2 changes: 1 addition & 1 deletion mkdocs.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ site_name: uv
theme:
name: material
logo: assets/logo-letter.svg
favicon: assets/favicon.svg
favicon: assets/favicon.ico
features:
- navigation.instant
- navigation.instant.prefetch
Expand Down

0 comments on commit 92e93da

Please sign in to comment.