{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://nextra.site/schemas/nextra/nextra-theme-docs-config.json", "title": "Nextra Docs Theme Layout Configuration", "description": "Configuration props for the nextra-theme-docs Layout component. Passed as React props to the component in the root layout.tsx of a Nextra docs site. Controls sidebar behavior, navigation bar, table of contents, dark mode, edit links, feedback, i18n language switching, theming, and footer.", "type": "object", "required": ["pageMap"], "properties": { "pageMap": { "type": "array", "description": "Page map list. The result of the getPageMap(route = '/') call from the nextra/page-map module. Required by the Layout component to build the sidebar and navigation.", "items": { "description": "A PageMapItem representing a file, folder, or meta entry in the Nextra page tree." } }, "banner": { "description": "Rendered Banner component. Displayed at the top of every page. E.g. ." }, "children": { "description": "Page content rendered inside the layout. Passed automatically by Next.js." }, "copyPageButton": { "type": "boolean", "description": "Hide or show the copy page content button that copies the entire page markdown content to the clipboard.", "default": true }, "darkMode": { "type": "boolean", "description": "Show or hide the dark mode select button in the navbar.", "default": true }, "docsRepositoryBase": { "type": "string", "pattern": "^https://", "description": "Base URL of the documentation repository on GitHub. Used to generate the edit this page and feedback links.", "default": "https://github.com/shuding/nextra" }, "editLink": { "description": "Content of the edit link shown at the bottom of each page. Defaults to the string 'Edit this page'.", "default": "Edit this page" }, "feedback": { "$ref": "#/$defs/FeedbackConfig" }, "footer": { "description": "Rendered Footer component. E.g.