From 51d6426ee1b474e40cf785e22fd2b4c396ab91cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Cervi=C3=B1o?= Date: Fri, 29 Nov 2019 14:27:09 +0100 Subject: [PATCH] Update docs to latest mkdocs version (#1511) --- doc/custom_theme/base.html | 32 ++++++++++++++++---------------- doc/custom_theme/content.html | 6 +++--- doc/custom_theme/nav.html | 6 +++--- doc/custom_theme/toc.html | 12 ++++++------ mkdocs.yml | 4 +++- 5 files changed, 31 insertions(+), 29 deletions(-) diff --git a/doc/custom_theme/base.html b/doc/custom_theme/base.html index 9d8f4ede6e..49d91d0fd6 100644 --- a/doc/custom_theme/base.html +++ b/doc/custom_theme/base.html @@ -4,20 +4,20 @@ - {% if page_description %}{% endif %} - {% if site_author %}{% endif %} - {% if canonical_url %}{% endif %} + {% if page.description %}{% endif %} + {% if config.site_author %}{% endif %} + {% if page.canonical_url %}{% endif %} {% if favicon %} {% else %}{% endif %} - {% if page_title %}{{ page_title }} - {% endif %}{{ site_name }} + {% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }} - {%- for path in extra_css %} - + {%- for path in config['extra_css'] %} + {%- endfor %} @@ -33,21 +33,21 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}'); + ga('create', '{{ config.google_analytics[0] }}', '{{ config.google_analytics[1] }}'); ga('send', 'pageview'); {% endif %} - + {% include "nav.html" %}
{% block content %}
- {% if page_title %} -

{{ page_title }}

+ {% if page.title %} +

{{ page.title }}

{% else %}

Architecture

{% endif %} @@ -60,8 +60,8 @@

Architecture


- {% if copyright %} -

{{ copyright }}

+ {% if config.copyright %} +

{{ config.copyright }}

{% endif %}

Documentation built with MkDocs.

@@ -70,10 +70,10 @@

Architecture

- + - {%- for path in extra_javascript %} - + {%- for path in config['extra_javascript'] %} + {%- endfor %} 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: