Manual Installation
Add Fumapress to a project yourself.
This guide creates by hand the files that npm create fumapress generates.
Astro needs Node.js 22.23.4 or later.
Setup
Install Dependencies
npm i @fumapress/astro
npm i @fumadocs/astro astro
npm i @astrojs/react react react-dom takumi-js fumadocs-core
npm i fumadocs-ui@npm:@fumadocs/base-ui
npm i tailwindcss @tailwindcss/vite -D
npm i typescript @types/mdx @types/react @types/react-dom -DFumapress uses the Base UI build of Fumadocs UI, installed as fumadocs-ui.
Create the Config Files
// @ts-check
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import press from "@fumapress/astro";
export default defineConfig({
// the URL of your deployed site, for the sitemap and other full URLs
// site: "https://example.com",
integrations: [
press({
collections: { docs: { dir: "content" } },
lastModified: true,
includeProcessedMarkdown: true,
}),
],
vite: {
plugins: [tailwindcss()],
},
});The Fumadocs CLI uses the paths alias in the files it copies.
Update package.json
{
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"types:check": "astro sync && tsc --noEmit"
}
}Write Your First Page
---
title: My Page
description: Hello World
---
## Overview
This is my first document.Start the Site
npm run devYour docs start at /. To keep / for a landing page, give your content a URL prefix.
Last updated on