v0.5.0
Menu

#Getting Started

#Installation

bun add hono synz-docs

synz-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.md is served at /docs/api/overview, and index.md at /docs.

Files are read when the server starts, so restart it after adding or editing a page.