承接 dalencar/yii2-slate 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dalencar/yii2-slate

最新稳定版本:0.1.0

Composer 安装命令:

composer require dalencar/yii2-slate

包简介

Slate intergation with yii2.

README 文档

README

#Yii2 Slate Controller

About

This project is build dynamic way files MarkDown to Slate documentation through of a controller.

You don´t need to build your slate documentation before. This is done runtime.

ADVICE: Use pahanini/yii2-rest-doc to make you MarkDown file dynamically.

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
public function actions()
{
    return [
        'api' => [
            'class' => 'dalencar\slate\SlateAction',
            'sourceBase' => '@backend/views/doc/api',
            'configFile' => '@backend/views/doc/api/config.json',
        ],
    ];
}
  • 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"
    }
}

统计信息

  • 总下载量: 180
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固