2017 © Pedro Peláez
 

library flat-docs

image

rtablada/flat-docs

  • Thursday, June 13, 2013
  • by rtablada
  • Repository
  • 1 Watchers
  • 3 Stars
  • 5 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FlatDoc for Laravel 4

This clean Markdown utility allows you to make awesome documentation quickly., (*1)

Installation with Laravel 4 Package Installer

Simply run php artisan package:install rtablada/flat-docs, (*2)

Installation with Composer

In your composer.json add 'rtablada/flat-docs': 'dev-master', (*3)

Then in your app/config/app.php add this to your Service Providers 'Rtablada\FlatDocs\FlatDocsServiceProvider',, (*4)

Publishing assets and configuration

Finally run these few commands:, (*5)

php artisan asset:publish rtablada/flat-docs
php artisan config:publish rtablada/flat-docs

Cofiguration

You can modify the configuration, (*6)

Creating your docs

Declaring docs

Register the docs you would like available by modifying the 'registeredDocs' property in the config file. This will handle URI mapping as well as creating your navigation! Also, you can declare stubs vs. Pretty Titles by using the format stub:pretty. By the way, there is no limitation to the depths of your uris/documents!, (*7)

'registeredDocs' => array(
    'start:Getting Started',
    'api' => array(
        '1:endpoint1',
        '2:endpoint2',
    ),
),

Markdown Files

In your app path, place your docs in a 'docs' folder (this location can be modified in the config). There order should match the way you want your uris. So the file tree for the example would look like:, (*8)

start.md
api/
    -1.md
    -2.md

The Versions

13/06 2013

dev-master

9999999-dev

  Sources   Download

MIT

The Requires