wdullaer / raml2slate Goto Github PK
View Code? Open in Web Editor NEWRender the RAML API spec in the slate documentation layout
License: Other
Render the RAML API spec in the slate documentation layout
License: Other
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 :)
I see reference in the code but they don't seem to be built out. Is this planned?
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?
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!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.