2017 © Pedro PelĂĄez
 

library silex-documentation-provider

Add documentation for your project

image

mimiz/silex-documentation-provider

Add documentation for your project

  • Sunday, July 28, 2013
  • by mimiz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Silex Documentation Provider

Build Status, (*1)

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., (*2)

NOTE : This is still in development and there's no stable release ..., (*3)

Installation

Install the silex-documentation-provider using composer. This project uses sematic versioning., (*4)

{
    "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., (*5)

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

{
    "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), (*7)

{
    "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, (*8)

    Path to the directory that contains your documentation files, (*9)

  • documentation.url, (*10)

    The base URL of your documentation, (*11)

  • documentation.extension, (*12)

    The file extension you used for documentation files, (*13)

  • documentation.home, (*14)

    The name of the Home page, this will be used for each subdirectories, (*15)

  • documentation.syntax, (*16)

    The syntax you want to use Available : markdown,textile, plain, (*17)

  • documentation.title, (*18)

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

  • documentation.styles, (*20)

    An array of css urls to add to your documentations, (*21)

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

    An array of js urls to add to your documentations, (*23)

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

License

This software is licensed under MIT, (*24)

The Versions

28/07 2013

dev-master

9999999-dev

Add documentation for your project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rémi Goyard

28/07 2013