mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
cc30f08f6e
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4261 GitOrigin-RevId: 3d80068acdd61b5350fc36ec3444db47508f9c09
238 lines
9.6 KiB
HTML
238 lines
9.6 KiB
HTML
{#
|
|
basic/layout.html
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
Master layout template for Sphinx themes.
|
|
|
|
:copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
|
:license: BSD, see LICENSE for details.
|
|
#}
|
|
{%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %}
|
|
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
|
|
{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and
|
|
(sidebars != []) %}
|
|
{%- set url_root = pathto('', 1) %}
|
|
|
|
{% set SEGMENT_WRITE_KEY = 'FRKElp5cyMax6GAdM8OVyNMIFVppgEgp' %}
|
|
{%- if CURRENT_ENV == "production" %}
|
|
{% set SEGMENT_WRITE_KEY = 'RQXoHRpNcmBKllUDihjDjupGv4AHn5TB' %}
|
|
{%- endif %}
|
|
|
|
{# XXX necessary? #}
|
|
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
|
|
{%- if not embedded and docstitle %}
|
|
{%- set titlesuffix = " | "|safe + docstitle|e %}
|
|
{%- else %}
|
|
{%- set titlesuffix = "" %}
|
|
{%- endif %}
|
|
|
|
{%- macro relbar() %}
|
|
<div class="related" role="navigation" aria-label="related navigation">
|
|
<h3>{{ _('Navigation') }}</h3>
|
|
<ul>
|
|
{%- for rellink in rellinks %}
|
|
<li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}>
|
|
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
|
|
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
|
|
{%- if not loop.first %}{{ reldelim2 }}{% endif %}</li>
|
|
{%- endfor %}
|
|
{%- block rootrellink %}
|
|
<li class="nav-item nav-item-0"><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}</li>
|
|
{%- endblock %}
|
|
{%- for parent in parents %}
|
|
<li class="nav-item nav-item-{{ loop.index }}"><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
|
|
{%- endfor %}
|
|
{%- block relbaritems %} {% endblock %}
|
|
</ul>
|
|
</div>
|
|
{%- endmacro %}
|
|
|
|
{%- macro sidebar() %}
|
|
{%- if render_sidebar %}
|
|
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|
<div class="sphinxsidebarwrapper">
|
|
{%- block sidebarlogo %}
|
|
{%- if logo %}
|
|
<p class="logo"><a href="{{ pathto(master_doc) }}">
|
|
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
|
|
</a></p>
|
|
{%- endif %}
|
|
{%- endblock %}
|
|
{%- if sidebars != None %}
|
|
{#- new style sidebar: explicitly include/exclude templates #}
|
|
{%- for sidebartemplate in sidebars %}
|
|
{%- include sidebartemplate %}
|
|
{%- endfor %}
|
|
{%- else %}
|
|
{#- old style sidebars: using blocks -- should be deprecated #}
|
|
{%- block sidebartoc %}
|
|
{%- include "localtoc.html" %}
|
|
{%- endblock %}
|
|
{%- endif %}
|
|
</div>
|
|
</div>
|
|
{%- endif %}
|
|
{%- endmacro %}
|
|
|
|
{%- macro script() %}
|
|
<script type="text/javascript">
|
|
var DOCUMENTATION_OPTIONS = {
|
|
URL_ROOT: '{{ url_root }}',
|
|
VERSION: '{{ release|e }}',
|
|
COLLAPSE_INDEX: false,
|
|
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
|
|
HAS_SOURCE: {{ has_source|lower }},
|
|
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
|
|
};
|
|
</script>
|
|
{%- for scriptfile in script_files %}
|
|
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
|
{%- endfor %}
|
|
{%- for deferred_scriptfile in deferred_script_files %}
|
|
<script defer type="text/javascript" src="{{ pathto(deferred_scriptfile, 1) }}"></script>
|
|
{%- endfor %}
|
|
{%- endmacro %}
|
|
|
|
{%- macro css() %}
|
|
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
|
|
{%- for css in css_files %}
|
|
{%- if css|attr("rel") %}
|
|
<link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}" type="text/css"{% if css.title is not none %} title="{{ css.title }}"{% endif %} />
|
|
{%- else %}
|
|
<link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" />
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{%- endmacro %}
|
|
|
|
{%- if html_tag %}
|
|
{{ html_tag }}
|
|
{%- else %}
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
|
{%- endif %}
|
|
<head>
|
|
{%- if not html5_doctype %}
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
|
{%- endif %}
|
|
{%- if use_meta_charset or html5_doctype %}
|
|
<meta charset="{{ encoding }}" />
|
|
{%- else %}
|
|
<meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" />
|
|
{%- endif %}
|
|
{{- metatags }}
|
|
{%- if pagename == "404" %}
|
|
<base href="/docs/{{ version }}/{{ pagename }}">
|
|
{% endif %}
|
|
{%- block htmltitle %}
|
|
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
|
|
<meta name="title" content="{{ title|striptags|e }}{{ titlesuffix }}" />
|
|
|
|
{%- if RELEASE_MODE != "production" %}
|
|
<meta name="robots" content="noindex">
|
|
{%- endif %}
|
|
|
|
{%- endblock %}
|
|
{%- block csss %}
|
|
{{- css() }}
|
|
{%- endblock %}
|
|
{%- if not embedded %}
|
|
{%- block scripts %}
|
|
{{- script() }}
|
|
{%- endblock %}
|
|
<!-- Google Tag Manager -->
|
|
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
|
})(window,document,'script','dataLayer','GTM-PF5MQ2Z');</script>
|
|
<!-- End Google Tag Manager -->
|
|
<!-- Segment Analytics -->
|
|
<script>
|
|
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="{{SEGMENT_WRITE_KEY}}";;analytics.SNIPPET_VERSION="4.15.3";
|
|
analytics.load("{{SEGMENT_WRITE_KEY}}");
|
|
analytics.page();
|
|
}}();
|
|
</script>
|
|
<!-- End Segment Analytics -->
|
|
{%- if use_opensearch %}
|
|
<link rel="search" type="application/opensearchdescription+xml"
|
|
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
|
|
href="{{ pathto('_static/opensearch.xml', 1) }}"/>
|
|
{%- endif %}
|
|
{%- if favicon %}
|
|
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
|
|
{%- endif %}
|
|
{%- endif %}
|
|
{%- block linktags %}
|
|
{%- if hasdoc('about') %}
|
|
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
|
|
{%- endif %}
|
|
{%- if hasdoc('search') %}
|
|
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
|
|
{%- endif %}
|
|
{%- if hasdoc('copyright') %}
|
|
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
|
|
{%- endif %}
|
|
{%- if next %}
|
|
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
|
|
{%- endif %}
|
|
{%- if prev %}
|
|
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
|
|
{%- endif %}
|
|
{%- endblock %}
|
|
{%- block extrahead %} {% endblock %}
|
|
</head>
|
|
{%- block body_tag %}<body>{% endblock %}
|
|
{%- block header %}{% endblock %}
|
|
|
|
{%- block relbar1 %}{{ relbar() }}{% endblock %}
|
|
|
|
{%- block content %}
|
|
{%- block sidebar1 %} {# possible location for sidebar #} {% endblock %}
|
|
|
|
<!-- Google Tag Manager (noscript) -->
|
|
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PF5MQ2Z"
|
|
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
|
<!-- End Google Tag Manager (noscript) -->
|
|
<div class="document">
|
|
{%- block document %}
|
|
<div class="documentwrapper">
|
|
{%- if render_sidebar %}
|
|
<div class="bodywrapper">
|
|
{%- endif %}
|
|
<div class="body" role="main">
|
|
{% block body %} {% endblock %}
|
|
</div>
|
|
{%- if render_sidebar %}
|
|
</div>
|
|
{%- endif %}
|
|
</div>
|
|
{%- endblock %}
|
|
|
|
{%- block sidebar2 %}{{ sidebar() }}{% endblock %}
|
|
<div class="clearer"></div>
|
|
</div>
|
|
{%- endblock %}
|
|
|
|
{%- block relbar2 %}{{ relbar() }}{% endblock %}
|
|
|
|
{%- block footer %}
|
|
<div class="footer" role="contentinfo">
|
|
{%- if show_copyright %}
|
|
{%- if hasdoc('copyright') %}
|
|
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
|
|
{%- else %}
|
|
{% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
|
|
{%- endif %}
|
|
{%- endif %}
|
|
{%- if last_updated %}
|
|
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
|
|
{%- endif %}
|
|
{%- if show_sphinx %}
|
|
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
|
|
{%- endif %}
|
|
</div>
|
|
{%- endblock %}
|
|
</body>
|
|
</html>
|