34 KiB
[email protected]
Default to Base UI
Internal packages & templates now use Base UI rather than Radix UI.
[email protected]
Require collection query param at regex matching
Instead of passing through all JSON/YAML files, the meta loader now requires collection query param to be triggered.
next-docs-mdx
15.0.12
Patch Changes
15.0.11
Patch Changes
2d65ceb: Support hot reload insource.config.tswith Vite plugin
15.0.10
Patch Changes
15.0.9
Patch Changes
cd04425: Support_fumadocs_skipViteConfiginternal flag
15.0.8
Patch Changes
dca5b49: Fix compatibility with?rawquery string- Updated dependencies [
e77b9b3] - Updated dependencies [
334c8fd]
15.0.7
Patch Changes
15.0.6
Patch Changes
da4a81a: Update vite configs
15.0.5
Patch Changes
1fb6a61: Support custom base directory for content sources
15.0.4
Patch Changes
819b6ec: Support Rolldown integration
15.0.3
Patch Changes
2569154: Pre-generate Vite config to prevent CJS compat issues- Updated dependencies [
062beab] - Updated dependencies [
505cfe0]
15.0.2
Patch Changes
298ac97: fix compatibility issues with Vite RSC- b212481: remove vitefu from inline deps
15.0.1
Patch Changes
91cac42: remove unused deps3696a7e: Make source config optional in Vite plugin- Updated dependencies [
2ca3eab]
15.0.0
Major Changes
-
3de9dfe: Require ESM fornext.configModern Node.js now supports
next.config.mtsformat, compatibility layer is no longer needed. -
3de9dfe: Raise minimumfumadocs-coreversion to16.7.0
Patch Changes
5745fcf: Support better Node.js loader registry
14.3.2
Patch Changes
79d3209: Deprecate forwarded schemas atfumadocs-mdx/config, recommendfumadocs-core/source/schemainstead.- Updated dependencies [
79d3209]
14.3.1
Patch Changes
a744f9f: Support frontmatter parsing at core-level
14.3.0
Minor Changes
-
fa9f678: Make Next.js config ESM onlyNewer Next.js supported
.mtsextension for Next.js config files, see Next.js docs for more info.
14.2.14
Patch Changes
eb62304: Makemdx-remoteoptional for dynamic mode- Updated dependencies [
e1567e2] - Updated dependencies [
9a200c8] - Updated dependencies [
c731a92] - Updated dependencies [
a4189ce]
14.2.13
Patch Changes
2d8f596: fixnpm packskipping nestednode_modules- Updated dependencies [
2d8f596]- @fumadocs/[email protected]
- [email protected]
14.2.12
Patch Changes
690ddb9: bundle more deps- Updated dependencies [
690ddb9]- @fumadocs/[email protected]
- [email protected]
14.2.11
Patch Changes
3144149: Fix dynamic index generation so generateddynamic.tsimportsnode:pathand passes lazy entries tocreate.doc()/create.docs()as arrays.- Updated dependencies [
f45d703] - Updated dependencies [
45aa454]
14.2.10
Patch Changes
c2678c0: Improvellms.txtgeneration viaremark-llmsplugin- Updated dependencies [
c2678c0] - Updated dependencies [
417f07a] - Updated dependencies [
bb07706] - Updated dependencies [
f065406]
14.2.9
Patch Changes
5453502: use Shiki.js v4- Updated dependencies [
5453502]- @fumadocs/[email protected]
- [email protected]
14.2.8
Patch Changes
1a614de: enforce MDX stringifier by default- Updated dependencies [
1a614de] - Updated dependencies [
6ab6692]
14.2.7
Patch Changes
c22f6ee: bump tsdown- Updated dependencies [
c22f6ee]- @fumadocs/[email protected]
- [email protected]
14.2.6
Patch Changes
339dedf: Add heading IDs into processed markdown by default
14.2.5
Patch Changes
14.2.4
Patch Changes
689d31e: Improve error messageb16a32f: Switch to tsdown for bundling- Updated dependencies [
590d36a] - Updated dependencies [
98d38ff] - Updated dependencies [
446631d] - Updated dependencies [
b16a32f]- [email protected]
- @fumadocs/[email protected]
14.2.3
Patch Changes
3a8b9b0: support Vite 8moduleTypeoption
14.2.2
Patch Changes
2de6151: add@types/reactto peer dep
14.2.1
Patch Changes
3a5b077: hotfix Vite bundling
14.2.0
Minor Changes
8ce2c70: Add VS Code-style #region / #endregion support to for code files
14.1.1
Patch Changes
adaf9ae: hotfix Windows path escape
14.1.0
Minor Changes
fc0e3db: Support Workspaces API [Experimental]
Patch Changes
14.0.4
Patch Changes
f59339b: Fixlast-modifiedplugin date checking
14.0.3
Patch Changes
f362ea1: Fix Webpack warnings (they require absolute paths for dependencies)- Updated dependencies [
fe380da] - Updated dependencies [
ade44d0]
14.0.2
Patch Changes
59743c0: UseremarkStructure().exportAsoption to exportstructuredData59743c0: only provide CJS fallback for Next.js- Updated dependencies [
c3b8474]
14.0.1
Patch Changes
52dabc3: Support type-safe collection generation
14.0.0
Major Changes
-
7b450d6: ChangepostInstall()signature topostInstall({ configPath, outDir, ... })This allows more options for
postInstallcommand. -
a312d3a: ReplacegetDefaultMDXOptions()withapplyMdxPreset()This allows Fumadocs MDX to support more presets in the future, and adjust presets for dynamic mode.
// source.config.ts import { defineCollections, applyMdxPreset } from "fumadocs-mdx/config"; import { myPlugin } from "./remark-plugin"; export const blog = defineCollections({ type: "doc", mdxOptions: applyMdxPreset({ remarkPlugins: [myPlugin], // You can also pass a function to control the order of remark plugins. remarkPlugins: (v) => [myPlugin, ...v], }), }); -
bc93578: ReplacelastModifiedTimeoption withlastModifiedplugin.If you've
lastModifiedTimeoption enabled before, migrate to the plugin instead.// source.config.ts import { defineConfig } from "fumadocs-mdx/config"; import lastModified from "fumadocs-mdx/plugins/last-modified"; export default defineConfig({ plugins: [lastModified()], }); -
2f7e4d8: Drop support for multipledirin same collectionConsider using
filesinstead for filtering files.// source.config.ts import { defineDocs } from "fumadocs-mdx/config"; export const docs = defineDocs({ dir: "content/guides", docs: { files: ["./i-love-fumadocs/**/*.{md,mdx}"], }, }); -
a312d3a: No longer generateextractedReferencesby defaultYou can enable it from
postprocessoption.// source.config.ts import { defineDocs } from "fumadocs-mdx/config"; export const docs = defineDocs({ docs: { postprocess: { extractLinkReferences: true, }, }, }); -
b963021: [Vite] renamegenerateIndexFileoption toindex
Patch Changes
97722c6: Fix meta file validation on Bun.b963021: [Internal] Makeindex-filea plugin and optimize re-generations.- Updated dependencies [
c5c00e9]
13.0.8
Patch Changes
58bf979: [Bun Loader] Support dynamic require of meta files- Updated dependencies [
ff68f69] - Updated dependencies [
00058c8]
13.0.7
Patch Changes
13.0.6
Patch Changes
40176ce: SupportdisableMetaFileoption in Bun plugin
13.0.5
Patch Changes
ad38466: add support next.config.mts for mdx
13.0.4
Patch Changes
27fc4ed: [Internal] improve mutability ofLoadedConfigfor pluginsf5bc4aa: Fix Bun missing query strings61b90c8: Always transform meta files in collection, this includes runtime loaders like Node.js and Bun.d1e43f4: Support re-generating index file when using runtime: bun | node- Updated dependencies [
f97cd1e] - Updated dependencies [
f7e15e2]
13.0.3
Patch Changes
cd087d2: fix hot reload94d1ad5: Support generating extra index file for browser (workaround for Cloudflare Vite issues)- Updated dependencies [
b95b0cf]
13.0.2
Patch Changes
ee4ad3d: Always format file paths into POSIX for Vite
13.0.1
Patch Changes
56332df: Support plugins in Webpack loader environment: now plugins can apply changes on MDX options too.91add4f: Pluginjson-schema: support inserting$schemato JSON filescffd4c2: Lazy update index files on Next.js
13.0.0
Major Changes
-
8d0c164: MovecreateMDXSourceandresolveFilesfromfumadocs-mdxtofumadocs-mdx/runtime/next -
3caa5cd: Vite: movesource.generated.tsto.source/index.tsWhy:
- with Fumadocs MDX Plugins, we want to unify the output directory across Vite & Next.js.
source.generated.tslooks ugly compared by.source.
Migrate:
- run dev server/typegen to generate a
.sourcefolder. - import it over the original
source.generated.ts. - note that both docs and
create-fumadocs-appare updated to.sourcefolder.
Minor Changes
-
29ce826: Support JSON Schema plugin (fumadocs-mdx/plugins/json-schema) -
3caa5cd: Support Plugins APIFumadocs MDX is mostly a bundler plugin meant to be used with tools like Vite and Turbopack.
With Fumadocs MDX Plugins, you can extend Fumadocs MDX without worrying the underlying bundler. It is designed for:
- Generate files from config (e.g. types, index files, JSON schemas)
- Modify received config
Patch Changes
81fa875: FixincludeProcessedMarkdowncannot stringify MDX nodes575cfb8: Include unravel plugin intoremark-includeparsing step, this ensures the parsed results are consistent with normal MDX.js processor output.1f1c787: AdduseContentAPI to client loader for avoiding Lint errors9051574: Supportpostprocess.includeMDASToptiona5df956: Supportruntime: bunandruntime: nodein Vite index file generation5210f18: Support Fumadocs 16 inpeerDependencies.- Updated dependencies [
230c6bf] - Updated dependencies [
851897c] - Updated dependencies [
4049ccc] - Updated dependencies [
429c41a] - Updated dependencies [
5210f18] - Updated dependencies [
cbc93e9] - Updated dependencies [
42f09c3] - Updated dependencies [
55afd8a] - Updated dependencies [
5210f18]- [email protected]
- @fumadocs/[email protected]
12.0.3
Patch Changes
a55177c: RemoveOverridetype utility on output collection types- Updated dependencies [
ce2be59] - Updated dependencies [
31b9494]
12.0.2
Patch Changes
a3a14e7: Bump deps- Updated dependencies [
a3a14e7]- @fumadocs/[email protected]
- [email protected]
12.0.1
Patch Changes
af50bc8: Support customising index file output path in Vite5fc9ee4: Supportremark-directivefor Include API4b9871d: MDX Async mode: read file content on load- Updated dependencies [
655bb46] - Updated dependencies [
d1ae3e8] - Updated dependencies [
6548a59] - Updated dependencies [
51268ec] - Updated dependencies [
51268ec]
12.0.0
Major Changes
-
f11f89d: [Next.js] Rename APISOn page data:
_file->info._file.absolutePath->info.fullPath.
-
effe43d: Drop support for Zod 3 schemasZod 3 schemas are still allowed, but you cannot no longer extend on the Zod 4 schemas provided by Fumadocs.
-
2862a10: [Next.js] Removedcontenton page data in favour ofgetText().
Minor Changes
22e0fec: SupportgetText()& Postprocess API2862a10: Unify doc collection entry for both Vite and Next.js integrations
11.10.1
Patch Changes
da095ac: Refactor internal export paths854d4ef: ExportpostInstall()function fromfumadocs-mdx/vite- Updated dependencies [
982aed6]
11.10.0
Minor Changes
ea13374: Support runtime loaders: Node.js, Bun
Patch Changes
11.9.1
Patch Changes
64d0169: hotfix node.js imports at global scope
11.9.0
Minor Changes
d193152: SupportabsolutePathon Vite
Patch Changes
11.8.3
Patch Changes
205d92d: Update dev server initialization for Next.js 15.5.1e4c12a3: Add Vite config for Fumadocs Core & UI automatically- Updated dependencies [
f65778d] - Updated dependencies [
e4c12a3]
11.8.2
Patch Changes
9a3c23b: support auto-generated title based onh1heading9cb829c: Support referencing heading in<include>without sections
11.8.1
Patch Changes
5f2ec6e: Fixremark-mdx-exportsplugin fallback- Updated dependencies [
6d97379] - Updated dependencies [
e776ee5]
11.8.0
Minor Changes
cfe2a5c: Support Async Mode for Vite
Patch Changes
c8f49d8: Include frontmatter intopage.data.contentby default- Updated dependencies [
514052e] - Updated dependencies [
e254c65] - Updated dependencies [
ec75601] - Updated dependencies [
e785f98] - Updated dependencies [
0531bf4] - Updated dependencies [
50eb07f] - Updated dependencies [
67df155] - Updated dependencies [
b109d06]
11.7.5
Patch Changes
c17fa03: Support creating a separate processor when<include />points to different Markdown formatf43f714: Automatic fallback to Zod v3 when app has explicit v3 dependency- Updated dependencies [
569bc26] - Updated dependencies [
817c237]
11.7.4
Patch Changes
a0148f9: Remark Include: Support copying only a section
11.7.3
Patch Changes
11.7.2
Patch Changes
- e75ec55: Support last modified time for Vite
11.7.1
Patch Changes
f8000f4: Generate config based on Next.js versionf45a1b6: Support Tanstack Router/Start viacreateClientLoader- Updated dependencies [
1b0e9d5]
11.7.0
Minor Changes
f8a58c6: Supportpreset: minimalto disable Fumadocs specific defaultse5cfa27: Stabilize Vite plugin support
Patch Changes
- Updated dependencies [
658fa96] - Updated dependencies [
f8a58c6]- [email protected]
- @fumadocs/[email protected]
11.6.11
Patch Changes
73e07a5: bump zod to v4
11.6.10
Patch Changes
d0f8a15: EnableremarkNpmby default, replaceremarkInstallwith it.- Updated dependencies [
d0f8a15] - Updated dependencies [
84918b8] - Updated dependencies [
f8d1709]- [email protected]
- @fumadocs/[email protected]
11.6.9
Patch Changes
11.6.8
Patch Changes
7a45921: AddabsolutePathandpathproperties to pages, markfileas deprecated1b7bc4b: Add@types/reactto optional peer dependency to avoid version conflict in monorepos14e267b: Use custom util to parse frontmatter- Updated dependencies [
7a45921] - Updated dependencies [
1b7bc4b]- [email protected]
- @fumadocs/[email protected]
11.6.7
Patch Changes
a5c283f: SupportoutDiroption oncreateMDX()- Updated dependencies [
b4916d2] - Updated dependencies [
8738b9c] - Updated dependencies [
a66886b]
11.6.6
Patch Changes
cd42e78: Support last modified time on Async Mode- Updated dependencies [
1b999eb] - Updated dependencies [
961b67e] - Updated dependencies [
7d78bc5]
11.6.5
Patch Changes
a6c909b: Removed unused devDependencies and migrated fromfast-globtotinyglobby- Updated dependencies [
a6c909b]- @fumadocs/[email protected]
- [email protected]
11.6.4
Patch Changes
4ae7b4a: Support MDX in codeblock tab value- Updated dependencies [
4ae7b4a]- @fumadocs/[email protected]
- [email protected]
11.6.3
Patch Changes
11.6.2
Patch Changes
16c7566: Improve error handling logic on parsing meta entries7b89faa: Addpage.data.contentto sync mode
11.6.1
Patch Changes
434ccb2: Improve performance
11.6.0
Minor Changes
7fcf612: Require Next.js 15.3.0 or above
Patch Changes
11.5.8
Patch Changes
11.5.7
Patch Changes
5163e92: Support reusing codeblocks in<include>- Updated dependencies [
c5add28] - Updated dependencies [
6493817] - Updated dependencies [
f3cde4f] - Updated dependencies [
7c8a690] - Updated dependencies [
b812457]- [email protected]
- @fumadocs/[email protected]
11.5.6
Patch Changes
927ee8b: Fix hot reload
11.5.5
Patch Changes
e6df8aa: Improve performance
11.5.4
Patch Changes
11.5.3
Patch Changes
65ae933: Fix dependencies
11.5.2
Patch Changes
11.5.1
Patch Changes
3730739: Fix types errors
11.5.0
Minor Changes
233a2d1: Support Standard Schema for collectionschema432c7bd: SupportdefineDocswithout re-exportingdocsandmetacollections
Patch Changes
- Updated dependencies [
69f20cb]- @fumadocs/[email protected]
- [email protected]
11.4.1
Patch Changes
a8e9e1f: Bump deps
11.4.0
Minor Changes
421166a: Improve performance, remove unused imports
Patch Changes
421166a: Fix Fumadocs 14 compatibility issues
11.3.2
Patch Changes
a89d6e0: Support Fumadocs v15d6781cc: Fix incorrect line number with frontmatter on dev mode- Updated dependencies [
5b8cca8] - Updated dependencies [
a763058] - Updated dependencies [
581f4a5]
11.3.1
Patch Changes
69bd4fe: Fix nested references for<include />- Updated dependencies [
bb73a72] - Updated dependencies [
69bd4fe]
11.3.0
Minor Changes
a4eb326: DeprecategenerateManifestoption: use a route handler to export build time information
Patch Changes
7cc9f1f: Support CommonJs usage temporarily
11.2.3
Patch Changes
11.2.2
Patch Changes
11.2.1
Patch Changes
11.2.0
Minor Changes
bd0a140: Support reusing content withincludetag
Patch Changes
11.1.2
Patch Changes
fe36593: Fix global config types
11.1.1
Patch Changes
11.1.0
Minor Changes
28a9c3c: Migrate loaders to ESM only
11.0.0
Major Changes
e094284: Require Fumadocs v14
Patch Changes
10.1.0
Minor Changes
5cef1f1: Movediroption fromdefineDocse1ee822: Support hast nodes intocvariabledf9e0e1: Supportasyncoutput mode
Patch Changes
9a964ca: exposestartfunction from loadere612f2a: Make compatible with Next.js 15be820c4: Bump deps- Updated dependencies [
e45bc67] - Updated dependencies [
d9e908e] - Updated dependencies [
d9e908e] - Updated dependencies [
f949520] - Updated dependencies [
9a0b09f] - Updated dependencies [
9a0b09f] - Updated dependencies [
367f4c3] - Updated dependencies [
e1ee822] - Updated dependencies [
e612f2a] - Updated dependencies [
9a0b09f] - Updated dependencies [
d9e908e] - Updated dependencies [
8ef00dc] - Updated dependencies [
979e301] - Updated dependencies [
d9e908e] - Updated dependencies [
979e301] - Updated dependencies [
15781f0] - Updated dependencies [
be820c4] - Updated dependencies [
d9e908e]
10.0.2
Patch Changes
10.0.1
Patch Changes
7e23388: Fix windows compatibility
10.0.0
Major Changes
-
ed83d01: Support declarative collectionswhy: This allows Fumadocs MDX to be more flexible.
migrate:
You don't need
exportsanymore, properties are merged into one object by default.- page.data.exports.toc + page.data.toc - page.data.exports.default + page.data.bodyA
source.config.tsis now required.import { defineDocs, defineConfig } from "fumadocs-mdx/config"; export const { docs, meta } = defineDocs(); export default defineConfig();The
mdx-components.tsxfile is no longer used, pass MDX components to body instead.Search indexes API is now replaced by Manifest API.
Please refer to the docs for further details.
Patch Changes
0c251e5: Bump deps- Updated dependencies [
7dabbc1] - Updated dependencies [
0c251e5] - Updated dependencies [
3b56170]
9.0.4
Patch Changes
9.0.3
Patch Changes
c0d1faf: Store additional_datato search indexes
9.0.2
Patch Changes
61b91fa: Improve Fumadocs OpenAPI support- Updated dependencies [
36b771b] - Updated dependencies [
61b91fa]
9.0.1
Patch Changes
9.0.0
Major Changes
1f1989e: Support Fumadocs v13
Patch Changes
8.2.34
Patch Changes
c2d956b: Support mirror pages for symlinks of MDX file
8.2.33
Patch Changes
78acd55: Use full mode on docs pages by default on OpenAPI generated pages
8.2.32
Patch Changes
2eb68c8: Force a release of content sources
8.2.31
Patch Changes
8.2.30
Patch Changes
8.2.29
Patch Changes
8.2.28
Patch Changes
- Updated dependencies [
98430e9] - Updated dependencies [
d88dfa6] - Updated dependencies [
ba20694] - Updated dependencies [
57eb762]
8.2.27
Patch Changes
- Updated dependencies [
1b8e12b]
8.2.26
Patch Changes
8.2.25
Patch Changes
8.2.24
Patch Changes
8.2.23
Patch Changes
8.2.22
Patch Changes
8.2.21
Patch Changes
66a100d: Improve error messages- Updated dependencies [
88008b1] - Updated dependencies [
944541a] - Updated dependencies [
07a9312]
8.2.20
Patch Changes
8.2.19
Patch Changes
8ef2b68: Bump deps- Updated dependencies [
8ef2b68] - Updated dependencies [
26f464d] - Updated dependencies [
26f464d]
8.2.18
Patch Changes
8.2.17
Patch Changes
- Updated dependencies [
98258b5]
8.2.16
Patch Changes
- Updated dependencies [
f7c2c5c]
8.2.15
Patch Changes
5653d5d: Support customising heading id in headings5653d5d: Support custom heading slugger- Updated dependencies [
5653d5d] - Updated dependencies [
5653d5d]
8.2.14
Patch Changes
8.2.13
Patch Changes
7b61b2f: Migratefumadocs-uito fully ESM, adding support for ESMtailwind.configfile- Updated dependencies [
7b61b2f]
8.2.12
Patch Changes
8.2.11
Patch Changes
8.2.10
Patch Changes
8.2.9
Patch Changes
- Updated dependencies [
2d8df75] - Updated dependencies [
92cb12f] - Updated dependencies [
f75287d] - Updated dependencies [
2d8df75]
8.2.8
Patch Changes
- Updated dependencies [
bbad52f]
8.2.7
Patch Changes
8.2.6
Patch Changes
8.2.5
Patch Changes
8.2.4
Patch Changes
8.2.3
Patch Changes
8.2.2
Patch Changes
- Updated dependencies [
6f321e5]
8.2.1
Patch Changes
- Updated dependencies [
10e099a]
8.2.0
Minor Changes
01155f5: Support generate search indexes in build time
Patch Changes
8.1.1
Patch Changes
8.1.0
Minor Changes
1c388ca5: SupportdefaultOpenfor folder nodes
Patch Changes
8.0.5
Patch Changes
8.0.4
Patch Changes
8.0.3
Patch Changes
8.0.2
Patch Changes
8.0.1
Patch Changes
6c5a39a: Rename Git repository tofumadocs- Updated dependencies [
6c5a39a] - Updated dependencies [
eb028b4] - Updated dependencies [
054ec60]
8.0.0
Major Changes
-
1a346a1: Enableremark-imageplugin by defaultYou can add image embeds easily. They will be converted to static image imports.
Become:
import img_banner from "../../public/image.png"; <img alt="banner" src={img_banner} /> -
2b11c20: Rename to Fumadocsnext-docs-zeta->fumadocs-corenext-docs-ui->fumadocs-uinext-docs-mdx->fumadocs-mdx@fuma-docs/openapi->fumadocs-openapicreate-next-docs-app->create-fumadocs-app
Patch Changes
- Updated dependencies [
2ea9437] - Updated dependencies [
cdff313] - Updated dependencies [
1a346a1] - Updated dependencies [
2b11c20]
7.1.2
Patch Changes
7.1.1
Patch Changes
7.1.0
Patch Changes
7.0.0
Major Changes
-
9929c5b: Prefer.map.tsinstead of_map.tsUnless you have especially configured, now it uses
.map.tsby default.- import map from "@/_map" + import map from "@/.map" -
9929c5b: Migrate to Source APIfromMaphas been removed. Please usecreateMDXSourceinstead.import { map } from "@/.map"; import { createMDXSource } from "next-docs-mdx"; import { loader } from "next-docs-zeta/source"; export const { getPage, getPages, pageTree } = loader({ baseUrl: "/docs", rootDir: "docs", source: createMDXSource(map), });
Minor Changes
-
8fd769f: Support last modified timestamp for GitEnable this in
next.config.mjs:const withNextDocs = createNextDocs({ mdxOptions: { lastModifiedTime: "git", }, });Access it via
page.data.exports.lastModified.
Patch Changes
- Updated dependencies [
9929c5b] - Updated dependencies [
9929c5b] - Updated dependencies [
49201be] - Updated dependencies [
338ea98] - Updated dependencies [
4c1334e] - Updated dependencies [
9929c5b]
6.1.0
Patch Changes
- Updated dependencies [
f39ae40]
6.0.2
Patch Changes
1845bf5: Fixes import path for next-docs-mdx/loader-mdx
6.0.1
Patch Changes
6.0.0
Major Changes
-
69f8abf: Make file paths relative torootDirwhen resolving filesFor a more simplified usage, the resolved file paths will be relative to
rootDir.You can now generate slugs automatically depending on the root directory you have configured.
const utils = fromMap(map, { rootDir: "ui", schema: { frontmatter: frontmatterSchema, }, });The configuration above will generate
/helloslugs for a file named/content/ui/hello.mdx, while the previous one generates/ui/hello. -
9ef047d: Pre-bundle page urls into raw pages.This means you don't need
getPageUrlanymore for built-in adapters, includingnext-docs-mdxand Contentlayer. It is now replaced by theurlproperty from the pages array provided by your adapter.Due to this change, your old configuration might not continue to work.
import { fromMap } from 'next-docs-mdx/map' fromMap({ - slugs: ... + getSlugs: ... })For Contentlayer, the
getUrloption is now moved tocreateConfig. -
1c187b9: Support intelligent schema typesThe
validateoptions is now renamed toschema.import { defaultSchemas, fromMap } from "next-docs-mdx/map"; const utils = fromMap(map, { rootDir: "docs/ui", baseUrl: "/docs/ui", schema: { frontmatter: defaultSchemas.frontmatter.extend({ preview: z.string().optional(), }), }, });The
frontmatterfield on pages should be automatically inferred to your Zod schema type. -
52b24a6: Remove/docsfrom default root content pathPreviously, the default root content path is
./content/docs. All your documents must be placed under the root directory.Since this update, it is now
./contentby default. To keep the old behaviours, you may manually specifyrootContentPath.const withNextDocs = createNextDocs({ rootContentPath: "./content/docs", });Notice that due to this change, your
baseUrlproperty will be/by defaultconst withNextDocs = createNextDocs({ + baseUrl: "/docs" }) -
2ff7581: Rename configuration optionsThe options of
createNextDocsis now renamed to be more flexible and straightforward.Old New dataExportsmdxOptions.valueToExportpluginOptionsmdxOptions.rehypeNextDocsOptionsrehypePluginsandremarkPluginscan also be a function that accepts and returns plugins.
Minor Changes
-
55a2321: Use@mdx-js/mdxto process MDX/markdown files.You no longer need
@next/loaderand@mdx-js/loaderto be installed on your project,next-docs-mdxwill process files with@mdx-js/mdxdirectly.This change will not break most of the projects
Patch Changes
- Updated dependencies [
9ef047d]
5.0.0
Minor Changes
Patch Changes
4.0.9
Patch Changes
- Updated dependencies [
a883009]
4.0.8
Patch Changes
- Updated dependencies [
e0c5c96]
4.0.7
Patch Changes
4.0.6
Patch Changes
- Updated dependencies [
ff38f6e]
4.0.5
Patch Changes
4.0.4
Patch Changes
4.0.3
Patch Changes
ba51a9f: Support custom slugs function0cc10cb: Support custom build page tree options- Updated dependencies [
0cc10cb]
4.0.2
Patch Changes
347df32: Fix emptybaseUrlunexpected behavioursad7b8a8: Fully support custom root content directory paths73f985a: SupportrootDirAPI