Sha256: cef77ec51d512bfa4b326522c9242f93108e8788a8b96d1e9dc41bcbac4cb3b7

Contents?: true

Size: 572 Bytes

Versions: 13

Compression:

Stored size: 572 Bytes

Contents

# Renderers

Included renders:

- JSON renderer for https://github.com/twe4ked/api-docs
- Raddocs renderer for https://github.com/smartlogic/raddocs
- Slate renderer for https://github.com/lord/slate

## Protocol

A renderer gets initialized with an array of `Resource`s and then the `render`
instance method is called.

## Example

``` ruby
class ExampleRenderer
  def initialize(resources)
    @resources = resources
  end

  def render
    puts @resources.map(&:name).join("\n")
  end
end

RspecApiDocs.configure do |config|
  config.renderer = ExampleRenderer
end
```

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspec-api-docs-1.1.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-1.0.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.14.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.13.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.12.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.11.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.10.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.9.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.8.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.7.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.6.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.5.0 lib/rspec_api_docs/formatter/renderer/README.md
rspec-api-docs-0.4.0 lib/rspec_api_docs/formatter/renderer/README.md