code: func Generate(apiDef *raml.APIDefinition, ramlFile string, ramlBytes []byte,
  	dir string, libRootURLs []string) error {
  	// extract zipped files
  	if err := extract(dir); err != nil {
  		return err
  	}
  	ramlBytes = append([]byte("#%RAML 1.0\n"), ramlBytes...)
  
  	// write the main .raml file
  	if err := ioutil.WriteFile(filepath.Join(dir, "api.raml"), ramlBytes, 0777); err != nil {
  		return err
  	}
  
  	// copy all libraries files
  	return copyLibrariesFiles(apiDef.Uses, apiDef.Libraries, ramlFile, dir, libRootURLs)
  }
docs: // Generate generates API docs using api-console
  // https://github.com/mulesoft/api-console