File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- # -*- coding: UTF -8 -*-
1
+ # -*- coding: utf -8 -*-
2
2
import codecs
3
3
import os
4
4
import re
14
14
multiimage = re .compile ('(.*?)(_\d\d){1,2}' )
15
15
16
16
# generate a thumbnail gallery of examples
17
- gallery_template = """\
17
+ gallery_template = u """\
18
18
{{% extends "layout.html" %}}
19
19
{{% set title = "Thumbnail gallery" %}}
20
20
35
35
{{% endblock %}}
36
36
"""
37
37
38
- header_template = """\
38
+ header_template = u """\
39
39
<div class="section" id="{section}">
40
40
<h4>
41
41
{title}<a class="headerlink" href="#{section}" title="Permalink to this headline">¶</a>
48
48
</figure>
49
49
"""
50
50
51
- toc_template = """\
51
+ toc_template = u """\
52
52
<li><a class="reference internal" href="#{section}">{title}</a></li>"""
53
53
54
54
@@ -133,10 +133,10 @@ def gen_gallery(app, doctree):
133
133
warnings .warn ("No thumbnails were found in %s" % subdir )
134
134
135
135
# Close out the <div> opened up at the top of this loop
136
- rows .append ("</div>" )
136
+ rows .append (u "</div>" )
137
137
138
- content = gallery_template .format (toc = '\n ' .join (toc_rows ),
139
- gallery = '\n ' .join (rows ))
138
+ content = gallery_template .format (toc = u '\n ' .join (toc_rows ),
139
+ gallery = u '\n ' .join (rows ))
140
140
141
141
# Only write out the file if the contents have actually changed.
142
142
# Otherwise, this triggers a full rebuild of the docs
You can’t perform that action at this time.
0 commit comments