Ir al contenido

Choosing a Documentation Framework

Esta página aún no está disponible en tu idioma.

The documentation framework you choose determines your developer experience, site performance, and long-term maintainability. This section compares the most popular options and explains why we settled on Astro + Starlight.

Q: What are the main categories of documentation frameworks?

Section titled “Q: What are the main categories of documentation frameworks?”

A: Documentation tools fall into four broad categories:

Category Examples Pros Cons
Static Site Generators (SSG) Astro, Next.js, Hugo, Jekyll Full control, fast, free hosting Requires developer skills
Doc-Specific Frameworks Starlight, Docusaurus, VitePress, MkDocs Built-in doc features (sidebar, search, i18n) Less flexible for non-doc pages
Hosted Platforms GitBook, ReadMe, Notion Sites Zero setup, WYSIWYG editing Vendor lock-in, limited customization, paid
Wiki Systems MediaWiki, BookStack Collaborative editing Dated UI, poor SEO, heavy

A: Both are excellent choices. Here’s a direct comparison:

Feature Starlight (Astro) Docusaurus VitePress
Framework Astro (framework-agnostic) React Vue
Bundle Size Minimal (ships zero JS by default) Larger (React runtime) Small (Vue runtime)
i18n Built-in locale routing Plugin-based Manual
Search Pagefind (built-in, local) Algolia DocSearch (external) VitePress search or MiniSearch
Content Format Markdown + MDX MDX only Markdown + Vue
Performance Excellent (static-first) Good Excellent
Ecosystem Growing Mature Growing

Our reasoning for choosing Starlight:

  1. Zero JavaScript by default: Starlight ships pure HTML/CSS, only loading JS for interactive components. This means faster page loads and better SEO.
  2. Framework agnostic: If you ever need interactive components, you can use React, Vue, Svelte, or any framework — no lock-in.
  3. Built-in i18n: Locale routing and language switching work out of the box.
  4. Content Collections: Astro’s typed content system catches schema errors at build time.
  5. Pagefind: Local, build-time search with no external service dependency.

Q: When should I choose a hosted platform instead?

Section titled “Q: When should I choose a hosted platform instead?”

A: Hosted platforms (GitBook, ReadMe) make sense when:

  • Your team has no web development skills
  • You need collaborative editing by non-technical writers
  • You’re willing to pay monthly for convenience
  • You don’t need deep customization or custom build pipelines

For most technical teams, a self-hosted SSG approach gives you more control at lower cost.

Q: Can I migrate later if I choose the wrong framework?

Section titled “Q: Can I migrate later if I choose the wrong framework?”

A: Yes, but the cost varies:

  • Markdown-based frameworks (Starlight, VitePress, MkDocs): Migration is relatively easy since content is standard Markdown with frontmatter.
  • MDX-heavy frameworks (Docusaurus): Requires converting JSX components back to standard Markdown.
  • Hosted platforms: Export options vary; some lock your content in proprietary formats.

The safest bet is to keep your content in standard Markdown with clear frontmatter — then you can switch frameworks with minimal effort.

For a small team building technical documentation that needs to be:

  • Fast and SEO-friendly
  • Multilingual
  • Version-controlled
  • Freely hosted

Astro + Starlight is an excellent choice. In the next section, we’ll set it up from scratch.


Building a commercial IoT product?

We provide ESP32 ODM design-to-manufacturing services. From prototype to production — the team behind this tutorial can build it with you.

💡 Mention tutorial.imagrove.com in your Alibaba chat with us — get 10% off your custom project quote.

Talk to us →

Publicado por primera vez entutorial.imagrove.com/es/building-doc-sites/02-choosing-a-documentation-framework/Al citar o reproducir, indica la fuente Imagrove y enlaza a esta página.

¿Dudas o problemas con este tutorial?

Inicia sesión con GitHub para comentar. Si un paso te falla, avísanos: lo verificamos y actualizamos el tutorial.