Add static assets to docs pages (#6951)

## 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.
This commit is contained in:
Charlie Marsh 2024-09-02 20:00:30 -04:00 committed by GitHub
parent 47f4ca24b3
commit 92e93da81d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 5 deletions

20
docs/.overrides/main.html Normal file
View file

@ -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 not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Before After
Before After

View file

@ -1,4 +0,0 @@
<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="100" height="100" rx="20" fill="#261230"/>
<path d="M29.9998 30.1688L30.0841 50.1686L30.1516 66.1685C30.1609 68.3776 31.9593 70.1609 34.1684 70.1516L50.1683 70.0841L60.1682 70.042L61.185 70.0377C63.3875 70.0284 65.1681 68.2027 65.1681 66.0002V66.0002L67.0001 66.0002L67.0001 69.9994L70.1681 69.9998L69.9995 30.0002L51.5996 30.0778L51.6772 46.0187L51.6772 56L50.0772 56L48.3997 56L48.4772 46.0322L48.3997 30.0912L29.9998 30.1688Z" fill="#DE5FE9"/>
</svg>

Before

Width:  |  Height:  |  Size: 567 B

View file

@ -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