|
1 | 1 | --- |
2 | 2 | title: Introducing Explainer v2 |
3 | | -description: A new documentation boilerplate with multi-project support, versioning, and i18n. |
| 3 | +description: Explainer v2 is a monorepo documentation boilerplate built with Astro, React, and Tailwind CSS 4 — giving you docs, blog, and website apps ready to go with multi-project support, versioning, i18n, and more. |
4 | 4 | date: 2026-03-10 |
5 | | -tags: [announcement, release] |
| 5 | +tags: [announcement, release, documentation, open-source] |
6 | 6 | author: leadcode_dev |
7 | 7 | --- |
8 | 8 |
|
9 | 9 | # Introducing Explainer v2 |
10 | 10 |
|
11 | | -We're excited to announce **Explainer v2**, a complete rewrite of our documentation boilerplate. |
| 11 | +We're excited to announce **Explainer v2** — a complete rewrite of our documentation boilerplate, now built as a **monorepo** powered by [Astro](https://astro.build), React, Tailwind CSS 4, and pnpm. It ships three independent apps — **docs**, **blog**, and **website** — that share common packages for MDX rendering, UI components, and configuration. |
12 | 12 |
|
13 | | -## What's New |
| 13 | +Whether you're documenting a single library or an entire ecosystem of projects, Explainer v2 gives you everything you need out of the box. |
14 | 14 |
|
15 | | -<Callout variant="info" title="Key Features"> |
16 | | - Multi-project docs, versioning, i18n, and independent deployments. |
17 | | -</Callout> |
| 15 | +## Why Explainer? |
18 | 16 |
|
19 | | -### Multi-Project Support |
| 17 | +:::callout{variant="info" title="The problem"} |
| 18 | +Documentation tooling is fragmented. You need one tool for docs, another for your blog, another for your landing page — each with its own configuration, build pipeline, and deployment story. Keeping them consistent is a maintenance burden. |
| 19 | +::: |
20 | 20 |
|
21 | | -You can now host documentation for multiple projects in a single instance, each accessible via a dropdown switcher. |
| 21 | +Explainer solves this by giving you a **single, ready-to-use monorepo** where docs, blog, and website live side by side. Shared packages ensure consistent styling and MDX components across all three apps, while each app remains independently deployable. |
22 | 22 |
|
23 | | -### Versioning |
| 23 | +## Key Features |
24 | 24 |
|
25 | | -Each project can have multiple versions. Use the `default` version for unversioned docs, or add named versions like `v1`, `v2`. |
| 25 | +Explainer v2 comes packed with features designed for real-world documentation needs: |
26 | 26 |
|
27 | | -### Internationalization |
| 27 | +::::card-group{cols=2} |
| 28 | +:::card{label="Multi-Project Docs" icon="lucide:layers" href="/en/explainer/features/multi-project"} |
| 29 | +Host documentation for multiple projects in a single instance. Each project gets its own sidebar, versioning, and navigation — accessible via a dropdown switcher. |
| 30 | +::: |
28 | 31 |
|
29 | | -Full i18n support with URL prefix routing (`/fr/...`, `/en/...`) and automatic browser language detection. |
| 32 | +:::card{label="Versioning" icon="lucide:git-branch" href="/en/explainer/features/versioning"} |
| 33 | +Ship docs for multiple versions of your project. Use `default` for unversioned docs, or add named versions like `v1`, `v2` — readers switch between them seamlessly. |
| 34 | +::: |
| 35 | + |
| 36 | +:::card{label="Internationalization" icon="lucide:globe" href="/en/explainer/features/internationalization"} |
| 37 | +Full i18n support with URL prefix routing (`/fr/...`, `/en/...`), automatic browser language detection, and per-locale navigation. |
| 38 | +::: |
| 39 | + |
| 40 | +:::card{label="Full-Text Search" icon="lucide:search" href="/en/explainer/features/search"} |
| 41 | +Built-in search powered by Pagefind. Your docs are indexed at build time — no external service required, fully static and blazing fast. |
| 42 | +::: |
| 43 | + |
| 44 | +:::card{label="OG Thumbnails" icon="lucide:image" href="/en/explainer/features/thumbnails"} |
| 45 | +Automatically generate Open Graph images for every documentation page, giving your content rich previews when shared on social media. |
| 46 | +::: |
| 47 | +:::: |
| 48 | + |
| 49 | +## Rich MDX Components |
| 50 | + |
| 51 | +Explainer v2 ships with a library of custom MDX components that are **auto-imported** into every content file — no import statements needed. Here's a taste: |
| 52 | + |
| 53 | +:::callout{variant="success"} |
| 54 | +This callout was written with a single directive — no imports, no boilerplate. Explainer's MDX pipeline handles everything for you. |
| 55 | +::: |
| 56 | + |
| 57 | +::::card-group{cols=3} |
| 58 | +:::card{label="Callouts" icon="lucide:message-circle" href="/en/explainer/mdx-components/callout"} |
| 59 | +Info, success, warning, danger, and note variants for highlighting important content. |
| 60 | +::: |
| 61 | + |
| 62 | +:::card{label="Cards & Card Groups" icon="lucide:layout-grid" href="/en/explainer/mdx-components/card"} |
| 63 | +Visual cards with icons and links, arranged in responsive grid layouts. |
| 64 | +::: |
| 65 | + |
| 66 | +:::card{label="Code Blocks" icon="lucide:code" href="/en/explainer/code-blocks/syntax-highlighting"} |
| 67 | +Syntax highlighting, line numbers, line highlighting, code groups with tabs, and more. |
| 68 | +::: |
| 69 | +:::: |
| 70 | + |
| 71 | +You also get **Tabs**, **Steps**, **Code Groups**, and **Preview** components — all documented in the [components reference](/en/explainer/mdx-components/callout). |
| 72 | + |
| 73 | +## Three Apps, One Monorepo |
| 74 | + |
| 75 | +| App | Purpose | Port | Package | |
| 76 | +|-----|---------|------|---------| |
| 77 | +| **Docs** | Technical documentation with sidebar navigation, versioning, and search | `4321` | `@explainer/docs` | |
| 78 | +| **Blog** | Content-driven blog with tags, authors, and RSS | `4322` | `@explainer/blog` | |
| 79 | +| **Website** | Marketing landing page | `4323` | `@explainer/website` | |
| 80 | + |
| 81 | +All three apps share common packages for MDX processing, UI components, and Tailwind configuration. Learn more about the [project structure](/en/explainer/project-structure). |
30 | 82 |
|
31 | 83 | ## Getting Started |
32 | 84 |
|
| 85 | +::::step-group |
| 86 | +:::step{title="Clone the repository"} |
33 | 87 | ```bash |
34 | | -git clone https://github.com/you/explainer-v2 |
| 88 | +git clone https://github.com/explainer/explainer-v2 |
35 | 89 | cd explainer-v2 |
| 90 | +``` |
| 91 | +::: |
| 92 | + |
| 93 | +:::step{title="Install dependencies"} |
| 94 | +Explainer uses pnpm workspaces. Install everything with a single command: |
| 95 | + |
| 96 | +```bash |
36 | 97 | pnpm install |
| 98 | +``` |
| 99 | +::: |
| 100 | + |
| 101 | +:::step{title="Start developing"} |
| 102 | +Launch all three apps in development mode: |
| 103 | + |
| 104 | +```bash |
37 | 105 | pnpm dev |
38 | 106 | ``` |
39 | 107 |
|
| 108 | +Or start a single app: |
| 109 | + |
| 110 | +```bash |
| 111 | +pnpm dev --filter @explainer/docs |
| 112 | +``` |
| 113 | +::: |
| 114 | +:::: |
| 115 | + |
| 116 | +For the full setup guide, including prerequisites and configuration, head to the [Getting Started](/en/explainer/getting-started) page. |
| 117 | + |
| 118 | +## Deploy Anywhere |
| 119 | + |
| 120 | +Explainer v2 apps are standard Astro projects — deploy them wherever you like: |
| 121 | + |
| 122 | +::::card-group{cols=2} |
| 123 | +:::card{label="Docker" icon="lucide:container" href="/en/explainer/deployment/docker"} |
| 124 | +Containerize each app independently with the included Dockerfiles and docker-compose setup. |
| 125 | +::: |
| 126 | + |
| 127 | +:::card{label="Vercel" icon="lucide:triangle" href="/en/explainer/deployment/vercel"} |
| 128 | +Zero-config deployment with automatic builds and preview environments. |
| 129 | +::: |
| 130 | + |
| 131 | +:::card{label="Cloudflare Pages" icon="lucide:cloud" href="/en/explainer/deployment/cloudflare"} |
| 132 | +Deploy to Cloudflare's edge network for global performance. |
| 133 | +::: |
| 134 | + |
| 135 | +:::card{label="GitHub Pages" icon="lucide:github" href="/en/explainer/deployment/github-pages"} |
| 136 | +Free hosting with GitHub Actions for automated builds on every push. |
| 137 | +::: |
| 138 | +:::: |
| 139 | + |
40 | 140 | ## What's Next |
41 | 141 |
|
42 | | -We're working on search integration and dark mode support. Stay tuned! |
| 142 | +Explainer v2 is ready for you to use today. We're actively working on expanding the feature set — but the foundation is solid and production-ready. |
| 143 | + |
| 144 | +:::callout{variant="note" title="Explore the docs"} |
| 145 | +Head over to the [documentation](/en/explainer/getting-started) to get started, or browse the [feature pages](/en/explainer/features/multi-project) to see everything Explainer v2 has to offer. |
| 146 | +::: |
| 147 | + |
| 148 | +If you find Explainer useful, give us a star on GitHub and share it with your team. We'd love to hear what you build with it! |
0 commit comments