Code Monkey home page Code Monkey logo

laravel-docs's Introduction

laravel-docs

Docs reader for laravel, currently supported extensions is: .md Helpful to use it as knowledge base or faq of your project or features.

Features

  • Render .md docs
  • Security: Configure access
  • You can request/suggest more features

How to use

  • Install:

    • git : git clone https://github.com/AnandPilania/laravel-docs.git

    • composer : composer install anandpilania/laravel-docs

    • Register Provider to config/app.php :

    • AP\Docs\ServiceProvider::class

    Instead of Facade, I used Contract, so Docs can be directly accessible to any class.

  • Publish the config and resources:

    • php artisan vendor:publish
  • Configure package according to your need (app/docs.php):

    • disk.root => Root path of all documents (by default: storage/app/docs)

    http : Responsible for default routes

    • prefix => Route prefix (default: /docs)
    • middleware => By default, web is used as a middleware group

    default' : This section responsible for rendering the default doc`

    • vendor => Default: storage/app/docs/laravel
    • version => Default: 5.4
    • page => Load default (installation) file while accessing //HOSTNAME/docs/laravel/5.4.
    • index => Default index file
    • extension => Currently this package supports only .md, so don't change it.

    security : Limit the access of docs

    • enabled => Its up to you, to enable this feature or not. true||false
    • file => Configure the file name of security according to your wish. default security.json Add this security.file to the vendor directory.

    extensions :

    • supported => Add extensions those are supported for render (currently .md), remaning extensions will excluded
    • excluded => Files containing these extensions will not displayed in the list
  • Sample security.json (ex: /storage/docs/app/laravel/security.json):

    { "roles": ["users"], "permissions": ["docs.show.versions"] }

NOTE: Default route are hard-coded to the ServiceProvider file of the package.

laravel-docs's People

Contributors

anandpilania avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.