2015-12-19 14:52:17 +01:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% from "macros/docs.html" import get_doc_icon, get_doc_link, get_doc_header %}
|
|
|
|
{% block title %}{{ (this.title ~ ' | ') if this.title != 'Documentation' }}Documentation{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3">
|
2015-12-20 21:49:12 +01:00
|
|
|
<ul class="tree-nav nocontent">
|
2015-12-19 14:52:17 +01:00
|
|
|
<li{% if this._path == '/docs' %} class="active"{% endif
|
|
|
|
%}><a href="{{ '/docs'|url }}">Welcome</a></li>
|
|
|
|
{% set docs = site.get('/docs') %}
|
|
|
|
{% for child in docs.children recursive %}
|
|
|
|
<li{% if this._path == child._path %} class="active"{% endif
|
|
|
|
%}>{{ get_doc_link(child) }}
|
|
|
|
{% if this.is_child_of(child) %}
|
|
|
|
<ul>{{ loop(child.children) }}</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{% if this.body.toc %}
|
|
|
|
<div class="visible-md-block visible-lg-block">
|
|
|
|
<h4>This Page</h4>
|
|
|
|
<ul class="toc">
|
|
|
|
{% for item in this.body.toc recursive %}
|
|
|
|
<li><a href="#{{ item.anchor }}">{{ item.title }}</a>{%
|
|
|
|
if item.children %}<ul>{{ loop(item.children) }}</ul>{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-9 doc-styling">
|
|
|
|
{{ get_doc_header(this) }}
|
|
|
|
|
2015-12-24 20:54:55 +01:00
|
|
|
<ul class=page-meta>
|
2015-12-19 14:52:17 +01:00
|
|
|
{% if this.type == 'method' %}
|
2015-12-24 20:54:55 +01:00
|
|
|
<li>Method of {{ get_doc_link(this.parent) }}
|
2015-12-19 14:52:17 +01:00
|
|
|
{% elif this.type == 'property' %}
|
2015-12-24 20:54:55 +01:00
|
|
|
<li>Property of {{ get_doc_link(this.parent) }}
|
2015-12-19 14:52:17 +01:00
|
|
|
{% elif this.type == 'operator' %}
|
2015-12-24 20:54:55 +01:00
|
|
|
<li>Operator of {{ get_doc_link(this.parent) }}
|
2015-12-19 14:52:17 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if this.template_var %}
|
2015-12-24 20:54:55 +01:00
|
|
|
<li>Template variable: <a href="{{ (
|
2015-12-19 14:52:17 +01:00
|
|
|
'/docs/api/templates/globals/' ~ this.template_var|lower ~ '/')|url
|
|
|
|
}}"><code>{{ this.template_var }}</code></a>
|
|
|
|
{% endif %}
|
2015-12-24 20:54:55 +01:00
|
|
|
{% if this.version_added %}
|
|
|
|
<li>New in Lektor Version <em>{{ this.version_added }}</em>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2015-12-19 14:52:17 +01:00
|
|
|
|
|
|
|
{{ this.body }}
|
|
|
|
|
2015-12-24 20:54:55 +01:00
|
|
|
{% if this.version_history %}
|
|
|
|
<div class="version-info version-info-collapsed">
|
|
|
|
<h2>Version Info</h2>
|
|
|
|
<div class="contents">
|
|
|
|
{{ this.version_history }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-12-19 14:52:17 +01:00
|
|
|
{% if this.children %}
|
2015-12-29 12:27:57 +01:00
|
|
|
<div class="child-pages nocontent">
|
2015-12-19 14:52:17 +01:00
|
|
|
{% for cols in this.children|batch(2) %}
|
|
|
|
<div class="row">
|
|
|
|
{% for page in cols if page %}
|
|
|
|
<div class="col-md-6 child">
|
|
|
|
<h4>
|
|
|
|
{{ get_doc_icon(page) }}
|
|
|
|
{{ get_doc_link(page) }}
|
|
|
|
</h4>
|
|
|
|
{% if page.summary %}
|
|
|
|
<p class="summary">{{ page.summary }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if this.allow_comments %}
|
|
|
|
<div class="comment-box">
|
|
|
|
<h2>Comments</h2>
|
|
|
|
{{ render_disqus_comments() }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|