fix(api-builder): pass versionInfo to macros

The update to dgeni-packages led to a breaking change in the Nunjucks
templates, where macros are now isolated from their calling site.

This means that we must pass the `versionInfo` object through to the
macro rather than expecting it to be in scope already.
This commit is contained in:
Peter Bacon Darwin
2016-09-14 07:50:02 +01:00
committed by Naomi Black
parent 37953e8a06
commit 9c55afdfde
10 changed files with 14 additions and 14 deletions
@@ -68,6 +68,6 @@ div(layout="row" layout-xs="column" class="instance-members" class="row-margin n
p(class="location-badge").
exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} },
defined in {$ github.githubViewLink(doc) $}
defined in {$ github.githubViewLink(doc, versionInfo) $}
{% endblock %}