Official documentation for Kodosumi - the runtime environment for managing and executing agentic services at scale.
This site is built with Next.js and Fumadocs.
Run development server:
npm run dev
# or
pnpm dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
In the project, you can see:
lib/source.ts: Code for content source adapter,loader()provides the interface to access your content.app/layout.config.tsx: Shared options for layouts, optional but preferred to keep.
| Route | Description |
|---|---|
app/(home) |
The route group for documentation pages. |
content/docs/guides/ |
Main documentation guides and tutorials. |
content/docs/cli/ |
CLI (koco) reference documentation. |
content/docs/api-reference/ |
API reference documentation. |
app/api/search/route.ts |
The Route Handler for search. |
A source.config.ts config file has been included, you can customise different options like frontmatter schema.
Read the Introduction for further details.
content/docs/- Documentation content in MDX formatguides/- Getting started guides and tutorialscli/- CLI referenceapi-reference/- API documentation
app/- Next.js app router pages and layoutscomponents/- React componentspublic/- Static assets (images, logos, etc.)
This documentation site is fully LLM-enabled with special endpoints for AI consumption:
Access any page as markdown by appending .md to the URL:
- HTML:
https://docs.kodosumi.io/guides/develop - Markdown:
https://docs.kodosumi.io/guides/develop.md
/llms.txt- Complete documentation in plain text format/md-indexor/md-index.md- Index of all available markdown pages- All endpoints are CORS-enabled and bot-friendly
The middleware intercepts requests ending in .md or .markdown and rewrites them to the /mdx/[...slug] route, which:
- Fetches the page content from the Fumadocs source
- Converts MDX/JSX to clean markdown using remark
- Serves it with proper caching headers
Build and run with Docker:
# Build the image
docker build -t kodosumi-docs .
# Run the container
docker run -p 3000:3000 kodosumi-docs
# Or use docker-compose
docker-compose up --buildBuild for production:
npm run build
npm startThe build will:
- Generate MDX files from content
- Generate OpenAPI documentation from external sources
- Create optimized static pages
- Output standalone server for Docker
To learn more about Next.js and Fumadocs, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Fumadocs - learn about Fumadocs