techone/ldoc

A documentation generator for Laravel.

v0.4.0 2019-06-18 04:00 UTC

This package is auto-updated.

Last update: 2024-11-18 19:32:21 UTC


README

Build Status Latest Stable Version Total Downloads License

Ldoc is a tool for quickly generating documents written in the PHP language. You write documents in Markdown (or other languages) and Ldoc generates files with a beautiful theme in seconds.

Installation

composer require techone/ldoc

Add the ServiceProvider in config/app.php

'providers' => [
    /*
     * Package Service Providers...
     */
    Ldoc\LdocServiceProvider::class,
]

To publish the config, run the vendor publish command:

php artisan vendor:publish

This will create a demo in storage directory.

Then, you can access 'http://yourdomain.com/docs' and it will show the demo.

Configuration

Once Ldoc is installed, here’s what your project folder will look like:

The default document should be stored in the storage/docs directory:

.
├── sidebar.yml
├── version.yml
├── _source
|   ├── index.md
|   └── configuration.md
└── v1
    └── _source
        ├── index.md
        └── configuration.md

License

This project is licensed under the Apache 2.0 license.