Skip to content

Commit

Permalink
Fixed documentation index page (lynckia#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Alonso authored Jun 22, 2017
1 parent 7c9cb3b commit bcc1daf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion doc/custom_theme/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% if page_title %}
<h1>{{ page_title }}</h1>
{% else %}
<h1>Documentation</h1>
<h1>Architecture</h1>
{% endif %}
<p>Licode documentation</p>
</div>
Expand Down
24 changes: 13 additions & 11 deletions doc/custom_theme/toc.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<div class="bs-sidebar hidden-print affix-top well" role="complementary">
{%- macro draw_toc_for_nav(nav_item_to_draw) %}

{%- for nav_chil in nav_item_to_draw.children %}
<li class="main"><a href="{{ nav_chil.url }}">{{ nav_chil.title }}</a></li>
{%- if page_title == nav_chil.title%}
{%- for toc_item in toc %}
{%- for nav_child in nav_item_to_draw.children %}
<li class="main"><a href="{{ nav_child.url }}">{{ nav_child.title }}</a></li>
{%- if page_title == nav_child.title%}
{%- for toc_item in toc %}
<li class="{% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
{%- endfor %}
{%- endif %}
{%- endfor %}

{%- endmacro %}
<ul class="nav bs-sidenav">
{%- block search_button %}
{%- block search_button %}
<li class="search_nav">
<a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
<i class="fa fa-search"></i> Search
Expand All @@ -21,14 +21,16 @@
{%- endblock %}
{%- for nav_item in nav %}
{%- for nav_child in nav_item.children %}

{%- if nav_child.title == page_title %}
{{ draw_toc_for_nav(nav_item)}}
{%- endif %}
{%- endfor %}
{%- if page_title == None %}
{%- if nav_child.title == 'Architecture' %}
{{ draw_toc_for_nav(nav_item)}}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endfor %}
</ul>




</div>
</div>
2 changes: 1 addition & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>Architecture overview</h1>
<h1>Overview</h1>
<section id="architecture" class="row-fluid">
<figure id="canvas" class="illustration">

Expand Down

0 comments on commit bcc1daf

Please sign in to comment.