The beautiful docs framework for Next.js. Alternative to Nextra
MIT License
Bot releases are visible (Hide)
Published by fuma-nama 4 months ago
0a377a9: Pass the icon
prop to code blocks as HTML instead of MDX attribute.
why: Only MDX flow elements support attributes with JSX value, like:
<Pre icon={<svg />}>...</Pre>
As Shiki outputs hast elements, we have to convert the output of Shiki to a MDX flow element so that we can pass the icon
property.
Now, rehype-code
passes a HTML string instead of JSX, and render it with dangerouslySetInnerHTML
:
<Pre icon="<svg />">...</Pre>
migrate: Not needed, it should work seamlessly.
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
0a377a9: Support writing code blocks as a <Tab />
element.
import { Tabs } from 'fumadocs-ui/components/tabs';
<Tabs items={["Tab 1", "Tab 2"]}>
```js tab="Tab 1"
console.log('Hello');
```
```js tab="Tab 2"
console.log('Hello');
```
</Tabs>
This is same as wrapping the code block in a <Tab />
component.
0a377a9: Pass the icon
prop to code blocks as HTML instead of MDX attribute.
why: Only MDX flow elements support attributes with JSX value, like:
<Pre icon={<svg />}>...</Pre>
As Shiki outputs hast elements, we have to convert the output of Shiki to a MDX flow element so that we can pass the icon
property.
Now, rehype-code
passes a HTML string instead of JSX, and render it with dangerouslySetInnerHTML
:
<Pre icon="<svg />">...</Pre>
migrate: Not needed, it should work seamlessly.
Published by fuma-nama 4 months ago
RollButton
component problems on Safari
Published by fuma-nama 4 months ago
@fumadocs/remote-mdx
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
source.getLanguages
getGithubLastEdit
Published by fuma-nama 4 months ago
bannerProps
being ignored
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
Published by fuma-nama 4 months ago
ReactNode
in page tree, table of contents and breadcrumb type definitionsPublished by fuma-nama 4 months ago