Skip to content

Commit

Permalink
fix empty groups when using custom groups
Browse files Browse the repository at this point in the history
fixes #475
  • Loading branch information
jpsim committed Jun 10, 2016
1 parent c683e25 commit f70493d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

* None.

* Fix issue where some sections would become empty when using custom groups.
[JP Simard](https://github.com/jpsim)
[#475](https://github.com/realm/jazzy/issues/475)

## 0.6.3

##### Breaking
Expand Down
1 change: 1 addition & 0 deletions lib/jazzy/sourcekitten.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def self.group_type_categories(docs, type_category_prefix)
end

def self.make_group(group, name, abstract)
group.reject! { |doc| doc.name.empty? }
SourceDeclaration.new.tap do |sd|
sd.type = SourceDeclaration::Type.overview
sd.name = name
Expand Down

0 comments on commit f70493d

Please sign in to comment.