@farming-labs/next 0.1.41 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/config.d.mts +2 -24
  2. package/package.json +3 -3
package/dist/config.d.mts CHANGED
@@ -1,28 +1,6 @@
1
- import * as next from "next";
1
+ import { NextConfig } from "next";
2
2
 
3
3
  //#region src/config.d.ts
4
- /**
5
- * Next.js config wrapper for @farming-labs/docs.
6
- * Handles MDX compilation, frontmatter, syntax highlighting, TOC extraction,
7
- * and auto-generates mdx-components.tsx + docs layout when missing.
8
- *
9
- * @example
10
- * // next.config.ts — this is all you need:
11
- * import { withDocs } from "@farming-labs/next/config";
12
- * export default withDocs();
13
- *
14
- * @example
15
- * // With existing Next.js config
16
- * import { withDocs } from "@farming-labs/next/config";
17
- * export default withDocs({
18
- * images: { remotePatterns: [{ hostname: "example.com" }] },
19
- * });
20
- *
21
- * @example
22
- * // Full static export (Cloudflare Pages, etc.) — no server; API route is skipped.
23
- * // In docs.config set ai.enabled: false and staticExport: true.
24
- * export default withDocs({ output: "export" });
25
- */
26
- declare function withDocs(nextConfig?: Record<string, unknown>): next.NextConfig;
4
+ declare function withDocs(nextConfig?: NextConfig): NextConfig;
27
5
  //#endregion
28
6
  export { withDocs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/next",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
5
5
  "keywords": [
6
6
  "docs",
@@ -95,8 +95,8 @@
95
95
  "tsdown": "^0.20.3",
96
96
  "typescript": "^5.9.3",
97
97
  "vitest": "^3.2.4",
98
- "@farming-labs/docs": "0.1.41",
99
- "@farming-labs/theme": "0.1.41"
98
+ "@farming-labs/theme": "0.1.42",
99
+ "@farming-labs/docs": "0.1.42"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@farming-labs/docs": ">=0.0.1",