| title | Getting started |
|---|---|
| description | Learn how to start building your documentation website with Statidocs, powered by Cecil. |
Statidocs is a powerful documentation starter, built by static site generator Cecil.
:::important PHP 8.3+ is required. :::
The easiest way to create a new Statidocs project is using Composer:
composer create-project cecil/statidocs --ask:::info
This command also download cecil.phar binary.
:::
When working locally, Cecil’s built-in server lets you preview your work and automatically refreshes your browser when you make changes.
Inside your project directory, run the following command to start the local server:
php cecil.phar serveThis will log a message to your terminal with the URL of your local preview. Open this URL (http://localhost:8000 by default) to start browsing your documentation.
Statidocs supports authoring content in Markdown with no configuration required. You can extend default capabilities by enabling Cecil's Markdown options.
Add new pages to your site by creating .md files in pages/docs/. Use one level sub-folders to organize your files and number prefix to sort them.
For example, the following file structure will generate pages at domain.tld/docs/getting-started and domain.tld/docs/guides/i18n:
<mywebsite>
└─ pages
└─ docs
├─ guides
| └─ 2-i18n.md
└─ 1-Getting Started.md
All pages use front matter variables to control how the page appears:
---
title: Hello world
description: This is a page description.
---To know more, checks the Cecil front matter documentation.
:::tip Statidocs is still in development, there will be frequent updates and improvements. Be sure to update Statidocs regularly :::
Statidocs is built on top of the Cecil theme docs. You can update it and other Cecil themes by running the following command in your terminal:
composer update