Lito Demo
A comprehensive demo of Lito - Beautiful documentation sites from Markdown.
Overview
This repository contains a sample documentation site built with Lito, showcasing its features and capabilities.
Features
- Zero-config documentation generation
- Built on Astro for maximum performance
- MDX support for rich content
- Customizable theming
- Automatic landing page generation
- SEO optimized
Getting Started
Prerequisites
- Node.js 18 or later
- npm or yarn
Local Development
Clone the repository:
Terminal window git clone https://github.com/Lito-docs/docs.gitcd sample-demoInstall dependencies (if any):
Terminal window npm installStart the development server:
Terminal window npx --yes @litodocs/cli dev -i .Open http://localhost:4321 in your browser.
Development with Custom Configuration
You can customize your documentation on-the-fly using CLI options:
# Custom branding and colorsnpx --yes @litodocs/cli dev -i . \ --name "My Custom Docs" \ --description "Custom documentation site" \ --primary-color "#0066CC" \ --accent-color "#00CC66"Available CLI Options:
--name <name>- Set project name--description <description>- Set project description--primary-color <color>- Set primary theme color (hex)--accent-color <color>- Set accent theme color (hex)--favicon <path>- Set favicon path--logo <path>- Set logo path-p, --port <number>- Dev server port (default: 4321)
Building for Production
To create a production build:
npx --yes @litodocs/cli build -i .Optimize for your hosting provider:
# Vercelnpx --yes @litodocs/cli build -i . --provider vercel
# Netlifynpx --yes @litodocs/cli build -i . --provider netlify
# Cloudflare (SSR)npx --yes @litodocs/cli build -i . --provider cloudflare --rendering serverDeployment
Lito simplifies deployment with provider-specific optimizations.
GitHub Pages (Automated)
The project is automatically deployed to GitHub Pages using GitHub Actions when pushing to the main branch.
Vercel, Netlify, & Cloudflare
Use the --provider flag during build to automatically generate the necessary configuration files (vercel.json, netlify.toml) and install required adapters.
npx --yes @litodocs/cli build -i . --provider <provider_name>Manual Deployment
For other platforms, use:
npx --yes @litodocs/cli build -i .Then deploy the dist folder to your hosting provider.
Project Structure
sample-docs/├── docs-config.json # Site configuration├── concepts/ # Core concepts documentation├── getting-started/ # Getting started guides├── guides/ # User guides├── introduction/ # Introduction pages└── reference/ # API referenceContributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally
- Submit a pull request
License
This project is licensed under the MIT License.