- Run
composer.phar install
- Add vhost to point to public directory
- Run
./bin/console generate:html /path/to/service.json public
// config/config.php
return array(
'roles' => array(
'role' => array(
'base_url' => 'http://api.example.com',
'consumer_key' => 'consumer_key',
'consumer_secret' => 'consumer_secret',
'token' => 'token',
'token_secret' => 'token_secret',
),
),
'serviceDescriptionPath' => '/path/to/service/description.json',
'defaultRole' => 'role',
);
Service Docs uses Sass, specifically the SCSS (Sassy CSS) syntax. If you wish to write CSS you’ll first need to install Sass.
With Sass installed, run sass --cache-location cache/ --style compressed --watch public/stylesheets/application.scss:public/css/application.css
to have Sass watch the application file and update the CSS whenever it changes.
Icons by Jason Tropp, Stephen Boak, and Eric Miller all from the Noun Project.