mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-08 22:48:25 -05:00
tweak docs style (#4745)
This commit is contained in:
25
docs/favicon.svg
Normal file
25
docs/favicon.svg
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 150 70" shape-rendering="crispEdges">
|
||||||
|
<g id="logo">
|
||||||
|
<!-- t -->
|
||||||
|
<polygon points="10,40 10,20 0,20 0,10 10,10 10,0 20,0 20,10 30,10 30,20 20,20 20,30 30,30 30,40" />
|
||||||
|
<!-- i -->
|
||||||
|
<polygon points="40,40 40,20 50,20 50,40" />
|
||||||
|
<polygon points="40,10 40,0 50,0 50,10" />
|
||||||
|
<!-- n -->
|
||||||
|
<polygon points="60,40 60,10 80,10 80,40 90,40 90,20 70,20 70,40" />
|
||||||
|
<!-- y -->
|
||||||
|
<polygon points="100,50 100,40 130,40 130,10 120,10 120,20 110,20 110,10 100,10 100,30 120,30 120,50" />
|
||||||
|
</g>
|
||||||
|
<style>
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
#logo {
|
||||||
|
fill: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
#logo {
|
||||||
|
fill: #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 750 B |
41
mkdocs.yml
41
mkdocs.yml
@@ -3,17 +3,18 @@ site_name: tinygrad docs
|
|||||||
site_url: https://docs.tinygrad.org/
|
site_url: https://docs.tinygrad.org/
|
||||||
repo_url: https://github.com/tinygrad/tinygrad/
|
repo_url: https://github.com/tinygrad/tinygrad/
|
||||||
nav:
|
nav:
|
||||||
- Home: index.md
|
- Home:
|
||||||
- Quickstart: quickstart.md
|
- index.md
|
||||||
- MNIST Tutorial: mnist.md
|
- Quickstart: quickstart.md
|
||||||
- API:
|
- Showcase: showcase.md
|
||||||
|
- MNIST Tutorial: mnist.md
|
||||||
|
- API Reference:
|
||||||
- Tensor: tensor.md
|
- Tensor: tensor.md
|
||||||
- Function: function.md
|
- Function: function.md
|
||||||
- dtypes: dtypes.md
|
- dtypes: dtypes.md
|
||||||
- nn (Neural Networks): nn.md
|
- nn (Neural Networks): nn.md
|
||||||
- Showcase: showcase.md
|
- Environment Variables: env_vars.md
|
||||||
- Developer: developer.md
|
- Developer: developer.md
|
||||||
- Environment: env_vars.md
|
|
||||||
#- tinygrad: reference/
|
#- tinygrad: reference/
|
||||||
|
|
||||||
#extra_css:
|
#extra_css:
|
||||||
@@ -51,7 +52,7 @@ markdown_extensions:
|
|||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
logo: logo_tiny_dark.svg
|
logo: logo_tiny_dark.svg
|
||||||
favicon: logo_tiny_dark.svg
|
favicon: favicon.svg
|
||||||
features:
|
features:
|
||||||
- announce.dismiss
|
- announce.dismiss
|
||||||
- content.action.edit
|
- content.action.edit
|
||||||
@@ -62,16 +63,36 @@ theme:
|
|||||||
- navigation.footer
|
- navigation.footer
|
||||||
- navigation.indexes
|
- navigation.indexes
|
||||||
- navigation.sections
|
- navigation.sections
|
||||||
- navigation.tabs
|
|
||||||
- navigation.tabs.sticky
|
|
||||||
- navigation.top
|
- navigation.top
|
||||||
- search.highlight
|
- search.highlight
|
||||||
- search.suggest
|
- search.suggest
|
||||||
- toc.follow
|
- toc.follow
|
||||||
|
- toc.integrate
|
||||||
palette:
|
palette:
|
||||||
scheme: slate
|
scheme: slate
|
||||||
primary: black
|
primary: black
|
||||||
accent: lime
|
accent: lime
|
||||||
|
palette:
|
||||||
|
- media: "(prefers-color-scheme)"
|
||||||
|
accent: lime
|
||||||
|
primary: black
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-auto
|
||||||
|
name: Switch to light mode
|
||||||
|
- media: "(prefers-color-scheme: light)"
|
||||||
|
scheme: default
|
||||||
|
accent: lime
|
||||||
|
primary: black
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-7
|
||||||
|
name: Switch to dark mode
|
||||||
|
- media: "(prefers-color-scheme: dark)"
|
||||||
|
scheme: slate
|
||||||
|
accent: lime
|
||||||
|
primary: black
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-4
|
||||||
|
name: Switch to system preference
|
||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
- mkdocstrings:
|
- mkdocstrings:
|
||||||
|
|||||||
Reference in New Issue
Block a user