1
0
mirror of https://github.com/minio/docs.git synced 2025-08-08 01:43:18 +03:00
Files
docs/source/_templates/layout.html
2020-09-21 19:33:11 -04:00

87 lines
2.7 KiB
HTML

{# Import the theme's layout. #}
{% extends "!layout.html" %}
{# Custom CSS overrides #}
{# Override content block #}
{%- macro miniosidebar() %}
{%- if render_sidebar %}
<div class="sphinxsidebarwrapper" role="navigation">
{%- block sidebarlogo %}
{%- if logo %}
<p class="logo"><a href="{{ pathto(master_doc)|e }}">
<img class="logo" src="{{ pathto('_static/' + logo, 1)|e }}" 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 %}
{%- block sidebarrel %}
{%- include "relations.html" %}
{%- endblock %}
{%- block sidebarsourcelink %}
{%- include "sourcelink.html" %}
{%- endblock %}
{%- if customsidebar %}
{%- include customsidebar %}
{%- endif %}
{%- block sidebarsearch %}
{%- include "searchbox.html" %}
{%- endblock %}
{%- endif %}
</div>
{%- endif %}
{%- endmacro %}
{%- block header %}
<nav class="navigation">
<a href="https://min.io">
<img class="logo" src="{{ pathto('_static/docs-logo.svg',1) }}" alt="Logo"/>
</a>
</nav>
{%- endblock %}
{%- block content %}
<div class="left column">
<button class="sphinxsidebarbutton button-collapse">Collapse x</button>
{{ miniosidebar() }}
</div>
<div class="flexwrapper">
<div class="center column">
<div class="body">
{% block alertbar -%}
<div class="alert alert-info">
<span class="alert-message">
<p>Welcome to the upcoming version of the MinIO Documentation!
The content of these pages may change at any time.
If you can't find what you're looking for, check our
<a href="https://docs.min.io"> legacy documentation</a>.
Thank you for your patience.
</p>
</span>
</div>
{% endblock %}
{% block body %} {% endblock %}
<div class="footer">
&copy;{{ copyright }}
</div>
</div>
</div>
<div class="right column">
<div id=localtoc class=localtoc></div>
</div>
</div>
{%- endblock %}
{%- block footer %}{%- endblock %}