Menu

Installation

Get up and running with Docsta in just a few steps. Whether you're starting a new project or integrating it into an existing Next.js app, Docsta makes setup painless.

Using create-docsta

The easiest way to get started is by running the following command in your terminal:

npx create-docsta

This will scaffold a new Docsta project with all the necessary files, folders, and dependencies pre-configured.

Manual Setup

Prefer to integrate Docsta into an existing Next.js project? Follow these steps:

1. Install the SDK:

npm install @docsta/nextjs

2. Set Up Sanity CMS (Optional but Recommended):

If you're using Sanity as your content backend, initialize it by running:

npx sanity init

Follow the prompts to configure your dataset and project.

3. Configure Your Routes:

Make sure to add the required dynamic routes in your Next.js pages or app directory (depending on your router setup).

4. Add Your Schema Files:

If you're using Sanity, define your schema (e.g., doc.js) to model the structure of your documentation pages.

Once you’re set up, you’re ready to start customizing and creating content with ease.

👉 Next Up: Learn how to structure your docs and write your first page.

What did you think of this content?

like-icon

It was helpful

dislike-icon

It was not helpful

feedback-icon

I have a feedback