Major Changes
-
f995ad9: Page Footer is now a client component
This allows the footer component to find items within the current page tree, which fixes the problem where a item from another page tree is appeared.
Also removed the
url
andtree
properties fromDocsPage
since we can pass them via React Context API.export default async function Page({ params }) { return ( <DocsPage - url={page.url} - tree={pageTree} > ... </DocsPage> ); }
The
footer
property inDocsPage
has also updated, now you can specify or replace the default footer component.<DocsPage footer={{ items: {} }}>...</DocsPage>
Minor Changes
-
b30d1cd: Support theme presets
Add theme presets for the Tailwind CSS plugin, the default and ocean presets are available now.
const { docsUi, docsUiPlugins } = require('next-docs-ui/tailwind-plugin'); /** @type {import('tailwindcss').Config} */ module.exports = { plugins: [ ...docsUiPlugins, docsUi({ preset: 'ocean', }), ], };
-
9929c5b: Support multiple page tree roots
You can specify a
root
property inmeta.json
, the nearest root folder will be used as the root of page tree instead.{ "title": "Hello World", "root": true }