2017-25 © Pedro Peláez
 

library yii2-slate

Slate intergation with yii2.

image

dalencar/yii2-slate

Slate intergation with yii2.

  • Thursday, August 10, 2017
  • by davidsonalencar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 Slate Controller

About

This project is build dynamic way files MarkDown to Slate documentation through of a controller., (*1)

You don´t need to build your slate documentation before. This is done runtime., (*2)

ADVICE: Use pahanini/yii2-rest-doc to make you MarkDown file dynamically., (*3)

Install

  • Add "dalencar/yii2-slate": "*" to required section of your composer.json
  • Add in your controller a action. For example, DocController with a action named api

``` php public function actions() { return [ 'api' => [ 'class' => 'dalencar\slate\SlateAction', 'sourceBase' => '@backend/views/doc/api', 'configFile' => '@backend/views/doc/api/config.json', ], ]; }, (*4)


- Copy Slate templates Copy all files and folders from you `vendor/dalencar/yii2-slate/view` to you controller's action's folder, for example `views/doc/api`. /fonts /images /includes /javascripts /stylesheets apis.md [will be created dynamically] authentication.md introduction.md config.json - Set `config.json` file

{ "title": "API Reference", "language_tabs": ["bash", "javascript"], "toc_footers": [], "search": true, "menu": [ "introduction", "authentication", "apis" ], "menu_includes": [ "errors" ], "custom": { "BASE_URL": "http://localhost" } } ```, (*5)

The Versions

10/08 2017

dev-master

9999999-dev

Slate intergation with yii2.

  Sources   Download

MIT

The Requires

 

extension yii2 restful document slate

10/08 2017

0.1.0

0.1.0.0

Slate intergation with yii2.

  Sources   Download

MIT

The Requires

 

extension yii2 restful document slate