Skip to content

Commit

Permalink
[DocBuilder] Combine abstract and discussion in page overview.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim committed Dec 26, 2014
1 parent 49140df commit f0060d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ None.

##### Enhancements

None.
* Combine abstract and discussion in page overview.
[JP Simard](https://github.com/jpsim)
[#115](https://github.com/realm/jazzy/issues/115)

##### Bug Fixes

Expand Down
4 changes: 3 additions & 1 deletion lib/jazzy/doc_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ def self.document(source_module, doc_model, path_to_root)
doc[:name] = doc_model.name
doc[:kind] = doc_model.type.name
doc[:dash_type] = doc_model.type.dash_type
doc[:overview] = Jazzy.markdown.render(doc_model.abstract || '')
doc[:overview] = Jazzy.markdown.render(
(doc_model.abstract || '') + (doc_model.discussion || ''),
)
doc[:structure] = source_module.doc_structure
doc[:tasks] = render_tasks(source_module, doc_model.children)
doc[:module_name] = source_module.name
Expand Down

0 comments on commit f0060d8

Please sign in to comment.