Configuration
Configure branding, navigation, search, feedback, and integrations.
On this page
Pass a factory to provideNgxDocs. The factory runs inside Angular's injection context and returns the site configuration.
provideNgxDocs(() => ({
brand: {
name: "Acme",
logoSrc: "/acme.svg",
homeLink: "/",
},
headerNav: [
{ label: "Docs", routerLink: "/docs" },
{ label: "GitHub", href: "https://github.com/acme/docs" },
],
search: {
type: "local",
placeholder: "Search documentation…",
maxResults: 8,
},
feedback: { enabled: true },
sidebar: getSidebar(),
})),
Configuration groups
brandcontrols the logo, name, and home link.sidebaris the ordered page tree generated from content metadata.searchselects local search or Algolia DocSearch.localesenables locale-aware links and the language picker.aiexposes MCP and agent-readable documentation endpoints.comments,analytics, andfeedbackenable optional integrations.frontmatterextends or validates project-specific page metadata.
Keep application-specific values in the app config and reusable behavior in the corresponding ngxdocs package.
Last updated on
How is this guide?
Let us know whether this page helped you.