documentation.html 1.71 KB
Newer Older
Floreal Cabanettes's avatar
Floreal Cabanettes committed
1
2
3
{% extends 'base.html' %}
{% block scripts %}
    {{ super() }}
4
5
6
7
8
    {% if debug %}
        <script src="{{ url_for('static', filename='js/dgenies.documentation.js') }}" type="text/JavaScript"></script>
    {% else %}
        <script src="{{ url_for('static', filename='js/dgenies.documentation.min.js') }}" type="text/JavaScript"></script>
    {% endif %}
Floreal Cabanettes's avatar
Floreal Cabanettes committed
9
10
11
12
13
14
15
16
17
18
19
20
    <style>
        #plan-back, #body {
            display: inline-block;
            vertical-align: top;
            width: 290px;
            padding-left: 10px;

        }
        #plan-back {
            margin-top: 30px;
            background: #515151;
            height: 100%;
21
            overflow: auto;
Floreal Cabanettes's avatar
Floreal Cabanettes committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
            position: fixed;
        }
        #plan {
            width: 300px;
            padding-top: 20px;
            margin-left: -30px;
        }
        #plan ul {
            list-style: none;
            margin-left: -10px;
        }
        #plan a {
            color: #ffffff;
            font-weight: bold;
        }
37
38
39
40
        h4 {
            font-weight: bold !important;
            margin-top: 25px !important;
        }
41
        {% if toc %}
Floreal Cabanettes's avatar
Floreal Cabanettes committed
42
43
44
45
        #body {
            width: calc(100% - 300px);
            margin-left: 295px !important;
        }
46
47
48
49
50
51
        {% else %}
        #body {
            width: calc(100% - 300px);
            margin-left: 145px !important;
        }
        {% endif %}
Floreal Cabanettes's avatar
Floreal Cabanettes committed
52
    </style>
53
54
55
56
{% endblock %}
{% block onload %}
    {{ super() }}
    dgenies.documentation.init();
Floreal Cabanettes's avatar
Floreal Cabanettes committed
57
58
59
{% endblock %}
{% block content %}

60
61
62
63
64
    {% if toc %}
        <div id="plan-back">
            <div id="plan">
                {{ toc }}
            </div>
Floreal Cabanettes's avatar
Floreal Cabanettes committed
65
        </div>
66
    {% endif %}
Floreal Cabanettes's avatar
Floreal Cabanettes committed
67
68

    <div id="body">
Floreal Cabanettes's avatar
Floreal Cabanettes committed
69
        {{ content | safe }}
Floreal Cabanettes's avatar
Floreal Cabanettes committed
70
71
72
    </div>

{% endblock %}