Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Bug Fix: Make sure 'class' type doesn't contain exceptions field in yml
Browse files Browse the repository at this point in the history
  • Loading branch information
killa1218 committed Apr 28, 2018
1 parent 8c35430 commit 7d85310
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docfx_yaml/monkeypatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ def transform_all(self, node):
# skip 'Bases' in summary
if not content.startswith('Bases: '):
summary.append(content)

if "desctype" in node.parent and node.parent["desctype"] == 'class':
data.pop('exceptions', '') # Make sure class doesn't have 'exceptions' field.

if summary:
data['summary'] = '\n'.join(summary)
# Don't include empty data
Expand Down

0 comments on commit 7d85310

Please sign in to comment.