Skip to Content
Vuesho

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:

press.config.tsx
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():

src/pages/about.tsx
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>

Collections

Collections have different defaults from fumadocs-mdx:

  • defineDocs() reads content/, not content/docs/. Pass { dir: "content/docs" } to keep the old folder.
  • The compiler options are markdown, not mdxOptions or satteriOptions.
  • draft: true in the frontmatter leaves a page out of the build, but keeps it in vuesho 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/*:

FumadocsVuesho
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/basehubBaseHub 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-previewcreate-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 transformStorage and transformPageTree, instead of loader plugins from configureLoader.
  • layoutProps: receives the language, not the page.
  • The UI hooks getPageView, slots and providerProps: a view returns props instead of React elements, and the plugin's components go in its theme module.
  • getPageBody returns a module, { html } or a view, instead of a React node.
  • createView calls view({ params, lang, request }), instead of view(params, { lang }).
  • The build hook has no fetch in its output: read the built files from files.
  • staticPaths is staticParams, 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/astro and @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.