Share an mdBook

mdBook is what the Rust ecosystem writes long-form documentation in, and mdbook build gives you book/ — chapter pages, a sidebar, a theme picker, and full-text search. The search is the part that breaks when you hand somebody the folder: the index loads as a separate request, and a file:// origin refuses it. The box renders, types, and finds nothing.

Build

mdbook build          # → book/

For a draft review, build the branch you are on — nothing needs to be merged or deployed first.

Free · no card

Turn your report into a link

Drop an HTML file or paste it. Teammates open one URL and comment on the exact chart or line.

Your file is read in this tab and nothing is uploaded until you publish. Creating an account is free, and reading a shared link never needs one.

Publish the folder

Drag book/ (or a zip of it) into the app:

  • index.html becomes the report body.
  • Chapter pages, css/, FontAwesome/, highlight.js, and the search index upload as assets, and their references are rewritten to the uploaded copies — including the search request that fails at file://.
  • Scripts run inside a sandboxed iframe (allow-scripts, no allow-same-origin), so search, the theme toggle and keyboard navigation work.

From CI

mdbook build

curl -fsS -X PATCH "https://commareports.com/api/v1/reports/$REPORT_ID" \
  -H "Authorization: Bearer $COMMA_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d "$(jq -n --rawfile html book/index.html \
        --arg title "Book — $GITHUB_REF_NAME" '{title: $title, html: $html}')"

PATCH one report id per book: a stable URL, a revision per build. See the API docs for uploading the rest of the folder as assets.

What review adds

Long-form docs get reviewed as prose, and prose review needs to happen on the rendered page:

  • Anchored threads on the paragraph — an edit attached to the sentence instead of a source line number. See commenting on HTML.
  • Revisions, so an editing pass is visible as a diff between builds.
  • Access per report — private for an unreleased chapter, opened up when it ships. See the sharing model.

Limits

  • Entry HTML: 5 MB. Assets: 25 MB per file, 250 MB and 500 files total. A very long book with per-chapter images can approach the file cap.
  • 60 requests/minute per token.

Try it

Comma is free — unlimited reports, unlimited commenters, unlimited revision history.

Publish a docs preview →

Related

Have an HTML report to share? Publish it free and send one link people can comment on.