From 4aad369c9728061c97b3de792286e743ee884b09 Mon Sep 17 00:00:00 2001 From: growupboron Date: Fri, 11 Sep 2020 17:18:57 +0530 Subject: Simplified doc-site generation Updated theme to windmill Using Mkdocs static site generator Deployed on readthedocs Signed-off-by: growupboron Change-Id: If62eaaea1855c91b64f687900f54eba6bc1caee8 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/25236 Reviewed-by: Jan-Simon Moeller Tested-by: Jan-Simon Moeller --- theme/mkdocs_windmill/base.html | 166 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100644 theme/mkdocs_windmill/base.html (limited to 'theme/mkdocs_windmill/base.html') diff --git a/theme/mkdocs_windmill/base.html b/theme/mkdocs_windmill/base.html new file mode 100644 index 0000000..8b4feb8 --- /dev/null +++ b/theme/mkdocs_windmill/base.html @@ -0,0 +1,166 @@ + + + + {% set is_top = (page and page.is_homepage) and not force_plain_page %} + {% set base_url = base_url or "." %} + + {%- block site_meta %} + + + + {% if page and page.is_homepage %}{% endif %} + {% if config.site_author %}{% endif %} + {% if page and page.canonical_url %}{% endif %} + {% if config.site_favicon %} + {% else %}{% endif %} + + {%- endblock %} + + {%- block htmltitle %} + {% if page and page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }} + {%- endblock %} + + {%- block styles %} + + + + + {%- for path in extra_css %} + + {%- endfor %} + {%- endblock %} + + {%- block libs %} + + + + + + + {% if is_top %} + + {% endif %} + + {%- endblock %} + + {%- block scripts %} + + + {%- for path in extra_javascript %} + + {%- endfor %} + {%- endblock %} + + {%- block analytics %} + {%- if config.google_analytics %} + + {%- endif %} + {%- endblock %} + + {%- block extrahead %} {% endblock %} + + + + + +{# + # Code for the top frame. It should ideally be separate from the index page (which is likely + # possible once theme_config is released with mkdocs 1.0). + #} +{%- if is_top -%} + {% include 'topbar.html' %} + +
+ {% include 'nav-pane.html' %} +
+ +
+
+ +{%- endif -%} + +{# Code for the main template for all content pages. #} + +
+ + {%- if config.extra.article_nav_top != False %} + {% include "article-nav.html" %} + {%- endif %} + + {%- block content %} + {% if page and page.meta.source %} + + {% endif %} + + {{ page.content }} + {%- endblock %} + +
+ {%- if config.extra.article_nav_bottom != False %} + {% include "article-nav.html" %} +
+ {%- endif %} +
+ + + + + +{%- if is_top %} + +{%- endif %} -- cgit 1.2.3-korg