always
>}>
On `always` mode, locale is stored as a cookie (set by the middleware), which isn't optimal for static sites.
This may cause undesired cache problems, and need to pay extra attention on SEO to ensure search engines can index your pages correctly.
code
>
),
depth: 2,
url: '#hello-code',
},
];
```
# Fumadocs Core (core library of framework): MDX Plugins
URL: /docs/headless/mdx
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/headless/mdx/index.mdx
Useful remark & rehype plugins for your docs.
***
title: MDX Plugins
index: true
description: Useful remark & rehype plugins for your docs.
----------------------------------------------------------
# Fumadocs Core (core library of framework): Package Install
URL: /docs/headless/mdx/install
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/headless/mdx/install.mdx
Generate code blocks for installing packages
***
title: Package Install
description: Generate code blocks for installing packages
---------------------------------------------------------
...
```
### Meta
It parses the `title` meta string, and adds it to the `pre` element as an attribute.
````mdx
```js title="Title"
console.log('Hello');
```
````
You may filter the meta string before processing it with the `filterMetaString` option.
### Inline Code
`console.log("hello world"){:js}` works.
See [https://shiki.style/packages/rehype#inline-code](https://shiki.style/packages/rehype#inline-code).
### Icon
Adds an icon according to the language of the codeblock.
It outputs HTML, you might need to render it with React `dangerouslySetInnerHTML`.
```jsx
...``` Disable or customise icons with the `icon` option. ### More Options See [Shiki](https://shiki.style). # Fumadocs Core (core library of framework): Remark Admonition URL: /docs/headless/mdx/remark-admonition Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/headless/mdx/remark-admonition.mdx Use Admonition in Fumadocs *** title: Remark Admonition description: Use Admonition in Fumadocs --------------------------------------- In Docusaurus, there's an [Admonition syntax](https://docusaurus.io/docs/markdown-features/admonitions). For people migrating from Docusaurus, you can enable this remark plugin to support the Admonition syntax. ## Usage ```ts title="source.config.ts" tab="Fumadocs MDX" import { remarkAdmonition } from 'fumadocs-core/mdx-plugins'; import { defineConfig } from 'fumadocs-mdx/config'; export default defineConfig({ mdxOptions: { remarkPlugins: [remarkAdmonition], }, }); ``` ```ts tab="MDX Compiler" import { compile } from '@mdx-js/mdx'; import { remarkAdmonition } from 'fumadocs-core/mdx-plugins'; await compile('...', { remarkPlugins: [remarkAdmonition], }); ``` ### Input ```md :::warning Hello World ::: ``` ### Output ```mdx
lang
dynamic segment?>}>
If you're using another name like `app/[locale]`, you also need to update `generateStaticParams()` in docs page:
```tsx
export function generateStaticParams() {
return source.generateParams(); // [!code --]
return source.generateParams('slug', 'locale'); // [!code ++] new param name
}
```
The page you are looking for does not exist.
{props.children}{/* [!code highlight] */}
{props.children}