mimiz/silex-documentation-provider 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mimiz/silex-documentation-provider

Composer 安装命令:

composer require mimiz/silex-documentation-provider

包简介

Add documentation for your project

README 文档

README

Build Status

This Provider allows you to create a project documentation folder where you will be able to write all the documentation needed for developpers, for example describe the .htaccess file, or describe the directory structure, or even some development rules.

NOTE : This is still in development and there's no stable release ...

Installation

Install the silex-documentation-provider using composer. This project uses sematic versioning.

{
    "require": {
        "mimiz/silex-documention-provider": "~0.0.1"
    }
}

Then you'll need to choose a renderer, currently this support : [Textile](http://en.wikipedia.org/wiki/Textile_(markup_language), Markdown, or plain text.

So if you want to use Markdown Syntax, you will need to add the Markdown Dependency in your composer.json file

{
    "require": {
        "mimiz/silex-documention-provider": "~0.0.1",
        "michelf/php-markdown": "1.3"
    }
}

And here is the composer.json file if you want to use [Textile](http://en.wikipedia.org/wiki/Textile_(markup_language)

{
    "require": {
        "mimiz/silex-documention-provider": "~0.0.1",
        "netcarver/textile": "v3.5.1"
    }
}

Usage

$app->register(new \Mimiz\Silex\Provider\DocumentationProvider(), array(
    "documentation.dir" => __DIR__."/../documentation",
    "documentation.url" => '/doc',
    "documentation.extension" => 'md',
    "documentation.home"=>'index',
    "documentation.syntax"=>'markdown',
    "documentation.title"=>'My Documentation',
    "documentation.styles" => array('/components/bootstrap/css/bootstrap.min.css'),
    "documentation.scripts" => array('/components/jquery/jquery.min.js','/components/bootstrap/js/bootstrap.min.js')
));

Parameters

  • documentation.dir

    Path to the directory that contains your documentation files

  • documentation.url

    The base URL of your documentation

  • documentation.extension

    The file extension you used for documentation files

  • documentation.home

    The name of the Home page, this will be used for each subdirectories

  • documentation.syntax

    The syntax you want to use Available : markdown,textile, plain

  • documentation.title

    The title of the documentation Page (only for HTML Renderers like textile or markdown)

  • documentation.styles

    An array of css urls to add to your documentations

    array('/components/bootstrap/css/bootstrap.min.css')
  • documentation.scripts

    An array of js urls to add to your documentations

    array('/components/jsquery/jquery.min.js', '/components/bootstrap/js/bootstrap.min.js')

License

This software is licensed under MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固