Configuration

The docs-config.json file controls the global settings of your site.

Configuration Object

The root object takes the following properties:

PropertyTypeDescription
metadataobjectSite meta information (title, description, url).
brandingobjectLogo and favicon settings.
navigationobjectSidebar and navbar structure.
themeobjectColor palette customization.
seoobjectSEO and social sharing settings.
landingobjectLanding page configuration (optional).

metadata

"metadata": {
"name": "Site Name",
"description": "Site description",
"url": "https://docs.example.com",
"version": "1.0.0"
}
PropertyTypeDescription
namestringSite name (appears in title and meta tags).
descriptionstringDefault site description for SEO.
urlstringBase URL for canonical URLs and OG tags.
versionstringDocumentation version (optional).
"navigation": {
"navbar": {
"links": [
{ "label": "GitHub", "href": "..." }
],
"cta": { "label": "Get Started", "href": "..." }
},
"sidebar": [
{
"label": "Group Name",
"items": [
{ "label": "Page Name", "href": "/path/to/page" }
]
}
]
}

theme

"theme": {
"primaryColor": "#6366f1",
"accentColor": "#22d3ee"
}

seo

Configure SEO defaults for your documentation site.

"seo": {
"ogImage": "/og-image.png",
"twitterHandle": "@yourhandle",
"twitterSite": "@sitehandle",
"defaultAuthor": "Your Name",
"defaultKeywords": ["docs", "api", "documentation"],
"enableJsonLd": true,
"organizationName": "Your Organization",
"organizationLogo": "/logo.png",
"articleType": "TechArticle",
"autoCanonical": true,
"enableBreadcrumbs": true
}
PropertyTypeDefaultDescription
ogImagestring/og-image.pngDefault Open Graph image for social sharing.
twitterHandlestring-Twitter handle for twitter:creator meta tag.
twitterSitestring-Twitter site handle (defaults to twitterHandle).
defaultAuthorstring-Default author name for article metadata.
defaultKeywordsstring[]-Default keywords applied to all pages.
enableJsonLdbooleantrueEnable JSON-LD structured data.
organizationNamestring-Organization name for JSON-LD publisher info.
organizationLogostring-Organization logo URL for JSON-LD.
articleTypestringTechArticleJSON-LD article type (TechArticle or Article).
autoCanonicalbooleantrueAutomatically generate canonical URLs.
enableBreadcrumbsbooleantrueEnable breadcrumb JSON-LD structured data.

landing

Configure an optional landing page for your docs site.

"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"
}
]
}