view docs/templates/doc.html @ 264:74bea91c9630

bake: Don't store internal config values in the bake record. We sometimes store actual objects in the page config (like for instance page linkers) and we don't want that to be pickled.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 24 Feb 2015 23:18:23 -0800
parents 26e59f837558
children a5d21fac8e3f
line wrap: on
line source

{% extends "default.html" %}

{% block header %}
<header class="documentation">
    <h1>{{ page.title }}</h1>
</header>
{% endblock %}

{% block content %}
<div class="container">
    <section class="col-md-8">
    {{ content|raw }}
    </section>
    <aside class="col-md-4">
        <ul class="doc-level1">
        {% for p in family.root %}
        {% if p.is_dir and p.is_page %}
            <li><a href="{{p.url}}">{{p.title}}</a>
                <ul class="doc-level2">
                {% for p2 in p.children %}
                    <li><a href="{{p2.url}}">{{p2.title}}</a></li>
                {% endfor %}
                </ul>
            </li>
        {% elif not p.is_dir and p.order %}
            <li><a href="{{p.url}}">{{p.title}}</a></li>
        {% endif %}
        {% endfor %}
        </ul>
    </aside>
</div>
{% endblock %}