- Create a
chiller.json
config file - Install chiller
yarn add chiller
- Install the chiller app
chiller install
- Sync your documentation files
chiller sync
- Start the chiller app
chiller dev
Here's a short example config chiller.json file you can use to start a chiller docs app. Learn about all the config options in the docs
{
"name": "Chiller",
"favicon": "favicon.ico",
"domain": "https://chiller-docs.vercel.app",
"description": "A cutting edge documentation site generator",
"index": "/intro",
"logo": "logo.png",
"pages": "./*.mdx",
"sidebar": {
"links": [
{
"url": "/intro",
"icon": "book",
"label": "Documentation"
}
]
}
}
The repo has two projects: cli
and app
. The cli
is the node cli used to execute commands like chiller install -f
or chiller build
. The app is the fork of tailwindcss.com's front end next.js app.
The app
project is a template. It's a nextjs app that requires additional config and resource files before it can run. To run locally, we'll copy chiller's own documenation config and resource files into the app
directory and then run it.
Follow these steps
cd
into thecli
directory and runyarn install-local
so you can use thechiller
cli commandcd
back to the project root and runchiller sync --dest ./app
. This will copy thechiller.json
config, the.mdx
documentation files and the.png
images from the./docs
directory into theapp
directory.cd
into theapp
directory and runyarn dev