1<?php
2
3declare(strict_types = 1);
4
5use Sami\Sami;
6use Symfony\Component\Finder\Finder;
7
8$iterator = Finder::create()
9    ->files()
10    ->name('*Namespace.php')
11    ->name("Client.php")
12    ->name("ClientBuilder.php")
13    ->notName("AbstractNamespace.php")
14    ->in(__DIR__.'/../src/');
15
16return new Sami($iterator, [
17    'theme'                => 'asciidoc',
18    'template_dirs'        => [__DIR__.'/docstheme/'],
19    'title'                => 'Elasticsearch-php',
20    'build_dir'            => __DIR__.'/../docs/build',
21    'cache_dir'            => __DIR__.'/cache/',
22]);
23