Skip to content

Commit

Permalink
Merge pull request #590 from realm/jp-fix-empty-groups
Browse files Browse the repository at this point in the history
fix empty groups when using custom groups
  • Loading branch information
jpsim authored Jun 11, 2016
2 parents c683e25 + f70493d commit f35d27c
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 f35d27c

Please sign in to comment.