# File lib/sinatra/rabbit.rb, line 260
      def generate_documentation
        coll = self
        Rabbit::routes << [:get, "#{settings.root_url}/docs/#{@name}"]
        ::Sinatra::Application.get("#{settings.root_url}/docs/#{@name}") do
          coll.check_supported(driver)
          @collection = coll
          @operations = coll.operations
          @features = driver.features(coll.name)
          respond_to do |format|
            format.html { haml 'docs/collection''docs/collection' }
            format.xml { haml 'docs/collection''docs/collection' }
          end
        end
      end