base.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. {%- block site_meta %}
  6. <meta charset="utf-8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. {% if page and page.is_homepage %}<meta name="description" content="{{ config.site_description }}">{% endif %}
  10. {% if config.site_author %}<meta name="author" content="{{ config.site_author }}">{% endif %}
  11. {% if page and page.canonical_url %}<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
  12. {% if config.site_favicon %}<link rel="shortcut icon" href="{{ config.site_favicon|url }}">
  13. {% else %}<link rel="shortcut icon" href="{{ 'img/favicon.ico'|url }}">{% endif %}
  14. {%- endblock %}
  15. {%- block htmltitle %}
  16. <title>{% if page and page.title and not page.is_hompage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
  17. {%- endblock %}
  18. {%- block styles %}
  19. <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
  20. <link rel="stylesheet" href="{{ 'css/theme.css'|url }}" type="text/css" />
  21. <link rel="stylesheet" href="{{ 'css/theme_extra.css'|url }}" type="text/css" />
  22. {%- if config.theme.highlightjs %}
  23. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/monokai-sublime.min.css">
  24. {%- endif %}
  25. {%- for path in config['extra_css'] %}
  26. <link href="{{ path|url }}" rel="stylesheet">
  27. {%- endfor %}
  28. {%- endblock %}
  29. {%- block libs %}
  30. {% if page %}
  31. <script>
  32. // Current page data
  33. var mkdocs_page_name = {{ page.title|tojson|safe }};
  34. var mkdocs_page_input_path = {{ page.file.src_path|string|tojson|safe }};
  35. var mkdocs_page_url = {{ page.abs_url|tojson|safe }};
  36. </script>
  37. {% endif %}
  38. <script src="{{ 'js/jquery-2.1.1.min.js'|url }}" defer></script>
  39. <script src="{{ 'js/modernizr-2.8.3.min.js'|url }}" defer></script>
  40. {%- if config.theme.highlightjs %}
  41. <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
  42. {%- for lang in config.theme.hljs_languages %}
  43. <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{lang}}.min.js"></script>
  44. {%- endfor %}
  45. <script>hljs.initHighlightingOnLoad();</script>
  46. {%- endif %}
  47. {%- endblock %}
  48. {%- block extrahead %} {% endblock %}
  49. {%- block analytics %}
  50. {% if config.google_analytics %}
  51. <!-- Global site tag (gtag.js) - Google Analytics -->
  52. <script async src="https://www.googletagmanager.com/gtag/js?id={{ config.google_analytics[0] }}"></script>
  53. <script>
  54. window.dataLayer = window.dataLayer || [];
  55. function gtag(){dataLayer.push(arguments);}
  56. gtag('js', new Date());
  57. gtag('config', '{{ config.google_analytics[0] }}');
  58. </script>
  59. {% endif %}
  60. {%- endblock %}
  61. </head>
  62. <body class="wy-body-for-nav" role="document">
  63. <div class="wy-grid-for-nav">
  64. {# SIDE NAV, TOGGLES ON MOBILE #}
  65. <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
  66. <div class="wy-side-scroll">
  67. <div class="wy-side-nav-search">
  68. {%- block site_name %}
  69. <a href="{{ nav.homepage.url|url }}" class="home-link"><img src="https://formbuilder.online/assets/img/fb-logo.svg" alt="jQuery formBuilder"> {{ config.site_name }}</a>
  70. {%- endblock %}
  71. {%- block search_button %}
  72. {% if 'search' in config['plugins'] %}{% include "searchbox.html" %}{% endif %}
  73. {%- endblock %}
  74. </div>
  75. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  76. {%- block site_nav %}
  77. {%- set navlevel = 1 %}
  78. {%- for nav_item in nav %}
  79. {%- if nav_item.is_section %}
  80. <p class="caption"><span class="caption-text">{{ nav_item.title }}</span></p>
  81. <ul{% if nav_item.active %} class="current"{% endif %}>
  82. {%- for nav_item in nav_item.children %}
  83. <li class="toctree-l{{ navlevel }}{% if nav_item.active %} current{% endif %}">
  84. {%- include 'nav.html' %}
  85. </li>
  86. {%- endfor %}
  87. </ul>
  88. {%- elif config.theme.include_homepage_in_sidebar or (not nav_item == nav.homepage) %}
  89. <ul{% if nav_item.active %} class="current"{% endif %}>
  90. <li class="toctree-l{{ navlevel }}{% if nav_item.active %} current{% endif %}">
  91. {%- include 'nav.html' %}
  92. </li>
  93. </ul>
  94. {%- endif %}
  95. {%- endfor %}
  96. {%- endblock %}
  97. </div>
  98. </div>
  99. </nav>
  100. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  101. {# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
  102. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  103. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  104. <a href="{{ nav.homepage.url|url }}">{{ config.site_name }}</a>
  105. </nav>
  106. {# PAGE CONTENT #}
  107. <div class="wy-nav-content">
  108. <div class="rst-content">
  109. {% include "breadcrumbs.html" %}
  110. <div role="main">
  111. <div class="section">
  112. {% block content %}
  113. {{ page.content }}
  114. {% endblock %}
  115. </div>
  116. </div>
  117. {%- block footer %}
  118. {% include "footer.html" %}
  119. {% endblock %}
  120. </div>
  121. </div>
  122. </section>
  123. </div>
  124. {% include "versions.html" %}
  125. {%- block scripts %}
  126. <script>var base_url = '{{ base_url }}';</script>
  127. <script src="{{ 'js/theme.js'|url }}" defer></script>
  128. {%- for path in config['extra_javascript'] %}
  129. <script src="{{ path|url }}" defer></script>
  130. {%- endfor %}
  131. <script type="text/javascript" defer>
  132. window.onload = function () {
  133. SphinxRtdTheme.Navigation.enable({{ 'true' if config.theme.sticky_navigation else 'false' }});
  134. };
  135. </script>
  136. {%- endblock %}
  137. </body>
  138. </html>
  139. {% if page and page.is_homepage %}
  140. <!--
  141. MkDocs version : {{ mkdocs_version }}
  142. Build Date UTC : {{ build_date_utc }}
  143. -->
  144. {% endif %}