@farming-labs/next 0.1.119 → 0.1.121

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.
@@ -1,8 +1,8 @@
1
1
  import DocsClientCallbacks from "./client-callbacks.mjs";
2
2
  import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
3
3
  import { join, relative } from "node:path";
4
- import { ApiReference } from "@scalar/nextjs-api-reference";
5
4
  import { buildApiReferenceOpenApiDocumentAsync, buildApiReferencePageTitle, buildApiReferenceScalarCss, resolveApiReferenceConfig, resolveApiReferenceRenderer } from "@farming-labs/docs/server";
5
+ import { ApiReference } from "@scalar/nextjs-api-reference";
6
6
  import { SidebarTabsDropdown } from "fumadocs-ui/components/sidebar/tabs/dropdown";
7
7
  import Link from "next/link";
8
8
  import { notFound } from "next/navigation";
package/dist/config.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
2
2
  import { dirname, isAbsolute, join, relative } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
+ import { ensureDocsReviewWorkflow } from "@farming-labs/docs/server";
4
5
  import matter from "gray-matter";
5
6
  import createMDX from "@next/mdx";
6
7
 
@@ -1347,6 +1348,12 @@ function withDocs(nextConfig = {}) {
1347
1348
  const docsConfigAbsolutePath = join(root, docsConfigPath);
1348
1349
  const agentFeedback = readAgentFeedbackConfig(root);
1349
1350
  const docsConfigRelativeAlias = docsConfigPath.startsWith("./") || docsConfigPath.startsWith("../") ? docsConfigPath : `./${docsConfigPath}`;
1351
+ ensureDocsReviewWorkflow({
1352
+ rootDir: root,
1353
+ configPath: docsConfigPath,
1354
+ configContent: existsSync(docsConfigAbsolutePath) ? readFileSync(docsConfigAbsolutePath, "utf-8") : void 0,
1355
+ log: process.env.NODE_ENV === "test" ? void 0 : (message) => console.log(message)
1356
+ });
1350
1357
  if (!hasFile(root, "mdx-components")) writeFileSync(join(root, "mdx-components.tsx"), MDX_COMPONENTS_TEMPLATE);
1351
1358
  const entry = readDocsEntry(root);
1352
1359
  const docsPath = normalizeDocsPath(readDocsPath(root), entry);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/next",
3
- "version": "0.1.119",
3
+ "version": "0.1.121",
4
4
  "description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
5
5
  "keywords": [
6
6
  "docs",
@@ -100,8 +100,8 @@
100
100
  "tsdown": "^0.20.3",
101
101
  "typescript": "^5.9.3",
102
102
  "vitest": "^3.2.4",
103
- "@farming-labs/docs": "0.1.119",
104
- "@farming-labs/theme": "0.1.119"
103
+ "@farming-labs/docs": "0.1.121",
104
+ "@farming-labs/theme": "0.1.121"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@farming-labs/docs": ">=0.0.1",