import type { DocsConfig } from "@docsfn/core"; const deploymentOrigin = process.env.CLOUDFLARE_DOCS_DEPLOY === "1" ? process.env.CLOUDFLARE_DOCS_PUBLIC_ORIGIN || undefined : undefined; const config: DocsConfig = { schemaVersion: 1, site: { title: "DevFn", description: "Trusted local profiles, process and Compose lifecycle, port leases, readiness, and localhost routes.", basePath: "/docs", canonicalUrl: deploymentOrigin, editLink: { pattern: "https://github.com/21nCo/super-functions/edit/dev/devfn/docs/{path}" }, }, compat: { preset: "none" }, content: { root: ".", docsDir: "content/docs", pagesDir: "content/pages", blogDir: "content/blog", apiDir: "content/api", assetsDir: "static", metaFileName: "meta.json", }, navigation: { topNav: [ { label: "Docs", href: "/docs" }, { label: "Packages", href: "/docs/reference" }, { label: "GitHub", href: "https://github.com/21nCo/super-functions/tree/dev/devfn", external: true }, ], sidebars: { docs: { title: "Documentation", root: true, include: ["docs/**"] }, }, }, search: { enabled: true, scopes: ["docs"], bodyIndexing: "summary" }, auth: { enabled: false, mode: "public" }, analytics: { enabled: false, provider: "watchfn", respectDnt: true }, }; export default config;