Skip to content

Commit

Permalink
add api reference to the top bar
Browse files Browse the repository at this point in the history
  • Loading branch information
EtaiG authored and petkaantonov committed Aug 24, 2016
1 parent 5291d20 commit 637ea7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/_layouts/default.html
Expand Up @@ -41,14 +41,17 @@
</div>
<div id="navbar" class="navbar-collapse navbar-bluebird navbar-right collapse">
<ul class="nav navbar-nav bb-nav">
{% if page.path == 'docs/support.md' %}
{% if page.path == 'docs/api-reference.md' %}
+ {% assign name = 'api' %}
+ {% elsif page.path == 'docs/support.md' %}
{% assign name = 'support' %}
{% elsif page.path == 'docs/install.md' %}
{% assign name = 'install' %}
{% else %}
{% assign name = 'docs' %}
{% endif %}

<li class="{% if name == 'api' %}active{% endif %}"><a href="{{ "/docs/api-reference.html" | prepend: site.baseurl }}">API</a></li>
<li class="{% if name == 'docs' %}active{% endif %}"><a href="{{ "/docs/getting-started.html" | prepend: site.baseurl }}">Docs</a></li>
<li class="{% if name == 'support' %}active{% endif %}"><a href="{{ "/docs/support.html" | prepend: site.baseurl }}">Support</a></li>
<li class="{% if name == 'install' %}active{% endif %}"><a href="{{ "/docs/install.html" | prepend: site.baseurl }}">Install</a></li>
Expand Down

0 comments on commit 637ea7a

Please sign in to comment.