Skip to Content
πŸŽ‰ Welcome to Killingholmen Documentation!

Getting Started

Welcome to your new documentation site! This guide will help you get up and running with Nextra 4.0.

What is Nextra?

Nextra is a static site generator built on top of Next.js. It allows you to create documentation sites using Markdown and MDX (Markdown with JSX components).

Project Structure

Your Nextra project has the following structure:

β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ layout.tsx          # App layout with theme
β”‚   β”œβ”€β”€ page.mdx            # Homepage
β”‚   β”œβ”€β”€ getting-started/
β”‚   β”‚   └── page.mdx        # This page
β”‚   └── api/
β”‚       └── page.mdx        # API docs
β”œβ”€β”€ mdx-components.tsx      # MDX components configuration
β”œβ”€β”€ next.config.ts          # Nextra configuration
└── package.json

Writing Content

All your documentation content goes in the app directory as .mdx files:

Example MDX

You can include React components in your MDX files:

import { Callout } from 'nextra/components'
 
<Callout type="info" emoji="ℹ️">
  This is an info callout!
</Callout>
ℹ️

This is an info callout built with Nextra 4.0!

Configuration

Edit app/layout.tsx to customize your site’s appearance, navigation, and metadata.

Development

Run the development server:

npm run dev

Your site will be available at http://localhost:3000.