Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'define_group' ignores 'format' config #323

Open
kurko opened this issue Jan 11, 2017 · 0 comments
Open

'define_group' ignores 'format' config #323

kurko opened this issue Jan 11, 2017 · 0 comments

Comments

@kurko
Copy link
Contributor

kurko commented Jan 11, 2017

What

When define_group is present, format is ignored.

Example

In case the following example, it works as expected. The format used is api_blueprint (index.apib file, from this PR) and the docs go to doc/.

RspecApiDocumentation.configure do |config|
  config.filter = :public
  config.format = :api_blueprint
end

However, I want a different directory, so I do the following:

RspecApiDocumentation.configure do |config|
  config.define_group :public do |group|
    group.docs_dir = Rails.root.join("docs", "api")
    group.filter = :public
  end
  config.format = :api_blueprint
end

In this case, docs go to docs/api/, but it ignores format. The final file is an index.html (default format).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant