layout.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. {# TEMPLATE VAR SETTINGS #}
  2. {%- set url_root = pathto('', 1) %}
  3. {%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
  4. {%- if not embedded and docstitle %}
  5. {%- set titlesuffix = " — "|safe + docstitle|e %}
  6. {%- else %}
  7. {%- set titlesuffix = "" %}
  8. {%- endif %}
  9. <!DOCTYPE html>
  10. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  11. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  12. <head>
  13. <meta charset="utf-8">
  14. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  15. {% block htmltitle %}
  16. <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
  17. {% endblock %}
  18. {# FAVICON #}
  19. {% if favicon %}
  20. <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
  21. {% endif %}
  22. {# CSS #}
  23. <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
  24. {# JS #}
  25. {% if not embedded %}
  26. <script type="text/javascript">
  27. var DOCUMENTATION_OPTIONS = {
  28. URL_ROOT:'{{ url_root }}',
  29. VERSION:'{{ release|e }}',
  30. COLLAPSE_INDEX:false,
  31. FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
  32. HAS_SOURCE: {{ has_source|lower }}
  33. };
  34. </script>
  35. {%- for scriptfile in script_files %}
  36. <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
  37. {%- endfor %}
  38. {% if use_opensearch %}
  39. <link rel="search" type="application/opensearchdescription+xml" title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}" href="{{ pathto('_static/opensearch.xml', 1) }}"/>
  40. {% endif %}
  41. {% endif %}
  42. {# RTD hosts these file themselves, so just load on non RTD builds #}
  43. {% if not READTHEDOCS %}
  44. <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
  45. <script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
  46. {% endif %}
  47. {# STICKY NAVIGATION #}
  48. {% if theme_sticky_navigation %}
  49. <script type="text/javascript">
  50. jQuery(function () {
  51. SphinxRtdTheme.StickyNav.enable();
  52. });
  53. </script>
  54. {% endif %}
  55. {% for cssfile in css_files %}
  56. <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
  57. {% endfor %}
  58. {%- block linktags %}
  59. {%- if hasdoc('about') %}
  60. <link rel="author" title="{{ _('About these documents') }}"
  61. href="{{ pathto('about') }}"/>
  62. {%- endif %}
  63. {%- if hasdoc('genindex') %}
  64. <link rel="index" title="{{ _('Index') }}"
  65. href="{{ pathto('genindex') }}"/>
  66. {%- endif %}
  67. {%- if hasdoc('search') %}
  68. <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}"/>
  69. {%- endif %}
  70. {%- if hasdoc('copyright') %}
  71. <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}"/>
  72. {%- endif %}
  73. <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}"/>
  74. {%- if parents %}
  75. <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"/>
  76. {%- endif %}
  77. {%- if next %}
  78. <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"/>
  79. {%- endif %}
  80. {%- if prev %}
  81. <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/>
  82. {%- endif %}
  83. {%- endblock %}
  84. {%- block extrahead %} {% endblock %}
  85. <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
  86. <script>
  87. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  88. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  89. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  90. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  91. ga('create', 'UA-55008703-1', 'auto');
  92. ga('send', 'pageview');
  93. </script>
  94. </head>
  95. <body class="wy-body-for-nav" role="document">
  96. <div class="wy-grid-for-nav">
  97. {# SIDE NAV, TOGGLES ON MOBILE #}
  98. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  99. <div class="wy-side-nav-search" style="background-color: #3d3d3d;">
  100. <!--<a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ project }}</a>-->
  101. <!--<a href="http://flatcam.org" class="icon icon-home"> {{ project }}</a>-->
  102. <a href="http://flatcam.org">
  103. <img src="http://flatcam.org/static/images/fcweblogo1.png"
  104. style="height: auto;
  105. width: auto;
  106. border-radius: 0px;
  107. background-color: #3d3d3d;
  108. margin: auto">
  109. </a>
  110. {% include "searchbox.html" %}
  111. </div>
  112. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  113. {% set toctree = toctree(maxdepth=2, collapse=False, includehidden=True) %}
  114. {% if toctree %}
  115. {{ toctree }}
  116. {% else %}
  117. <!-- Local TOC -->
  118. <div class="local-toc">{{ toc }}</div>
  119. {% endif %}
  120. </div>
  121. &nbsp;
  122. </nav>
  123. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  124. {# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
  125. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  126. <i data-toggle="wy-nav-top" class="icon icon-reorder"></i>
  127. <a href="{{ pathto(master_doc) }}">{{ project }}</a>
  128. </nav>
  129. {# PAGE CONTENT #}
  130. <div class="wy-nav-content">
  131. <div class="rst-content">
  132. {% include "breadcrumbs.html" %}
  133. <div role="main">
  134. {% block body %}{% endblock %}
  135. </div>
  136. {% include "footer.html" %}
  137. </div>
  138. </div>
  139. </section>
  140. </div>
  141. {% include "versions.html" %}
  142. </body>
  143. </html>