Spress is a static site generator building on Silex and Twig and inspired by Jekyll. See demo.
License: MIT
- Linux, Unix or Mac OS X.
- PHP >= 5.4.
- Composer.
- Download the last release or clone repository
git clone https://github.com/yosymfony/Spress.git
. - Get vendors
- Create a blank site.
- Build your site.
Use Composer to get vendors:
$ cd your-path
$ composer.phar update
Spress command are located in bin/spress
and you can use this command to create a new site or process your
site.
Create a new site.
site:new [path[="./"]] [template[="blank"]] [--force] [--all]
--force
option force to use the path even though exists and it's not empty.
--all
In blank template, creates the complete scaffold.
E.g $ spress site:new /your-site-dir
Build your site in your configured destination, typically _site
.
site:build [-s|--source[="./"]] [--timezone[="..."]] [--drafts] [--safe]
E.g $ spress site:build -s /your-site-dir
You can run the unit tests with the following command:
$ cd your-path
$ composer.phar install --dev
$ phpunit