<!DOCTYPE html>
<!-- Built on Frappe. https://frappe.io/ -->
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{% block title %} {{ title }} {% endblock %}</title>
	<meta name="generator" content="frappe">
    <link type="text/css" rel="stylesheet" href="{{ docs_base_url }}/assets/css/bootstrap.css">
    <link type="text/css" rel="stylesheet" href="{{ docs_base_url }}/assets/css/hljs.css">
    <link type="text/css" rel="stylesheet" href="{{ docs_base_url }}/assets/css/font-awesome.css">
    <link type="text/css" rel="stylesheet" href="{{ docs_base_url }}/assets/css/octicons/octicons.css">
    <link type="text/css" rel="stylesheet" href="{{ docs_base_url }}/assets/css/docs.css">

    {% block favicon %}
	<link rel="shortcut icon"
		href="{{ favicon or (docs_base_url + "/assets/img/favicon.png") }}"
		type="image/x-icon">
	<link rel="icon"
		href="{{ favicon or (docs_base_url + "/assets/img/favicon.png") }}"
		type="image/x-icon">
    {% endblock %}

	{%- block head -%}
		{% if meta_block is defined -%}
		{{ meta_block }}
		{%- endif %}

		{% if head_html is defined -%}
		{{ head_html or "" }}
		{%- endif %}

	    {%- block head_include %}{{ head_include or "" }}{% endblock -%}

		{%- block style %}{%- endblock -%}
	{%- endblock -%}
</head>
<body data-path="{{ path }}">
	<div class="main-section">
		<div>
			{%- block banner -%}
			{% include "templates/includes/banner_extension.html" ignore missing %}
				{% if banner_html -%}
				<header class="container">{{ banner_html or "" }}</header>
				{%- endif %}
			{%- endblock -%}

			{%- block navbar -%}
                {% include "templates/includes/navbar/navbar.html" %}
            {%- endblock -%}
            <div class="hero-and-content">
                <div data-html-block="hero">
				{%- block hero -%}{%- endblock -%}
                </div>
                <div class="container" data-html-block="content">
                {% block content %}{% endblock %}
				<!-- edit-link -->
                </div>
            </div>
			<footer class="docs-footer">
				<div class="container">
				{%- if footer is defined -%}{{ footer }}{%- endif -%}

                <div class="built-with-frappe text-center">
                    <img class="frappe-bird" src="{{ docs_base_url }}/assets/img/frappe-bird-grey.svg">
                    <h3>By {{ app.publisher }}</h3>
                </div>
                <div class="text-center">
                    <ul class="list-unstyled">
                        <li>
                            <a href="{{ app.source_link }}">
                            Source</a>
                        </li>
                        <li>
                            <a href="{{ app.source_link }}/issues">
                            Issues</a>
                        </li>
                        <li>
                            <a href="{{ docs_base_url }}/license.html">
                            License</a>
                        </li>
                        <li>
                            <a href="https://discuss.erpnext.com">
                            Forum</a>
                        </li>
                        <li>
                            <a href="https://frappe.io/apps">
                            Frappe Apps</a>
                        </li>
                    </ul>
                </div>

            </div>
			</footer>
		</div>
	</div>

	<script type="text/javascript" src="{{ docs_base_url }}/assets/js/jquery.min.js"></script>
	<script type="text/javascript" src="{{ docs_base_url }}/assets/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="{{ docs_base_url }}/assets/js/highlight.pack.js"></script>
	<script type="text/javascript" src="{{ docs_base_url }}/assets/js/docs.js"></script>

	<!-- js should be loaded in body! -->
	<script>
        window.docs_base_url = "{{ docs_base_url }}";
    </script>
	{%- block script %}{%- endblock %}

	<!-- csrf_token -->
    {%- block body_include %}{{ body_include or "" }}{% endblock -%}
</body>
</html>
