- {% if page_title %}
-
{{ page_title }}
+ {% if page.title %}
+
{{ page.title }}
{% else %}
Architecture
{% endif %}
@@ -60,8 +60,8 @@
Architecture
@@ -70,10 +70,10 @@
Architecture
-
+
- {%- for path in extra_javascript %}
-
+ {%- for path in config['extra_javascript'] %}
+
{%- endfor %}
@@ -103,7 +103,7 @@
Search
-{% if current_page and current_page.is_homepage %}
+{% if page and page.is_homepage %}
{%- block site_nav %}
- {% if include_nav %}
+ {% if nav|length>1 %}
-
diff --git a/doc/custom_theme/toc.html b/doc/custom_theme/toc.html
index 116a798432..19215fcf4e 100644
--- a/doc/custom_theme/toc.html
+++ b/doc/custom_theme/toc.html
@@ -3,8 +3,8 @@
{%- for nav_child in nav_item_to_draw.children %}
- {{ nav_child.title }}
- {%- if page_title == nav_child.title%}
- {%- for toc_item in toc %}
+ {%- if page.title == nav_child.title%}
+ {%- for toc_item in page.toc %}
- {{ toc_item.title }}
{%- endfor %}
{%- endif %}
@@ -21,11 +21,11 @@
{%- endblock %}
{%- for nav_item in nav %}
{%- for nav_child in nav_item.children %}
-
- {%- if nav_child.title == page_title %}
+
+ {%- if nav_child.title == page.title %}
{{ draw_toc_for_nav(nav_item)}}
{%- endif %}
- {%- if page_title == None %}
+ {%- if page.title == None %}
{%- if nav_child.title == 'Architecture' %}
{{ draw_toc_for_nav(nav_item)}}
{%- endif %}
@@ -33,4 +33,4 @@
{%- endfor %}
{%- endfor %}
-
\ No newline at end of file
+
diff --git a/mkdocs.yml b/mkdocs.yml
index f0a8673d46..2c18c7f6b1 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -3,7 +3,9 @@ site_url: http://licode.readthedocs.org
repo_url: https://github.com/lynckia/licode
site_description: Open Source WebRTC Communications Platform
docs_dir: doc
-theme_dir: doc/custom_theme
+theme:
+ name: mkdocs
+ custom_dir: doc/custom_theme
extra_css: ['css/style.css', 'css/architecture.css']
extra_javascript: ['js/script.js']
pages: