Skip to content

Commit e552838

Browse files
oddgrdseanmonstar
authored andcommitted
feat: link to correct api docs in guide main index
1 parent 017cef5 commit e552838

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_layouts/guide.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ <h1>{{ page.title }}</h1>
3030
{% endfor %}
3131
{% endif %}
3232
<h4 class="guide-topic-title">
33-
<a href="{{ site.docs_url }}">API Reference</a>
33+
{% if page.collection == "legacy" %}
34+
<a href="{{ site.legacy_docs_url }}">API Reference</a>
35+
{% elsif page.collection == "stable" %}
36+
<a href="{{ site.docs_url }}">API Reference</a>
37+
{% endif %}
3438
</h4>
3539
</nav>
3640
</aside>

0 commit comments

Comments
 (0)