kapost / cabbage_doc Goto Github PK
View Code? Open in Web Editor NEWA lean and mean interactive API documentation generator.
License: MIT License
A lean and mean interactive API documentation generator.
License: MIT License
I configured everything correctly but I still didn't get anything under /api/docs where I mounted CabbageDoc in my Rails application.
Only after rake cabbagedoc:documentation
did anything start showing up there. Any chance to get everything rebuilt every request to the docs? This way we won't have to run rake
task every second.
I noticed controllers.yml file that seems to be the source of what CabbageDoc web component renders but I can't find the location in the code that generates it or reads it.
If I delete config.authentication = proc do ... end
part from the initializer, I'm getting NoMethodError from authentication.rb:7 (Configuration.instance.authentication.call(auth, request)
). It seems like authentication is obligatory, while I want this to be exposed publicly. I just want to make sure whether it's a bug, or I'm doing something wrong. Thanks.
[rails] 2016-06-08 15:58:00 - NoMethodError - undefined method `call' for nil:NilClass:
[rails] /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/lib/cabbage_doc/authentication.rb:7:in `block in new'
[rails] /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/lib/cabbage_doc/authentication.rb:5:in `tap'
[rails] /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/lib/cabbage_doc/authentication.rb:5:in `new'
[rails] /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/lib/cabbage_doc/web_helper.rb:22:in `auth'
[rails] /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/web/views/authentication.haml:1:in `block in singleton class'
[rails] /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/web/views/authentication.haml:-9:in `instance_eval'
[rails] /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/web/views/authentication.haml:-9:in `singleton class'
[rails] /home/nowaker/projekty/virtkick/starter/.rvm/gems/ruby-2.2.2/gems/cabbage_doc-0.0.2/web/views/authentication.haml:-11:in `__tilt_34979100'
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.