macfly / yii2-markdown-doc
Yii2 module to write documentation with MarkDown files
Installs: 709
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Type:yii2-module
Requires
- kartik-v/yii2-markdown: *
- yiisoft/yii2: ~2.0.5
This package is auto-updated.
Last update: 2020-02-06 14:24:25 UTC
README
Yii2 module to display the content of all markdown file in a directory and its sub-folder.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist "macfly/yii2-markdown-doc" "^1.0.0"
or add
"macfly/yii2-markdown-doc": "^1.0.0"
to the require section of your composer.json
file.
Configure
Configure config/web.php as follows
'modules' => [ ................ 'doc' => [ 'class' => 'macfly\yii2\doc\Module', // Directory to list 'rootDocDir' => '@app/docs', // set false if you don't want to cache generated html, usefull for debugging //'cache' => true, ] ................ ],
Usage
To access the doc, go to http://yoursite.com/doc/