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>{%
|
2016-07-22 17:47:09 +02:00
|
|
|
if item.children %}<ul>{{ loop(item.children) }}</ul>{% endif %}</li>
|
2015-12-19 14:52:17 +01:00
|
|
|
{% 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' %}
|
2016-07-22 17:47:09 +02:00
|
|
|
<li>Method of {{ get_doc_link(this.parent) }}</li>
|
2015-12-19 14:52:17 +01:00
|
|
|
{% elif this.type == 'property' %}
|
2016-07-22 17:47:09 +02:00
|
|
|
<li>Property of {{ get_doc_link(this.parent) }}</li>
|
2015-12-19 14:52:17 +01:00
|
|
|
{% elif this.type == 'operator' %}
|
2016-07-22 17:47:09 +02:00
|
|
|
<li>Operator of {{ get_doc_link(this.parent) }}</li>
|
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="{{ (
|
2022-02-27 18:15:38 +01:00
|
|
|
'/docs/api/templates/globals/' ~ this.template_var|lower|replace('_', '-') ~ '/')|url
|
2016-07-22 17:47:09 +02:00
|
|
|
}}"><code>{{ this.template_var }}</code></a></li>
|
2015-12-19 14:52:17 +01:00
|
|
|
{% endif %}
|
2015-12-24 20:54:55 +01:00
|
|
|
{% if this.version_added %}
|
2016-07-22 17:47:09 +02:00
|
|
|
<li>New in Lektor Version <em>{{ this.version_added }}</em></li>
|
2015-12-24 20:54:55 +01:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2015-12-19 14:52:17 +01:00
|
|
|
|
|
|
|
{{ this.body }}
|
2018-06-28 23:30:56 +02:00
|
|
|
{% if this.parent._slug == 'events' %}
|
|
|
|
<br>
|
|
|
|
<p>
|
|
|
|
<a href="{{ ('/plugins/tag/' ~ this._slug ~ '/')|url }}" class="ref">Plugins That Use This Event</a>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2015-12-19 14:52:17 +01:00
|
|
|
|
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 %}
|