Mercurial > piecrust2
annotate docs/templates/doc.html @ 924:1bb704434ee2
formatting: Remove segment parts, you can use template tags instead.
Segment parts were used to switch formatters insides a given content segment,
but that's also achievable with template tags like `pcformat` in Jinja to
some degree. It's not totally the same but removing it simplifies the code
and improves performance.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 01 Oct 2017 20:36:04 -0700 |
parents | 61d53d2163d6 |
children | 94d7d5e38571 |
rev | line source |
---|---|
503
61d53d2163d6
docs: Start a proper "code/API" section.
Ludovic Chabant <ludovic@chabant.com>
parents:
353
diff
changeset
|
1 {% extends "section-page.html" %} |
294
f51b69ad09ae
docs: Add the ability to use Pygments highlighting.
Ludovic Chabant <ludovic@chabant.com>
parents:
276
diff
changeset
|
2 |
243
26e59f837558
docs: Add embryo of a documentation website.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
3 {% block header %} |
26e59f837558
docs: Add embryo of a documentation website.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
4 <header class="documentation"> |
26e59f837558
docs: Add embryo of a documentation website.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
5 <h1>{{ page.title }}</h1> |
26e59f837558
docs: Add embryo of a documentation website.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
6 </header> |
26e59f837558
docs: Add embryo of a documentation website.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
7 {% endblock %} |
26e59f837558
docs: Add embryo of a documentation website.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
8 |