From Fumadocs
Move a Fumadocs or Fumapress site to Vuesho.
Vuesho ports Fumapress and Fumadocs UI to Vue, with the same plugin model, markup and Tailwind CSS classes. A Vuesho site depends on neither Fumadocs nor React.
Concepts
The config follows Fumapress, with Vue in place of React. vuesho.config.ts runs only on the server.
createPress() becomes createSite(), with .plugins() and .config():
import { createPress } from "fumapress";
export default createPress(content)
.plugins(search(), sitemap())
.config({ site: { name: "My Docs" } });The page rendering that ui.renderPage and props.renderDefault() set up is now a layout in src/theme.ts:
app.config({
ui: {
renderPage(props) {
return props.renderDefault({ layout: "notebook" });
},
},
});The default theme is opt-in with extends: defaultTheme, not always active. Without it, the site has no layouts.
A plugin's slots hook returns slot items as an array of objects. In Vuesho, a plugin's components go in its theme module instead:
// Plugin hook:
slots({ page }) {
if (!page) return;
return [
{ name: "acme:share", region: "actions", component: ShareButton },
];
}Custom pages are Vue components in src/pages/, with definePage() instead of getConfig():
import type { WakuRouteConfig } from "fumapress";
export function getConfig() {
return { data: { title: "About" } } satisfies WakuRouteConfig;
}
export default function About() {
return <h1>About</h1>;
}From MDX to Markdown
Rename a page from .mdx to .md, and turn its JSX into Vue's template syntax:
---
title: Installation
---
import { Rocket } from "lucide-react";
export const version = "24";
{/* The minimum version */}
<Callout title={`Node.js ${version}`}>Install Node.js first.</Callout>
<Card title="Quick Start" href="/quick-start" icon={<Rocket />} />Other Syntax
Directives and GitHub alerts render as callouts with admonitionsPlugin(), so they need no conversion.
JSX conditions and lists become v-if and v-for:
### 1. Install
<show when={props.framework === "astro"}>
Add the adapter.
</show>
<Card {...card} />
<ul>
{items.map((item) => (
<li key={item}>{item}</li>
))}
</ul>- The components of
mdx-components.tsxare.vuefiles insrc/components/content/, and a page uses each by its file name. frameworkis a path param.[step]needsstepsPlugin().- Emphasis that ends on CJK punctuation needs
markdown-it-cjk-friendly.
Collections
Collections have different defaults from fumadocs-mdx:
defineDocs()readscontent/, notcontent/docs/. Pass{ dir: "content/docs" }to keep the old folder.- The compiler options are
markdown, notmdxOptionsorsatteriOptions. draft: truein the frontmatter leaves a page out of the build, but keeps it invuesho dev.
Packages
Vuesho is one framework. Install vuesho in place of fumadocs-mdx, fumadocs-ui, fumadocs-core and @fumadocs/tailwind:
{
"fumadocs-mdx": "...",
"fumadocs-ui": "...",
"fumadocs-core": "...",
"@fumadocs/tailwind": "..."
}It includes collections, Markdown with image sizing, the UI with color presets, search, i18n with language packs, and code highlighting. The source plugin system replaces fumadocs-core/source, with lucideIconsPlugin() and statusBadgesPlugin(). fumadocs-core/highlight is vuesho/highlight, and the link, TOC and breadcrumb components are in vuesho/client and vuesho/ui. fumadocs-docgen becomes npm code blocks, <include>, v-if and ts2jsPlugin(). @fumadocs/mdx-remote becomes dynamic sources.
Integrations
Each integration renames from @fumadocs/* or @fumapress/* to @vuesho/*:
| Fumadocs | Vuesho |
|---|---|
fumadocs-openapi, @fumadocs/openapi-standalone | @vuesho/openapi |
@fumadocs/asyncapi, @fumadocs/graphql | @vuesho/asyncapi, @vuesho/graphql |
@fumadocs/json-schema, @fumari/stf | @vuesho/api-docs/json-schema, @vuesho/stf |
fumadocs-typescript, fumadocs-python | @vuesho/typescript, @vuesho/python |
fumadocs-twoslash, @fumadocs/story | @vuesho/twoslash, @vuesho/story |
@fumadocs/notion, @fumadocs/sanity, fumadocs-obsidian | @vuesho/notion, @vuesho/sanity, @vuesho/obsidian |
@fumadocs/basehub | BaseHub source |
@fumadocs/local-content, @fumadocs/local-html | @vuesho/local-content, @vuesho/local-html |
@fumapress/blog, @fumadocs/changelog, @fumapress/tegami | @vuesho/blog, @vuesho/changelog |
@fumadocs/ai-chat, @fumapress/ai, fumadocs-core/mcp | @vuesho/ai |
@fumapress/feedback, fumadocs-epub, @fumapress/mintlify | @vuesho/feedback, @vuesho/epub, @vuesho/mintlify |
create-fumadocs-app, create-fumapress, fumadocs-preview | create-vuesho, vuesho dev |
Fumadocs CLI
fumadocs init becomes npm create vuesho inside an existing project. fumadocs add and fumadocs customize become vuesho add, with the shadcn color preset. A fumadocs feature is now the feature's plugin in vuesho.config.ts, or a create-vuesho flag. fumadocs tree becomes <auto-files> with filesPlugin().
Fumapress Plugins
A @fumapress/core plugin that runs only on the server keeps most of its code, since the startup, content, route, page and build hooks have the same names. These parts differ:
- The loader: use the loader hooks
transformStorageandtransformPageTree, instead of loader plugins fromconfigureLoader. layoutProps: receives the language, not the page.- The UI hooks
getPageView,slotsandproviderProps: a view returns props instead of React elements, and the plugin's components go in its theme module. getPageBodyreturns a module,{ html }or a view, instead of a React node.createViewcallsview({ params, lang, request }), instead ofview(params, { lang }).- The
buildhook has nofetchin its output: read the built files fromfiles. staticPathsisstaticParams, as in content. Each entry is an object of values by param name, like{ slug: "a" }, not a list of params in order.
A Vuesho plugin can also add data routes, Markdown syntax and Nitro options.
Not Ported
@fumadocs/astroand@fumapress/astro: Vuesho is the framework, so it needs no adapter.@fumadocs/shadcn: not ported yet.- Editor Studio: it edits MDX, and can't read Vue's template syntax.
- The Google Drive source: Fumadocs never published it.
- Trieve search: the service shut down in November 2025.
- A language after the first URL segment: the language is always the first segment, while a base path prefixes the whole site.