Configuration
The docs-config.json file controls the global settings of your site.
Configuration Structure
Lito’s configuration is divided into two categories:
- Core Config - Portable across all templates (guaranteed to work)
- Extensions - Template-specific features (templates ignore what they don’t support)
This means you can swap templates without changing your docs - core config always works, and unsupported extensions are simply ignored.
Core Configuration
These options are supported by ALL Lito templates:
| Property | Type | Required | Description |
|---|---|---|---|
metadata | object | Yes | Site meta information. |
branding | object | No | Logo, favicon, and primary color. |
navigation | object | No | Sidebar and navbar structure. |
search | object | No | Search configuration. |
seo | object | No | SEO and social sharing settings. |
i18n | object | No | Internationalization settings. |
assets | object | No | Asset folder configuration. |
Extensions (Template-Specific)
These options are template-specific. Templates that don’t support them will simply ignore the configuration:
| Property | Type | Description |
|---|---|---|
footer | object | Footer layout and links. |
theme | object | Extended theme options. |
landing | object | Landing page configuration. |
integrations | object | Analytics, feedback, copy page. |
versioning | object | Documentation versioning. |
metadata (Required)
"metadata": { "name": "Site Name", "description": "Site description", "url": "https://docs.example.com", "version": "1.0.0"}| Property | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Site name (appears in title and meta tags). |
description | string | No | Default site description for SEO. |
url | string | No | Base URL for canonical URLs and OG tags. |
version | string | No | Documentation version. |
branding
"branding": { "logo": { "light": "/logo-light.svg", "dark": "/logo-dark.svg", "href": "/" }, "favicon": "/favicon.svg", "colors": { "primary": "#6366f1" }}| Property | Type | Description |
|---|---|---|
logo.light | string | Logo for light mode. |
logo.dark | string | Logo for dark mode. |
logo.href | string | Link when clicking the logo. |
favicon | string | Favicon path. |
colors.primary | string | Primary brand color. |
navigation
"navigation": { "navbar": { "links": [ { "label": "GitHub", "href": "https://github.com/..." } ], "cta": { "label": "Get Started", "href": "/introduction" } }, "sidebar": [ { "label": "Getting Started", "items": [ { "label": "Installation", "href": "/getting-started/installation" }, { "label": "Quick Start", "href": "/getting-started/quick-start" } ] } ]}Sidebar Items
| Property | Type | Description |
|---|---|---|
label | string | Display text. |
href | string | Page URL or external link. |
slug | string | Page slug (alternative to href). |
icon | string | Iconify icon name (e.g., lucide:home). |
method | string | HTTP method for API docs (GET, POST, etc.). |
items | array | Nested items for sub-groups. |
Locale-Specific Sidebars
You can define different sidebars per locale:
"navigation": { "sidebar": [...], "sidebar.es": [...], "sidebar.fr": [...]}search
"search": { "enabled": true, "provider": "local", "placeholder": "Search docs..."}| Property | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Enable search. |
provider | string | local | Search provider (local or algolia). |
placeholder | string | Search... | Search input placeholder. |
seo
"seo": { "ogImage": "/og-image.png", "twitterHandle": "@yourhandle", "defaultAuthor": "Your Name", "defaultKeywords": ["docs", "api"], "enableJsonLd": true, "organizationName": "Your Org", "articleType": "TechArticle", "autoCanonical": true, "enableBreadcrumbs": true}| Property | Type | Default | Description |
|---|---|---|---|
ogImage | string | - | Default Open Graph image. |
twitterHandle | string | - | Twitter handle for twitter:creator. |
twitterSite | string | - | Twitter site handle. |
defaultAuthor | string | - | Default author name. |
defaultKeywords | string[] | - | Default keywords for all pages. |
enableJsonLd | boolean | true | Enable JSON-LD structured data. |
organizationName | string | - | Organization name for JSON-LD. |
organizationLogo | string | - | Organization logo URL. |
articleType | string | TechArticle | TechArticle or Article. |
autoCanonical | boolean | true | Auto-generate canonical URLs. |
enableBreadcrumbs | boolean | true | Enable breadcrumb JSON-LD. |
i18n
"i18n": { "defaultLocale": "en", "locales": ["en", "es", "fr"], "routing": { "prefixDefaultLocale": false }, "translations": { "es": { "search.placeholder": "Buscar..." } }}| Property | Type | Default | Description |
|---|---|---|---|
defaultLocale | string | en | Default locale. |
locales | string[] | ["en"] | Supported locales. |
routing.prefixDefaultLocale | boolean | false | Include default locale in URLs. |
translations | object | - | Custom UI translations per locale. |
assets
"assets": { "images": "_images", "css": "_css", "static": "_assets"}| Property | Type | Default | Description |
|---|---|---|---|
images | string | _images | Images folder name. |
css | string | _css | CSS folder name. |
static | string | _assets | Static assets folder. |
Extensions
landing
Configure an optional landing page:
"landing": { "enabled": true, "hero": { "title": "Your Product", "subtitle": "A brief description", "version": "v2.0", "cta": [ { "label": "Get Started", "href": "/docs", "variant": "primary" }, { "label": "GitHub", "href": "https://github.com", "variant": "secondary" } ] }, "features": [ { "title": "Feature Name", "description": "Feature description", "icon": "rocket" } ]}footer
"footer": { "layout": "full", "tagline": "Beautiful docs made simple", "copyright": "© {year} Your Company", "showBranding": true, "socials": { "github": "https://github.com/...", "twitter": "https://twitter.com/..." }, "links": [ { "title": "Resources", "items": [ { "label": "Documentation", "href": "/docs" } ] } ]}theme
"theme": { "mode": "auto", "defaultDark": false, "primaryColor": "#6366f1", "accentColor": "#22d3ee"}integrations
"integrations": { "analytics": { "provider": "google", "measurementId": "G-XXXXXXX" }, "feedback": { "enabled": true }, "copyPage": { "enabled": true, "position": "bottom-right" }}versioning
"versioning": { "enabled": true, "defaultVersion": "latest", "versions": [ { "id": "latest", "label": "Latest", "path": "latest" }, { "id": "v1", "label": "v1.0", "path": "v1", "deprecated": true } ], "versionBanner": { "enabled": true, "message": "You are viewing docs for an older version." }}