dev-master
9999999-dev https://github.com/jasonhancock/yii2-markdown-docsYii2 markdown documentation module
BSD-3-Clause
The Requires
by Jason Hancock
yii2 module markdown
                         Wallogit.com
                    
                    2017 © Pedro Peláez
                    
                    
                    
                    
                
                
            
Yii2 markdown documentation module
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require --prefer-dist jhancock/yii2-markdown-docs "*"
or add, (*3)
"jhancock/yii2-markdown-docs": "*"
to the require section of your composer.json file., (*4)
Enable the module in your confguration:, (*5)
'modules' => [
    'docs' => [
        'class' => 'jhancock\markdowndocs\Module',
        // Optional, defaults to cebe\markdown\GithubMarkdown
        'parserClass' => 'cebe\markdown\GithubMarkdown'
    ],
],
Add a rule to your url manager component:, (*6)
'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., (*7)
This module assumes your documentation lives under the @app/docs alias., (*8)
Yii2 markdown documentation module
BSD-3-Clause
yii2 module markdown