Getting Started
A comprehensive guide to getting started with Geistdocs
This guide will walk you through everything you need to know to set up and customize your documentation site.
Prerequisites
Before you begin, make sure you have:
- Node.js 18+ installed on your system
- pnpm (recommended) or your favorite npm package manager
- A GitHub account for repository hosting
- Basic familiarity with MDX, Next.js, and React
Installation
1. Create a New Project
Create a new project using the Geistdocs CLI:
npx @vercel/geistdocs initThis will clone the Geistdocs template app into a new directory. It will prompt you for a project name, then install all dependencies and delete the Geistdocs website content.
2. Configure Environment Variables
Copy the example environment file:
cp .env.example .env.localThen edit the environment variables in the .env.local file. You can learn more about the environment variables in the Environment Variables section.
3. Start Development Server
Run the development server:
pnpm devOpen http://localhost:3000 in your browser to see your documentation site.
4. Create a New Page
Create a new file in content/docs/:
---
title: My First Page
description: This is my first documentation page
---
# My First Page
Welcome to my documentation! This page will be available at `/docs/my-first-page`.
## Features
- Easy to write with Markdown
- Full React component support
- Automatic navigation generation
## Code Example
```typescript
const greeting = (name: string): string => {
return `Hello, ${name}!`;
};
console.log(greeting("World"));
```Learn more about the available syntax in the Syntax section.