bakemd

Docs as simple as a served bunch of md files

Do you really need a ton of js over docs?

This package is built around that question. bakemd simply renders md files into html for you to serve.

Set the theme and all necessary SEO attributes in a config (see configuration), then:

npx bakemd build

The output is a dist folder with html files that any tool can serve.

What's in the dist

  • all your md files as html files
  • 7kb of css
  • 1.1kb of js: theme switching and a copy-to-clipboard script, that's it.

Lighthouse:

Lighthouse scores: Performance 100, Best Practices 100, SEO 100, Agentic Browsing 3/3

Additional features

  • dev mode with HMR: npx bakemd dev
  • mobile-friendly layout
  • set detailed SEO attributes
  • sitemap.xml autogenerated
  • llms.txt autogenerated

Limitations

As you noticed, JS is almost non-existent. That's because React, which is used to render the html pages, is not in the client bundle. If you want a lot of interactivity, this package is not for you.

Where to go next

Example

You are inside the example. The source is here: github.com/romenkova/bakemd/docs