dokis

command
v0.0.0-...-34b5496 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2016 License: MIT Imports: 10 Imported by: 0

README

Dokis

Dokis generate a simple index html page containing the documentation of all of your project using sagger yaml or json files.

Prerequisite

How to Use

git clone https://github.com/evonck/doki.git
cd doki/dokis
go build

Use

 ./dokis pathToTheYamlFiles ouptutPath

Dockis will create json files from the yaml and use bootprint-swagger to change them to html documentation.

Required

To run doki locally you need to install bootprint swagger on your machine:

https://www.npmjs.com/package/bootprint

Command Line

  • --force, -f force the creation of the json file even if another json file of the same name already exist.
  • --recursive, -r Make a recursive search for all yaml file in the directory
  • --index, -i Path to the index.html template file.

Example: Folder project:

project
    |---test
        |---v0
            |--- test.yaml

Run:

./yamlToSwagger ./test.yaml ./docs

Generate: folder docs:

docs
    |---test
        |---test.html
    |---index.html
    |---main.css
    |---nav.css
    |---template.html

alt tag

Documentation

Overview

Package yamlToJson provides a simple interface to generate swagger html structure from an yaml file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL