bookshelf / knexjs.org

The knex.js documentation site
0 stars 1 forks source link

Check this out #1

Open tgriesser opened 10 years ago

tgriesser commented 10 years ago

@bendrucker & @johanneslumpe - https://github.com/joshuacc/grunt-tocdoc

It's generating http://documentcloud.github.io/underscore-contrib/

from

https://github.com/documentcloud/underscore-contrib/tree/master/docs

Might be worth looking into.

bendrucker commented 10 years ago

Looks pretty nice. I just gotta finally block out the time to sit down and do like one or two functions. Once I actually have to do examples I think it'll be clear how it should work. Also trying to flesh out a structure for generated SQL. I remember you mentioning somewhere that you thought the knex refactor would support easily generating queries in-browser. A browserify-ed knex and eval-ed methods from the doc structure would be awesome. I'll make time this week to make some progress and at least have something to discuss.

tgriesser commented 10 years ago

Yep, it'll generate sql - https://github.com/tgriesser/knex/blob/refactor/test/unit/query/builder.js

Also, if you want to just hang out in IRC, we're all typically there all day, usually not much gets said but I find it's generally easier then tickets/emails. Limechat is my preferred osx client (assuming you're a mac guy) but I'm sure there's plenty of other good ones, just incase you were looking.

bendrucker commented 10 years ago

Yup, still using Colloquy. Signing on now.

johanneslumpe commented 10 years ago

Yeah this might be cool - this seems to be kind of what you wanted to do, right @bendrucker ?

bendrucker commented 10 years ago

Roughly yes. The question is just whether it's easier to tweak an existing solution or start from scratch. Really excited to run knex/bookshelf in browser for the docs. It'll be really cool to be able to generate queries, relations, and things like that directly in browser alongside the examples.