File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 77cache /
88coverage /
99docs /_build
10+ _site /
Original file line number Diff line number Diff line change 99# disabled hhvm because of a bug in 3.2.0 which is resolved in 3.3.0
1010# see: https://github.com/facebook/hhvm/issues/3932
1111
12- addons :
13- apt :
14- packages :
15- - git
16-
1712install :
1813 - composer install
1914
Original file line number Diff line number Diff line change 22require_once __DIR__ . '/vendor/autoload.php ' ;
33
44use Sami \Sami ;
5+ use Sami \Version \GitVersionCollection ;
56use Symfony \Component \Finder \Finder ;
67
7- $ iterator = Finder::create ()->files ()->name ('*.php ' )->in (__DIR__ . '/src ' );
8+ $ dir = __DIR__ . '/src ' ;
9+ $ iterator = Finder::create ()
10+ ->files ()
11+ ->name ('*.php ' )
12+ ->in ($ dir );
13+
14+ $ versions = GitVersionCollection::create ($ dir )
15+ ->addFromTags ('v0.* ' )
16+ ->add ('master ' , 'master branch ' )
17+ ;
818
919return new Sami ($ iterator , [
1020'title ' => 'PHP Code Generator API ' ,
1121'theme ' => 'default ' ,
12- 'build_dir ' => __DIR__ . '/api ' ,
22+ 'versions ' => $ versions ,
23+ 'build_dir ' => __DIR__ . '/api/%version% ' ,
24+ 'cache_dir ' => __DIR__ . '/cache/%version% ' ,
1325'default_opened_level ' => 2
14- ]);
26+ ]);
You can’t perform that action at this time.
0 commit comments