Setup Your Environment

Setting up CelestialDocs is straightforward. This guide walks you through the initial setup so you can start documenting.
Prerequisites
Before you begin, ensure you have:
- Node.js 18+ installed (download)
- npm, pnpm, or yarn as your package manager
- A code editor like VS Code
Installation
1. Clone or Download the Template
git clone https://github.com/HYP3R00T/CelestialDocs.git my-docs
cd my-docs
2. Install Dependencies
Using pnpm (recommended):
pnpm install
Or using npm:
npm install
3. Start Development Server
pnpm dev
# or: npm run dev
Your documentation site will be available at http://localhost:4321
Project Structure
CelestialDocs/
βββ content/ # Your documentation content
β βββ docs/ # Main documentation collection
β βββ funnydocs/ # Secondary documentation example
β βββ new-docs/ # The new documentation system
βββ src/
β βββ components/ # Reusable UI components
β βββ layouts/ # Page layouts
β βββ lib/ # Utility functions and navigation logic
β βββ pages/ # Astro page routes
β βββ styles/ # Global styles
βββ data/
β βββ config.ts # π Central configuration file
βββ public/ # Static assets
βββ astro.config.mjs # Astro configuration
Key File: data/config.ts
This is your command center. All configuration lives here:
// Content systems (collections)
export const CONTENT: ContentConfig = {
systems: [
{ id: "docs", dir: "content/docs", route: "/docs" },
{ id: "new-docs", dir: "content/new-docs", route: "/new-docs" },
],
};
// Navigation structure
export const SIDEBAR_NAVIGATION: SidebarNavigation = {
docs: {
/* ... */
},
"new-docs": {
/* ... */
},
};
// Site metadata
export const SITE: SiteConfig = {
title: "My Documentation",
website: "https://mydocs.com",
// ...
};
Whatβs Next?
Youβre all set! Next, learn how to:
Or explore the fundamentals in Core Concepts.