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:
committed by
Naomi Black
parent
37953e8a06
commit
9c55afdfde
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user