Skip to content

Commit 73cfd7f

Browse files
author
abrulic
committed
updated documentation
1 parent 1bbfa91 commit 73cfd7f

2 files changed

Lines changed: 33 additions & 14 deletions

File tree

content/01-getting-started.mdx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: "Step-by-step guide to setting up and running the documentation tem
66

77
## Prerequisites
88

9-
- **Node.js** 18+ and **pnpm** installed
9+
- **Node.js** >= 22.17.0 and **pnpm** >= 10.18.0 installed
1010
- **Git** for version control
1111
- A repository where you want to add documentation
1212

@@ -45,21 +45,29 @@ your-repo/
4545

4646
### 1. Install Dependencies
4747

48-
From your repository root:
48+
From your repository root (or from inside the `docs/` folder if you unpacked the template there):
4949

5050
```bash
5151
pnpm install
5252
```
5353

5454
### 2. Configure Environment Variables
5555

56-
Copy `.env.example` to `.env`:
56+
Copy `.env.example` to `.env`.
57+
58+
If you extracted the template into a `docs/` subfolder:
5759

5860
```bash
5961
cd docs
6062
cp .env.example .env
6163
```
6264

65+
If the template is at the repository root, run:
66+
67+
```bash
68+
cp .env.example .env
69+
```
70+
6371
Edit `.env` and add your repository details.
6472

6573
These variables enable "Edit this page" and "Report an issue" links.
@@ -89,11 +97,12 @@ pnpm run dev
8997
# Build for production
9098
pnpm run build
9199

92-
# Generate versioned docs (production)
93-
pnpm run generate:docs
100+
# Generate versioned docs (production). Note: the generator requires the default branch to be passed.
101+
# Example: build the snapshot for the `main` branch and produce versioned output.
102+
pnpm run generate:docs --branch main
94103

95-
# Generate versioned docs with specific versions
96-
pnpm run generate:docs --versions "^1.0.0"
104+
# Generate versioned docs for specific semver tags (example)
105+
pnpm run generate:docs --branch main --versions "^1.0.0"
97106

98107
# Rebuild content collections
99108
pnpm run content-collections:build

content/_index.mdx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,23 @@ This is a production-ready documentation template designed to generate beautiful
1919

2020
## Key Features
2121

22-
- 📝 **MDX/MD Support** - Write documentation in Markdown with React components
23-
- 🎨 **Beautiful UI** - Pre-built components including Command K, code blocks, and sidebar navigation
24-
- 📚 **Versioning** - Generate docs for multiple versions/releases
25-
- 🔍 **SEO Ready** - Automatic sitemaps, robots.txt, and llms.txt generation
26-
-**Live Reload** - Hot module replacement during development
27-
- 🚀 **Auto Deploy** - GitHub Actions + Fly.io integration
28-
- 🔗 **GitHub Links** - Edit page and report issue links built-in
22+
- 📝 **MDX/MD Support** — Write documentation in Markdown with React components and custom MDX components.
23+
- 🎨 **Beautiful UI** — Pre-built components (Command K, code blocks, table-of-contents, sidebar) so docs look polished out of the box.
24+
- 📚 **Versioning** — Produce versioned documentation (e.g. `v1.0.0/`) via the generator so you can publish releases side-by-side.
25+
- 🔁 **Automated Docs Generation**`scripts/generate-docs.ts` automates building `generated-docs/` and writes `app/utils/versions.ts`. Example:
26+
27+
```bash
28+
pnpm run generate:docs --branch main --versions "^1.0.0"
29+
```
30+
31+
- 🧭 **Local Development Experience** — Fast iteration using the auto-generated `.content-collections/` folder for hot reloading; run the generator when you want to preview versioned outputs locally.
32+
- 🔍 **SEO & Indexing** — Automatic sitemap, `robots.txt` and `llms.txt` support to improve search and crawler behavior.
33+
-**Live Reload** — Hot module replacement during development for instant previews when editing content.
34+
- 🚀 **CI/CD Ready** — Example GitHub Actions workflows are included to build, pack, and publish `generated-docs/` artifacts for preview and release deployments.
35+
- 🐳 **Docker + Fly Deployment** — Includes `Dockerfile` and `fly.toml` so you can containerize and deploy the generated site easily.
36+
-**Type-safe & Tested** — Built with TypeScript, includes `tsc` type checks, `vitest` tests, and Biome linting to keep quality high.
37+
-**Accessibility & Performance Focused** — UI primitives and tooling tuned for accessibility and fast page loads.
38+
- 🔗 **GitHub Links** — Edit page and report issue links are built into pages to streamline contribution.
2939

3040
## Quick Start
3141

0 commit comments

Comments
 (0)