gendoria/sami-one-page-theme

Sami theme for one page documentation.

Installs: 5 479

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:HTML

Type:sami-theme

1.0.1 2017-06-05 16:02 UTC

This package is auto-updated.

Last update: 2024-11-27 05:29:20 UTC


README

Sami template for one page documentation.

Library created in cooperation with Hypermedia Poland, part of Dentsu Aegis Network.

Usage

use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->exclude('Resources')
    ->exclude('Tests')
    ->in($dir = '/path/to/symfony/src')
;

$versions = GitVersionCollection::create($dir)
    ->addFromTags('v2.0.*')
    ->add('2.0', '2.0 branch')
    ->add('master', 'master branch')
;

return new Sami($iterator, array(
    'theme'                => 'gendoria-one-page',
    'versions'             => $versions,
    'title'                => 'Symfony2 API',
    'build_dir'            => __DIR__.'/../build/sf2/%version%',
    'cache_dir'            => __DIR__.'/../cache/sf2/%version%',
    // use a custom theme directory (this works if you install your dependencies in vendor/ folder)
    'template_dirs'        => array(__DIR__.'/vendor/gendoria/sami-one-page-theme'),
    'default_opened_level' => 2,
));

Requirements

  • PHP >= 7.0
  • Sami >= 4.0.0

Installation

Via Composer:

$ composer require "gendoria/sami-one-page-theme=~1.0"

License

This library is available under the GNU LESSER GENERAL PUBLIC LICENSE 3.0.