Skip to content

Commit

Permalink
Reference
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindavid committed Mar 30, 2017
1 parent 4e5aa93 commit 599ccdb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reference/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sami.phar
build/
cache/
31 changes: 31 additions & 0 deletions reference/sami-config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

/*
* Sami Documentation config
*
*/

use Sami\Sami;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
->files()
->name('*.php')
->notName('sami.phar')
->exclude('resources')
->exclude('tests')
->exclude('build')
->exclude('cache')
->exclude('migrations')
->exclude('vendor')
->exclude('templates')
->in(__DIR__.'/../src');

$options = array(
'title' => 'Social for Craft CMS',
'build_dir' => __DIR__.'/build',
'cache_dir' => __DIR__.'/cache',
'default_opened_level' => 2
);

return new Sami($iterator, $options);

0 comments on commit 599ccdb

Please sign in to comment.