Getting Started

Step-by-step guide to setting up your JuicyDocs site

This guide walks you through setting up JuicyDocs from scratch.

Prerequisites

Before you begin, make sure you have:

  • Node.js version 20 or higher (we recommend using the latest LTS version)
  • npm or another package manager like pnpm or yarn
  • Git for version control

Check your Node.js version:

node --version
# Should output v20.x.x or higher

Installation

Clone the Repository

git clone https://github.com/freshjuice-dev/juicydocs-11ty-starter.git my-docs
cd my-docs

Install Dependencies

npm install

Start Development Server

npm run dev

Your documentation site will be available at http://localhost:8080.

Project Structure

juicydocs/
├── config/              # Eleventy configuration modules
│   ├── collections.js   # Custom collections
│   ├── dataExtensions.js # YAML support
│   ├── filters.js       # Template filters
│   ├── plugins.js       # Eleventy plugins
│   ├── shortcodes.js    # Custom shortcodes
│   └── transforms.js    # Output transforms
├── src/
│   ├── _data/           # Global data files
│   │   ├── metadata.yaml # Site metadata
│   │   └── navigation.yaml # Navigation links
│   ├── _includes/       # Templates and partials
│   │   ├── layouts/     # Page layouts
│   │   └── partials/    # Reusable components
│   ├── assets/          # Static assets
│   │   ├── css/         # Stylesheets
│   │   ├── fonts/       # Web fonts
│   │   ├── images/      # Images
│   │   └── js/          # JavaScript
│   └── content/         # Your documentation content
│       ├── docs/        # Documentation pages
│       └── changelog/   # Changelog entries
├── eleventy.config.js   # Main Eleventy config
├── package.json
└── tailwind.config.js

Build Commands

Command Description
npm run dev Start development server with hot reload
npm run build Build for production
npm run clean Remove build artifacts

Creating Your First Page

  1. Create a new file in src/content/docs/:
---
eleventyNavigation:
    key: My First Page
    parent: Usage
    order: 100
title: My First Page
description: My first documentation page
---

# Hello World

This is my first documentation page!
  1. Save the file and the development server will automatically reload.

Next Steps