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
@@ -3,7 +3,7 @@
{% block body %}
<h1 class="id">{$ doc.id $} <span class="type">module</span></h1>
<p>defined in {$ github.githubViewLink(doc) $}</p>
<p>defined in {$ github.githubViewLink(doc, versionInfo) $}</p>
<p>{$ doc.description | marked $}</p>
{% if doc.exports.length %}