avtomon/sami-github
Composer 安装命令:
composer require avtomon/sami-github
包简介
A Sami theme for GitHub Markdown formatted documentation. (this is a fork of phine/sami-github)
README 文档
README
This is a fork of phine/sami-github, with a few fixes as the original project is abandoned.
A Sami theme for GitHub Markdown formatted documentation.
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' => 'github', 'versions' => $versions, 'title' => 'Symfony2 API', 'build_dir' => __DIR__.'/../build/sf2/%version%', 'cache_dir' => __DIR__.'/../cache/sf2/%version%', // use a custom theme directory 'template_dirs' => array(__DIR__.'/themes/sami-github'), 'default_opened_level' => 2, ));
Requirement
- PHP >= 5.3.3
- Sami >= 1.1.0
Installation
Via Composer:
$ composer require "avtomon/sami-github=~1.0"
License
This library is available under the MIT license.
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-05