# Quickstart

## Install

> **Prerequisite**
> ReallySimpleDocs is an Astro integration. Add it to an existing Astro site, or create one first with `npm create astro@latest`.

  1. **Install packages**

   **npm**

```bash
npm install reallysimpledocs basecoat-css tailwindcss
```

   **pnpm**

```bash
pnpm add reallysimpledocs basecoat-css tailwindcss
```

   **yarn**

```bash
yarn add reallysimpledocs basecoat-css tailwindcss
```

   **bun**

```bash
bun add reallysimpledocs basecoat-css tailwindcss
```
  2. **Add the Astro integration**

```js title="astro.config.mjs"
import { defineConfig } from "astro/config";
import reallySimpleDocs from "reallysimpledocs/astro";

export default defineConfig({
  integrations: [
    reallySimpleDocs({
      site: {
        title: "Acme Docs",
      },
    }),
  ],
});
```
  3. **Create docs**

   **docs/index.md**

```md
# Introduction

Welcome to the docs.
```

   **docs/docs.json**

```json
{
  "menu": [
    {
      "type": "group",
      "label": "Docs",
      "items": [{ "slug": "index", "icon": "info" }]
    }
  ]
}
```
  4. **Run Astro**

```bash
npm run dev
```

## Usage

Start adding Markdown and MDX files to the `docs/` folder:

```text
docs/
├── docs.json    # Sidebar navigation
├── index.md     # First page
└── guide.mdx    # Optional component-rich page
```

Use `docs/docs.json` to manage [navigation](/navigation/). Add Markdown and MDX files as [pages](/pages/).

Use `.mdx` only when a page needs richer [components](/components): `Callout`, `Code`, `Preview`, `Tabs`, `Steps`, `Card`, or `CardGrid`.

ReallySimpleDocs also wires up

- [Basecoat](https://basecoatui.com) and Tailwind CSS for styling,
- syntax highlighting for fenced code blocks with copy buttons,
- full text search using [Lunr](https://lunrjs.com/),
- `llms.txt` and `llms-full.txt` files for agents,
- Markdown export and AI links for each page.

For themes, custom CSS, assets, and component overrides, see [Customization](/customization/).

## Update

Update ReallySimpleDocs and its peer packages together:

**npm**

```bash
npm install reallysimpledocs basecoat-css tailwindcss
```

**pnpm**

```bash
pnpm add reallysimpledocs basecoat-css tailwindcss
```

**yarn**

```bash
yarn add reallysimpledocs basecoat-css tailwindcss
```

**bun**

```bash
bun add reallysimpledocs basecoat-css tailwindcss
```

Then rebuild:

```bash
npm run build
```

Your content stays in `docs/`; updates should mostly affect the package and your Astro config.
