pages/+docs.ts
pages/+docs.ts is the main consumer config file for Nivel. It combines site metadata, route behavior, the docs graph, theme settings, brand assets, head tags, social links, partners, and top bar navigation.
JavaScript
import { docsGraph } from '../content/docs.graph'
const docsConfig = {
graph: docsGraph,
siteTitle: 'My Docs',
siteDescription: 'Documentation site powered by @unterberg/nivel.',
siteUrl: 'https://docs.example.com',
basePath: '/docs'
}
export default docsConfigKeep it plain
Use a plain object with satisfies DocsConfig. The config file should be easy for consumers to read and edit without wrapper helpers.
Related settings are covered in Base Path and Content Directory, Theme Configuration, and Brand, Head and Fonts.