Menu
#Getting Started
#Installation
bun add hono synz-docssynz-docs needs Bun 1.4 or later.
#Basic Usage
import { Hono } from 'hono'
import { docs } from 'synz-docs'
const app = new Hono()
app.route('/docs', docs({
dir: './docs',
title: 'Example Docs'
}))
export default app#Folder Structure
docs/
index.md
guides/
api/Routes are generated from your folder structure.
docs/api/overview.mdis served at/docs/api/overview, andindex.mdat/docs.
Files are read when the server starts, so restart it after adding or editing a page.