gen_docu: put hrules between nodes, separate flags by commas
authorMatthias Braun <matze@braunis.de>
Thu, 8 Dec 2011 13:39:22 +0000 (14:39 +0100)
committerMatthias Braun <matze@braunis.de>
Thu, 8 Dec 2011 17:05:43 +0000 (18:05 +0100)
scripts/gen_docu.py
scripts/style.css

index f747af3..4415954 100755 (executable)
@@ -84,8 +84,12 @@ docu_template = env.from_string(
                                        {% endfor %}
                                        {% endif %}
                                        </dl>
+                                       {% set comma = joiner(", ") %}
                                        <h5>Flags</h5>
-                                       {% for flag in node.flags %} {{flag}} {% endfor %}
+                                       {% for flag in node.flags -%}
+                                               {{comma()}}{{flag}}
+                                       {%- endfor %}
+                                       <hr/>
                                </div>
                                {% endfor %}
                        </div></div>
index 53927f2..2fbc5f7 100644 (file)
@@ -82,6 +82,12 @@ div.footer a {
        color: #888;
 }
 
+div.section hr {
+       margin-top: 30px;
+       text-align: center;
+       width: 95%;
+}
+
 a {
        color: #aa0000;
        text-decoration: underline;