var aglio = require('aglio')
var winston = require('winston')

var options = {
  themeVariables: 'flatly'
}

aglio.renderFile('src/index.apib', 'docs.html', options, function (err, warnings) {
    if (err) return winston.error(err)
    if (warnings) winston.warn(warnings)
})

var aglio, options, path, winston

aglio = require( 'aglio' )
path = require( 'path' )
winston = require( 'winston' )

destination = path.join( __dirname + '/../views/docs.hbs' )
options = {
  themeVariables: 'flatly'
}
source = path.join( __dirname + '/../docs/src/index.apib' )

console.log( source )
console.log( destination )

aglio.renderFile( source, destination, options, function ( error, warnings ) {
  if ( error ) {
    return winston.error( error )
  }

  if ( warnings ) {
    winston.warn( warnings )
  }
})

Make the doc gen script a bit more robust
Make the doc gen script a bit more robust
