@laboon/cli
馃悑 Modern documentation generator for your application
Last updated 9 months ago by muhibbudins .
MITRepositoryBugsOriginal npmTarballpackage.json
$ cnpm install @laboon/cli 
SYNC missed versions from official npm registry.

@laboon/cli

Note here

Usage

Install

Install laboon with :

$ npm install -g @laboon/cli
# or
$ yarn global add @laboon/cli

Show any options and format using laboon --help

$ laboon --help

???? Modern documentation generator for your application

Usage
  $ laboon <input>

Commands
  clean                   Removing cache on generator

Options
    --format, -f          File format to compile
    --exclude, -e         Excluding file / folders
    --source, -s          Source directory to generate (optional)
    --destination, -d     Destination folder of docs (default .laboon)
    --host, -h            Host of development preview
    --port, -p            Port of development preview
    --siteName, -S        Set site name for Gridsome
    --siteDescription, -D Set site description for Gridsome
    --siteUrl, -U         Set site url for Gridsome
    --pathPrefix, -P      Set path prefix for Gridsome

Examples
  $ laboon -f vue -f md -e node_modules -s src -d docs

Start Laboon

Last, run this command :

$ laboon

Configure

First of all, create laboon.yml on your project. With content like code below :

# laboon.yml

format: format # format
exclude: exclude # exclude
source: source # source
destination: destination # destination
host: host # host
port: port # port

You can use separate folder for destination, eg. public/docs

Next, create block comment on your documented method or variable. Like below example inside PHP file :

<?php

namespace App\Http\Controllers;

use App\User;
use App\Http\Controllers\Controller;

class UserController extends Controller
{
  /**
   * @name Example API PHP
   * @type Routes
   * @method GET
   * @parameters {
   *   username : String Required Null
   *   email : String Required Null
   * }
   */
  public function show($id)
  {
      return view('user.profile', ['user' => User::findOrFail($id)]);
  }
}

Markdown file :

----
name : Example Document
type : Documents
----

# Hello World

Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis natus dolore quo iste! Quibusdam quisquam laborum quos eligendi natus, reiciendis praesentium delectus ducimus enim. Aspernatur dicta provident veniam aliquam obcaecati!

### Example Flowchart

[flow]
  graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
[/flow]

Debitis natus dolore quo iste! Quibusdam quisquam laborum quos eligendi natus, reiciendis praesentium delectus ducimus enim. Aspernatur dicta provident veniam aliquam obcaecati!

JavaScript file :

class User {

  /**
   * @name Example API Node.js
   * @type Routes
   * @method GET
   * @parameters {
   *   username : String Required Null
   *   email : String Required Null
   * }
   */
  index(req, res) {
    res.json('name' => 'John Doe')
  }
}

Or, even your Vue Component file :

<template>
  <div>
    <!-- Form header -->
    <slot name="header">
      <!-- `<th>title</th>` -->
      <th>title</th>
    </slot>
  </div>
</template>

<script>
// This is a description of the component
export default {
  name: 'MyComponent',
  props: {
    // The name of the form, up to 8 characters
    name: {
      type: [String, Number],
      required: true,
      validator () {}
    }
  },
  methods: {
    // @vuese
    // Used to manually clear the form
    clear () {
      // Fire when the form is cleared
      // @arg The argument is a boolean value representing xxx
      this.$emit('onclear', true)
    }
  }
}
</script>

For further information about documenting Vue file, please see Vuese detail.

License

This project under MIT License

Current Tags

  • 1.7.2                                ...           latest (9 months ago)

15 Versions

  • 1.7.2                                ...           9 months ago
  • 1.7.1                                ...           10 months ago
  • 1.7.0                                ...           10 months ago
  • 1.6.0                                ...           10 months ago
  • 1.5.0                                ...           10 months ago
  • 1.4.0                                ...           10 months ago
  • 1.3.0                                ...           10 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 1.2.0-dev                                ...           10 months ago
  • 1.1.0-dev                                ...           10 months ago
  • 1.0.0-dev                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 15
Last Month 15
Dependencies (8)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 漏 taobao.org |