Added logo and favicon for mkdocs (#2757)

This commit is contained in:
trag1c 2023-02-11 05:34:47 +01:00 committed by GitHub
parent 24faabf1f4
commit e6538a7969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
crates/ruff/resources/test/cpython crates/ruff/resources/test/cpython
docs/* docs/*
!docs/rules !docs/rules
!docs/assets
mkdocs.yml mkdocs.yml
.overrides .overrides

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

6
docs/assets/ruff.svg Normal file
View File

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128">
<path
d="M115.36 61.84 70.22 50.49 114.45 2.4a1.222 1.222 0 0 0-1.54-1.87L12.3 61.98c-.41.25-.64.72-.57 1.2.06.48.4.87.87 1.01l45.07 13.25-44.29 48.16c-.42.46-.44 1.15-.04 1.61.24.29.58.44.94.44.22 0 .45-.06.65-.19l100.78-63.41c.42-.26.64-.75.56-1.22-.08-.49-.43-.88-.91-.99z"
style="fill:#ffffff"
/>
</svg>

After

Width:  |  Height:  |  Size: 397 B

View File

@ -1,6 +1,8 @@
site_name: Ruff site_name: Ruff
theme: theme:
name: material name: material
logo: assets/ruff.svg
favicon: assets/ruff-favicon.png
features: features:
- navigation.instant - navigation.instant
- navigation.tracking - navigation.tracking