Minor Changes
-
6e0d2e1: Support
Layoutfor non-docs pages (without page tree)Same as Docs Layout but doesn't include a sidebar. It can be used outside of the docs, a page tree is not required.
import { Layout } from 'next-docs-ui/layout'; export default function HomeLayout({ children }) { return <Layout>{children}</Layout>; }
nav.itemsprop is deprecatedIt is now replaced by
links. -
2a82e9d: Support linking to accordions
You can now specify an
idfor accordion. The accordion will automatically open when the user is navigating to the page with the specifiedidin hash parameter.<Accordions> <Accordion title="My Title" id="my-title"> My Content </Accordion> </Accordions>