Code Monkey home page Code Monkey logo

raml2slate's People

Contributors

greenkeeper[bot] avatar wdullaer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

clhodapp

raml2slate's Issues

Why not create a new template for raml2html?

Hey! I like the direction you're taking with this template. Since raml2html could definitely use a new default template, why not join efforts and add this template to raml2html? Instead of making a new library that depends on raml2md to render raml -> md -> html in slate style :)

language tabs

I see reference in the code but they don't seem to be built out. Is this planned?

Cannot run raml2slate

Hi, thanks for the amazing work!

I installed raml2slate via npm npm install -g raml2slate and tried to run it with raml2slate -i test6.raml unsuccessfully. I get the following error message:

Something went wrong rendering the documentation
[Error: template not found: /Users/christianmule/.node/lib/node_modules/raml2slate/templates/index.nunjucks]

Can you help me out?

Issues using CLI

Hey,

Thanks so much for putting this together! I'm having some difficulties working with the command line interface, though. Here's what I'm seeing:

~/g/u/data » raml2slate -i minimal.raml -o slate
Something went wrong rendering the documentation
Error: template not found: /usr/local/lib/node_modules/raml2slate/templates/index.nunjucks
    at createTemplate (/usr/local/lib/node_modules/raml2slate/node_modules/nunjucks/src/environment.js:206:31)
    at next (/usr/local/lib/node_modules/raml2slate/node_modules/nunjucks/src/lib.js:210:13)
    at handle (/usr/local/lib/node_modules/raml2slate/node_modules/nunjucks/src/environment.js:252:25)
    at /usr/local/lib/node_modules/raml2slate/node_modules/nunjucks/src/environment.js:263:21
    at next (/usr/local/lib/node_modules/raml2slate/node_modules/nunjucks/src/lib.js:207:13)
    at Object.exports.asyncIter (/usr/local/lib/node_modules/raml2slate/node_modules/nunjucks/src/lib.js:214:5)
    at Obj.extend.getTemplate (/usr/local/lib/node_modules/raml2slate/node_modules/nunjucks/src/environment.js:242:17)
    at Obj.extend.render (/usr/local/lib/node_modules/raml2slate/node_modules/nunjucks/src/environment.js:303:14)
    at Promise (/usr/local/lib/node_modules/raml2slate/node_modules/raml2md/index.js:25:26)
    at raml2obj.parse.then (/usr/local/lib/node_modules/raml2slate/node_modules/raml2md/index.js:24:12)
    at _fulfilled (/usr/local/lib/node_modules/raml2slate/node_modules/q/q.js:798:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/raml2slate/node_modules/q/q.js:827:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/raml2slate/node_modules/q/q.js:760:13)
    at /usr/local/lib/node_modules/raml2slate/node_modules/q/q.js:574:44
    at flush (/usr/local/lib/node_modules/raml2slate/node_modules/q/q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)

I'm quite sure that the file exists, though:

~/g/u/data » cat minimal.raml
#%RAML 0.8
title: Rocketlawyer User REST API
version: v1
protocols: [ HTTPS ]
baseUri: http://rocketlawyer.com/users/v1/
mediaType: application/json
/:
~/g/u/data » file /usr/local/lib/node_modules/raml2slate/templates/index.nunjucks
/usr/local/lib/node_modules/raml2slate/templates/index.nunjucks: ASCII text

I think this may be a bug specific to the CLI. Any assistance is appreciated!

RAML 1.0 support

Hi,

Love what you're doing here!

Any plan to support RAML 1.0?
It will be a great help.

Thanks.

ps. I guess this is related to the lack of support of raml2md of RAML 1.0, more about this

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.