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

Commit

Permalink
Merge pull request #35 from yannanwang1/master
Browse files Browse the repository at this point in the history
Fix Bug: Cross-reference should be supported
  • Loading branch information
bianliu1013 committed Jun 14, 2017
2 parents ecd79f7 + c3b23ad commit 463f579
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docfx_yaml/monkeypatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ def transform_para(para_field):
else:
_type = None
if fieldtype.name == 'parameter':
# Remove @ and \n for cross reference in parameter type to apply to docfx correctly
if _type and _type.startswith('@'):
_type = _type[1:]
_type = _type.rstrip('\n')

_data = make_param(_id=_id, _type=_type, _description=_description)
data['parameters'].append(_data)
if fieldtype.name == 'variable':
Expand Down

0 comments on commit 463f579

Please sign in to comment.