@open-agent-toolkit/docs-config 0.3.22 → 0.3.23
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.
- package/README.md +3 -2
- package/dist/next-config.d.ts +3 -0
- package/dist/next-config.d.ts.map +1 -1
- package/dist/next-config.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,11 +18,12 @@ Install the required Fumadocs, Next.js, and React peer dependencies in your app
|
|
|
18
18
|
import { createDocsConfig } from '@open-agent-toolkit/docs-config';
|
|
19
19
|
|
|
20
20
|
export default createDocsConfig({
|
|
21
|
-
|
|
22
|
-
description: 'Documentation site',
|
|
21
|
+
basePath: '/my-docs',
|
|
23
22
|
});
|
|
24
23
|
```
|
|
25
24
|
|
|
25
|
+
`createDocsConfig` preserves static export settings while accepting optional `basePath` and `turbopack.root`. For nested-standalone apps with their own lockfile, pass `turbopack: { root: dirname(fileURLToPath(import.meta.url)) }` with `dirname` from `node:path` and `fileURLToPath` from `node:url`. Leave it unset for monorepos and single-package apps so Next.js can discover the dependency root. Set the site title and description through the Next.js `metadata` export in `app/layout.tsx`, and the navigation title through `DocsLayout` branding.
|
|
26
|
+
|
|
26
27
|
`source.config.ts`
|
|
27
28
|
|
|
28
29
|
```ts
|
package/dist/next-config.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { NextConfig } from 'next';
|
|
2
2
|
export interface DocsConfigOptions {
|
|
3
3
|
basePath?: string;
|
|
4
|
+
turbopack?: {
|
|
5
|
+
root?: string;
|
|
6
|
+
};
|
|
4
7
|
}
|
|
5
8
|
export declare function createDocsConfig(options: DocsConfigOptions): NextConfig;
|
|
6
9
|
//# sourceMappingURL=next-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-config.d.ts","sourceRoot":"","sources":["../src/next-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"next-config.d.ts","sourceRoot":"","sources":["../src/next-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/B;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAmBvE"}
|
package/dist/next-config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-agent-toolkit/docs-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Configuration factories for OAT documentation sites",
|
|
6
6
|
"homepage": "https://github.com/voxmedia/open-agent-toolkit/tree/main/packages/docs-config",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"flexsearch": "^0.8.212",
|
|
34
34
|
"remark-github-blockquote-alert": "^2.0.1",
|
|
35
35
|
"unified": "^11.0.5",
|
|
36
|
-
"@open-agent-toolkit/docs-transforms": "0.3.
|
|
36
|
+
"@open-agent-toolkit/docs-transforms": "0.3.23"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/mdast": "^4.0.4",
|