base.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. {% if page_description %}<meta name="description" content="{{ page_description }}">{% endif %}
  9. {% if site_author %}<meta name="author" content="{{ site_author }}">{% endif %}
  10. {% block htmltitle %}
  11. <title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
  12. {% endblock %}
  13. {% if favicon %}<link rel="shortcut icon" href="{{ favicon }}">
  14. {% else %}<link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}
  15. {# CSS #}
  16. <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
  17. <link rel="stylesheet" href="{{ base_url }}/css/theme.css" type="text/css" />
  18. <link rel="stylesheet" href="{{ base_url }}/css/theme_extra.css" type="text/css" />
  19. <link rel="stylesheet" href="{{ base_url }}/css/highlight.css">
  20. {%- for path in extra_css %}
  21. <link href="{{ path }}" rel="stylesheet">
  22. {%- endfor %}
  23. {% if current_page %}
  24. <script>
  25. // Current page data
  26. var mkdocs_page_name = "{{ page_title }}";
  27. var mkdocs_page_input_path = "{{ current_page.input_path }}";
  28. var mkdocs_page_url = "{{ current_page.abs_url }}";
  29. </script>
  30. {% endif %}
  31. <script src="{{ base_url }}/js/jquery-2.1.1.min.js"></script>
  32. <script src="{{ base_url }}/js/modernizr-2.8.3.min.js"></script>
  33. <script type="text/javascript" src="{{ base_url }}/js/highlight.pack.js"></script>
  34. <script src="{{ base_url }}/js/theme.js"></script>
  35. {%- block extrahead %} {% endblock %}
  36. {%- for path in extra_javascript %}
  37. <script src="{{ path }}"></script>
  38. {%- endfor %}
  39. {% if google_analytics %}
  40. <script>
  41. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  42. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  43. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  44. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  45. ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
  46. ga('send', 'pageview');
  47. </script>
  48. {% endif %}
  49. </head>
  50. <body class="wy-body-for-nav" role="document">
  51. <div class="wy-grid-for-nav">
  52. {# SIDE NAV, TOGGLES ON MOBILE #}
  53. <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
  54. <div class="wy-side-nav-search">
  55. <a href="{{ homepage_url }}" class="icon icon-home"> {{ site_name }}</a>
  56. {% include "searchbox.html" %}
  57. </div>
  58. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  59. <ul class="current">
  60. {% for nav_item in nav %}
  61. <li>{% include "toc.html" %}<li>
  62. {% endfor %}
  63. </ul>
  64. </div>
  65. &nbsp;
  66. </nav>
  67. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  68. {# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
  69. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  70. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  71. <a href="{{ homepage_url }}">{{ site_name }}</a>
  72. </nav>
  73. {# PAGE CONTENT #}
  74. <div class="wy-nav-content">
  75. <div class="rst-content">
  76. {% include "breadcrumbs.html" %}
  77. <div role="main">
  78. <div class="section">
  79. {% block content %}
  80. {{ content }}
  81. {% endblock %}
  82. </div>
  83. </div>
  84. {%- block footer %}
  85. {% include "footer.html" %}
  86. {% endblock %}
  87. </div>
  88. </div>
  89. </section>
  90. </div>
  91. {% include "versions.html" %}
  92. </body>
  93. </html>
  94. {% if current_page and current_page.is_homepage %}
  95. <!--
  96. MkDocs version : {{ mkdocs_version }}
  97. Build Date UTC : {{ build_date_utc }}
  98. -->
  99. {% endif %}