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 higherInstallation
Clone the Repository
git clone https://github.com/freshjuice-dev/juicydocs-11ty-starter.git my-docs
cd my-docsInstall Dependencies
npm installStart Development Server
npm run devYour 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.jsBuild 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
- 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!- Save the file and the development server will automatically reload.
Next Steps
- Settings - Configure your site metadata
- Tailwind CSS - Learn how to customize styles
