base.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. {#-
  2. This file was automatically generated - do not edit
  3. -#}
  4. {% import "partials/language.html" as lang with context %}
  5. {% set feature = config.theme.feature %}
  6. {% set palette = config.theme.palette %}
  7. {% set font = config.theme.font %}
  8. <!doctype html>
  9. <html lang="{{ lang.t('language') }}" class="no-js">
  10. <head>
  11. {% block site_meta %}
  12. <meta charset="utf-8">
  13. <meta name="viewport" content="width=device-width,initial-scale=1">
  14. <meta http-equiv="x-ua-compatible" content="ie=edge">
  15. {% if page and page.meta and page.meta.description %}
  16. <meta name="description" content="{{ page.meta.description }}">
  17. {% elif config.site_description %}
  18. <meta name="description" content="{{ config.site_description }}">
  19. {% endif %}
  20. {% if page and page.meta and page.meta.redirect %}
  21. <script>var anchor=window.location.hash.substr(1);location.href="{{ page.meta.redirect }}"+(anchor?"#"+anchor:"")</script>
  22. <meta http-equiv="refresh" content="0; url={{ page.meta.redirect }}">
  23. <meta name="robots" content="noindex">
  24. <link rel="canonical" href="{{ page.meta.redirect }}">
  25. {% elif page.canonical_url %}
  26. <link rel="canonical" href="{{ page.canonical_url }}">
  27. {% endif %}
  28. {% if page and page.meta and page.meta.author %}
  29. <meta name="author" content="{{ page.meta.author }}">
  30. {% elif config.site_author %}
  31. <meta name="author" content="{{ config.site_author }}">
  32. {% endif %}
  33. {% for key in [
  34. "clipboard.copy",
  35. "clipboard.copied",
  36. "search.language",
  37. "search.pipeline.stopwords",
  38. "search.pipeline.trimmer",
  39. "search.result.none",
  40. "search.result.one",
  41. "search.result.other",
  42. "search.tokenizer"
  43. ] %}
  44. <meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
  45. {% endfor %}
  46. <link rel="shortcut icon" href="{{ config.theme.favicon | url }}">
  47. <meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-4.6.3">
  48. {% endblock %}
  49. {% block htmltitle %}
  50. {% if page and page.meta and page.meta.title %}
  51. <title>{{ page.meta.title }}</title>
  52. {% elif page and page.title and not page.is_homepage %}
  53. <title>{{ page.title | striptags }} - {{ config.site_name }}</title>
  54. {% else %}
  55. <title>{{ config.site_name }}</title>
  56. {% endif %}
  57. {% endblock %}
  58. {% block styles %}
  59. <link rel="stylesheet" href="{{ 'assets/stylesheets/application.adb8469c.css' | url }}">
  60. {% if palette.primary or palette.accent %}
  61. <link rel="stylesheet" href="{{ 'assets/stylesheets/application-palette.a8b3c06d.css' | url }}">
  62. {% endif %}
  63. {% if palette.primary %}
  64. {% import "partials/palette.html" as map %}
  65. {% set primary = map.primary(
  66. palette.primary | replace(" ", "-") | lower
  67. ) %}
  68. <meta name="theme-color" content="{{ primary }}">
  69. {% endif %}
  70. {% endblock %}
  71. {% block libs %}
  72. <script src="{{ 'assets/javascripts/modernizr.86422ebf.js' | url }}"></script>
  73. {% endblock %}
  74. {% block fonts %}
  75. {% if font != false %}
  76. <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
  77. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{
  78. font.text | replace(' ', '+') + ':300,400,400i,700%7C' +
  79. font.code | replace(' ', '+')
  80. }}&display=fallback">
  81. <style>body,input{font-family:"{{ font.text }}","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"{{ font.code }}","Courier New",Courier,monospace}</style>
  82. {% endif %}
  83. {% endblock %}
  84. <link rel="stylesheet" href="{{ 'assets/fonts/material-icons.css' | url }}">
  85. {% if config.extra.manifest %}
  86. <link rel="manifest" type="application/manifest+json" href="{{ config.extra.manifest | url }}" crossorigin="use-credentials">
  87. {% endif %}
  88. {% for path in config["extra_css"] %}
  89. <link rel="stylesheet" href="{{ path | url }}">
  90. {% endfor %}
  91. {% block analytics %}
  92. {% if config.google_analytics %}
  93. {% include "partials/integrations/analytics.html" %}
  94. {% endif %}
  95. {% endblock %}
  96. {% block extrahead %}{% endblock %}
  97. </head>
  98. {% if palette.primary or palette.accent %}
  99. {% set primary = palette.primary | replace(" ", "-") | lower %}
  100. {% set accent = palette.accent | replace(" ", "-") | lower %}
  101. <body dir="{{ lang.t('direction') }}" data-md-color-primary="{{ primary }}" data-md-color-accent="{{ accent }}">
  102. {% else %}
  103. <body dir="{{ lang.t('direction') }}">
  104. {% endif %}
  105. <svg class="md-svg">
  106. <defs>
  107. {% set platform = config.extra.repo_icon or config.repo_url %}
  108. {% if "github" in platform %}
  109. {% include "assets/images/icons/github.f0b8504a.svg" %}
  110. {% elif "gitlab" in platform %}
  111. {% include "assets/images/icons/gitlab.6dd19c00.svg" %}
  112. {% elif "bitbucket" in platform %}
  113. {% include "assets/images/icons/bitbucket.1b09e088.svg" %}
  114. {% endif %}
  115. </defs>
  116. </svg>
  117. <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
  118. <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
  119. <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
  120. {% if page.toc | first is defined %}
  121. <a href="{{ (page.toc | first).url }}" tabindex="0" class="md-skip">
  122. {{ lang.t('skip.link.title') }}
  123. </a>
  124. {% endif %}
  125. {% block header %}
  126. {% include "partials/header.html" %}
  127. {% endblock %}
  128. <div class="md-container">
  129. {% block hero %}
  130. {% if page and page.meta and page.meta.hero %}
  131. {% include "partials/hero.html" with context %}
  132. {% endif %}
  133. {% endblock %}
  134. {% if feature.tabs %}
  135. {% include "partials/tabs.html" %}
  136. {% endif %}
  137. <main class="md-main" role="main">
  138. <div class="md-main__inner md-grid" data-md-component="container">
  139. {% block site_nav %}
  140. {% if nav %}
  141. <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
  142. <div class="md-sidebar__scrollwrap">
  143. <div class="md-sidebar__inner">
  144. {% include "partials/nav.html" %}
  145. </div>
  146. </div>
  147. </div>
  148. {% endif %}
  149. {% if page.toc %}
  150. <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
  151. <div class="md-sidebar__scrollwrap">
  152. <div class="md-sidebar__inner">
  153. {% include "partials/toc.html" %}
  154. </div>
  155. </div>
  156. </div>
  157. {% endif %}
  158. {% endblock %}
  159. <div class="md-content">
  160. <article class="md-content__inner md-typeset">
  161. {% block content %}
  162. {% if page.edit_url %}
  163. <a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-icon md-content__icon">&#xE3C9;</a>
  164. {% endif %}
  165. {% if not "\x3ch1" in page.content %}
  166. <h1>{{ page.title | default(config.site_name, true)}}</h1>
  167. {% endif %}
  168. {{ page.content }}
  169. {% block source %}
  170. {% if page and page.meta and page.meta.source %}
  171. <h2 id="__source">{{ lang.t("meta.source") }}</h2>
  172. {% set repo = config.repo_url %}
  173. {% if repo | last == "/" %}
  174. {% set repo = repo[:-1] %}
  175. {% endif %}
  176. {% set path = page.meta.path | default([""]) %}
  177. {% set file = page.meta.source %}
  178. <a href="{{ [repo, path, file] | join('/') }}" title="{{ file }}" class="md-source-file">
  179. {{ file }}
  180. </a>
  181. {% endif %}
  182. {% endblock %}
  183. {% if page and page.meta and (
  184. page.meta.git_revision_date_localized or
  185. page.meta.revision_date
  186. ) %}
  187. {% set label = lang.t("source.revision.date") %}
  188. <hr>
  189. <div class="md-source-date">
  190. <small>
  191. {% if page.meta.git_revision_date_localized %}
  192. {{ label }}: {{ page.meta.git_revision_date_localized }}
  193. {% elif page.meta.revision_date %}
  194. {{ label }}: {{ page.meta.revision_date }}
  195. {% endif %}
  196. </small>
  197. </div>
  198. {% endif %}
  199. {% endblock %}
  200. {% block disqus %}
  201. {% include "partials/integrations/disqus.html" %}
  202. {% endblock %}
  203. </article>
  204. </div>
  205. </div>
  206. </main>
  207. {% block footer %}
  208. {% include "partials/footer.html" %}
  209. {% endblock %}
  210. </div>
  211. {% block scripts %}
  212. <script src="{{ 'assets/javascripts/application.df00da5d.js' | url }}"></script>
  213. {% if lang.t("search.language") != "en" %}
  214. {% set languages = lang.t("search.language").split(",") %}
  215. {% if languages | length and languages[0] != "" %}
  216. {% set path = "assets/javascripts/lunr/" %}
  217. <script src="{{ (path ~ 'lunr.stemmer.support.js') | url }}"></script>
  218. {% for language in languages | map("trim") %}
  219. {% if language != "en" %}
  220. {% if language == "ja" %}
  221. <script src="{{ (path ~ 'tinyseg.js') | url }}"></script>
  222. {% endif %}
  223. {% if language in ("ar", "da", "de", "es", "fi", "fr", "hu", "it", "ja", "nl", "no", "pt", "ro", "ru", "sv", "th", "tr", "vi") %}
  224. <script src="{{ (path ~ 'lunr.' ~ language ~ '.js') | url }}"></script>
  225. {% endif %}
  226. {% endif %}
  227. {% endfor %}
  228. {% if languages | length > 1 %}
  229. <script src="{{ (path ~ 'lunr.multi.js') | url }}"></script>
  230. {% endif %}
  231. {% endif %}
  232. {% endif %}
  233. <script>app.initialize({version:"{{ mkdocs_version }}",url:{base:"{{ base_url }}"}})</script>
  234. {% for path in config["extra_javascript"] %}
  235. <script src="{{ path | url }}"></script>
  236. {% endfor %}
  237. {% endblock %}
  238. </body>
  239. </html>