files() ->name('*.php') ->in($dir = './') ; /*$versions = GitVersionCollection::create($dir) ->add('master', 'master branch') ; */ $s = new Sami($iterator, array( 'theme' => 'markdown', 'template_dirs' => array( __DIR__ . '/'), //'versions' => $versions, 'title' => 'Sami Markdown Extension', 'build_dir' => __DIR__.'/build/%version%', 'cache_dir' => __DIR__.'/cache/%version%', )); // Add extension $s["twig"]->addExtension(new Markdown\SamiTwigExtension()); return $s; ?>