Configuration
Logo Configuration
Add your logo to the documentation site
Simple Logo
Use a single logo for all themes:
{
"logo": "/logo.svg"
}
Light & Dark Logos
Use different logos for light and dark modes:
{
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg"
}
}
Logo with Link
Make the logo clickable:
{
"logo": {
"light": "/logo-light.svg",
"dark": "/logo-dark.svg",
"href": "/"
}
}
Logo File Location
Place logo files in the public/ directory:
my-project/
βββ public/
β βββ logo.svg
β βββ logo-light.svg
β βββ logo-dark.svg
βββ docs.json
βββ ...
Then reference them with /logo.svg in your config.
SVG format is recommended for logos as it scales perfectly at all sizes.