Build a GitBook alternative

Build a GitBook alternative with Markdown pages, published revisions, and search. See what public GitBook docs reveal and where a smaller build should stop.

  • vibe-coding

Build a GitBook alternative around a published manual. You write pages, arrange navigation, and release a version readers can search. The GitBook catalog entry names the project Manualhouse.

GitBook’s public documentation describes more than rendered Markdown. Its publishing guide separates docs sites from the spaces that supply their content. A site can contain sections and variants. That is useful product behavior to study before designing your own release boundary.

Build a GitBook alternative with a release boundary

Your small version can keep pages in Git. Each page has a stable id, slug, title, and Markdown body. A build validates links and generates a release directory. Publish switches readers to that directory after validation passes.

A draft changes the next build. It never changes the live directory in place. Search is generated from that same release, so it cannot reveal unpublished pages or return links to a different navigation tree.

This is a proposed architecture for Manualhouse. The public sources below do not establish GitBook’s database, internal queue, or storage layout.

Component Small implementation Work that expands the scope
Authoring Markdown in one repository Visual editor and concurrent edits
Publication One validated release Multiple audiences and variants
Search Index built from public pages Per-reader permissions and AI answers
Recovery Retain previous release Synchronize changes from two editors

What Git Sync adds

GitBook’s Git Sync page describes two-way synchronization with GitHub and GitLab. Writers can edit in GitBook while developers edit Markdown in a repository. It also describes branches, reviews, and merges.

That is a different problem from deploying your repository after a commit. Two editable systems need a rule for changes that arrive at both ends. Inferring from the documented two-way behavior, a replacement would need to handle concurrent updates, deletions, and synchronization failures. The source does not specify GitBook’s conflict-resolution algorithm.

For a personal manual, make Git the sole editing source. Your browser can preview the result. This avoids building a second editor and a synchronization protocol before anyone has read your first page.

Keep search attached to publication

A search index is another copy of your documentation. Build it from the selected public release, including only visible title and body text. Give each result the canonical page URL and an excerpt.

A release check should compare indexed ids with published ids. If the index contains a draft, fail publication. If a page moves, retain a redirect from its previous URL and verify that old links reach the new page.

A static index works for a modest public manual. Private documentation changes the design because downloading the index can disclose every indexed sentence. Server-side permission checks would need to apply to search as well as page routes.

Build the manual before the platform

Ask your agent for this first slice:

Build Manualhouse from Markdown files. Validate unique slugs, internal links,
and navigation before publication. Generate page HTML and a public search index
from the same release. Keep the previous successful release available for rollback.
A failed build must leave the published manual untouched. Exclude drafts from
HTML, feeds, navigation, and search. Do not build two-way Git synchronization.

The catalog’s basic estimate is twelve hours for Markdown pages, navigation, and search. Its middle estimate adds review, redirects, revisions, and release snapshots over three days. The month-plus row covers Git synchronization, adaptive content, SSO, and an AI assistant. These are scope estimates for your build, not measurements of GitBook’s engineering work.

Try a broken link in a draft. Publication should refuse it while the current manual keeps working. Then fix it, publish, and search for a phrase that only exists in the new release. Roll back and check that the phrase disappears from both the page and search.

The Ghost guide covers a publishing workflow for articles. For the boundary between the manual and a platform, read How to scope a SaaS clone. Start your own documentation build from the GitBook prompt.