jhancock/yii2-markdown-docs
Composer 安装命令:
composer require jhancock/yii2-markdown-docs
包简介
Yii2 markdown documentation module
关键字:
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist jhancock/yii2-markdown-docs "*"
or add
"jhancock/yii2-markdown-docs": "*"
to the require section of your composer.json file.
Configuration
Enable the module in your confguration:
'modules' => [
'docs' => [
'class' => 'jhancock\markdowndocs\Module',
// Optional, defaults to cebe\markdown\GithubMarkdown
'parserClass' => 'cebe\markdown\GithubMarkdown'
],
],
Add a rule to your url manager component:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
...
[
'pattern' => 'docs<page:.+>',
'route' => 'docs/default/view',
'encodeParams' => false
],
...
],
],
Your documentation would then be accessible under your application's /docs URL.
Usage
This module assumes your documentation lives under the @app/docs alias.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-08-27