Skip to content

Commit ce72457

Browse files
hugovkAA-Turner
andauthored
Docs HTML: Remove self-closing tags (#132220)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
1 parent 9a6b702 commit ce72457

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

Doc/conf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -631,12 +631,12 @@
631631
'line_color': '#3776ab',
632632
}
633633
ogp_custom_meta_tags = [
634-
'<meta name="theme-color" content="#3776ab" />',
634+
'<meta name="theme-color" content="#3776ab">',
635635
]
636636
if 'create-social-cards' not in tags: # noqa: F821
637637
# Define a static preview image when not creating social cards
638638
ogp_image = '_static/og-image.png'
639639
ogp_custom_meta_tags += [
640-
'<meta property="og:image:width" content="200" />',
641-
'<meta property="og:image:height" content="200" />',
640+
'<meta property="og:image:width" content="200">',
641+
'<meta property="og:image:height" content="200">',
642642
]

Doc/includes/email-alternative.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
recette
3737
</a> sera sûrement un très bon repas.
3838
</p>
39-
<img src="cid:{asparagus_cid}" />
39+
<img src="cid:{asparagus_cid}">
4040
</body>
4141
</html>
4242
""".format(asparagus_cid=asparagus_cid[1:-1]), subtype='html')

Doc/tools/templates/indexcontent.html

+17-17
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,47 @@ <h1>{{ docstitle|e }}</h1>
1010
<p><strong>{% trans %}Documentation sections:{% endtrans %}</strong></p>
1111
<table class="contentstable" align="center"><tr>
1212
<td width="50%">
13-
<p class="biglink"><a class="biglink" href="{{ pathto("whatsnew/" + version) }}">{% trans %}What's new in Python {{ version }}?{% endtrans %}</a><br/>
13+
<p class="biglink"><a class="biglink" href="{{ pathto("whatsnew/" + version) }}">{% trans %}What's new in Python {{ version }}?{% endtrans %}</a><br>
1414
<span class="linkdescr"> {% trans whatsnew_index=pathto("whatsnew/index") %}Or <a href="{{ whatsnew_index }}">all "What's new" documents since Python 2.0</a>{% endtrans %}</span></p>
15-
<p class="biglink"><a class="biglink" href="{{ pathto("tutorial/index") }}">{% trans %}Tutorial{% endtrans %}</a><br/>
15+
<p class="biglink"><a class="biglink" href="{{ pathto("tutorial/index") }}">{% trans %}Tutorial{% endtrans %}</a><br>
1616
<span class="linkdescr">{% trans %}Start here: a tour of Python's syntax and features{% endtrans %}</span></p>
17-
<p class="biglink"><a class="biglink" href="{{ pathto("library/index") }}">{% trans %}Library reference{% endtrans %}</a><br/>
17+
<p class="biglink"><a class="biglink" href="{{ pathto("library/index") }}">{% trans %}Library reference{% endtrans %}</a><br>
1818
<span class="linkdescr">{% trans %}Standard library and builtins{% endtrans %}</span></p>
19-
<p class="biglink"><a class="biglink" href="{{ pathto("reference/index") }}">{% trans %}Language reference{% endtrans %}</a><br/>
19+
<p class="biglink"><a class="biglink" href="{{ pathto("reference/index") }}">{% trans %}Language reference{% endtrans %}</a><br>
2020
<span class="linkdescr">{% trans %}Syntax and language elements{% endtrans %}</span></p>
21-
<p class="biglink"><a class="biglink" href="{{ pathto("using/index") }}">{% trans %}Python setup and usage{% endtrans %}</a><br/>
21+
<p class="biglink"><a class="biglink" href="{{ pathto("using/index") }}">{% trans %}Python setup and usage{% endtrans %}</a><br>
2222
<span class="linkdescr">{% trans %}How to install, configure, and use Python{% endtrans %}</span></p>
23-
<p class="biglink"><a class="biglink" href="{{ pathto("howto/index") }}">{% trans %}Python HOWTOs{% endtrans %}</a><br/>
23+
<p class="biglink"><a class="biglink" href="{{ pathto("howto/index") }}">{% trans %}Python HOWTOs{% endtrans %}</a><br>
2424
<span class="linkdescr">{% trans %}In-depth topic manuals{% endtrans %}</span></p>
2525
</td><td width="50%">
26-
<p class="biglink"><a class="biglink" href="{{ pathto("installing/index") }}">{% trans %}Installing Python modules{% endtrans %}</a><br/>
26+
<p class="biglink"><a class="biglink" href="{{ pathto("installing/index") }}">{% trans %}Installing Python modules{% endtrans %}</a><br>
2727
<span class="linkdescr">{% trans %}Third-party modules and PyPI.org{% endtrans %}</span></p>
28-
<p class="biglink"><a class="biglink" href="{{ pathto("distributing/index") }}">{% trans %}Distributing Python modules{% endtrans %}</a><br/>
28+
<p class="biglink"><a class="biglink" href="{{ pathto("distributing/index") }}">{% trans %}Distributing Python modules{% endtrans %}</a><br>
2929
<span class="linkdescr">{% trans %}Publishing modules for use by other people{% endtrans %}</span></p>
30-
<p class="biglink"><a class="biglink" href="{{ pathto("extending/index") }}">{% trans %}Extending and embedding{% endtrans %}</a><br/>
30+
<p class="biglink"><a class="biglink" href="{{ pathto("extending/index") }}">{% trans %}Extending and embedding{% endtrans %}</a><br>
3131
<span class="linkdescr">{% trans %}For C/C++ programmers{% endtrans %}</span></p>
32-
<p class="biglink"><a class="biglink" href="{{ pathto("c-api/index") }}">{% trans %}Python's C API{% endtrans %}</a><br/>
32+
<p class="biglink"><a class="biglink" href="{{ pathto("c-api/index") }}">{% trans %}Python's C API{% endtrans %}</a><br>
3333
<span class="linkdescr">{% trans %}C API reference{% endtrans %}</span></p>
34-
<p class="biglink"><a class="biglink" href="{{ pathto("faq/index") }}">{% trans %}FAQs{% endtrans %}</a><br/>
34+
<p class="biglink"><a class="biglink" href="{{ pathto("faq/index") }}">{% trans %}FAQs{% endtrans %}</a><br>
3535
<span class="linkdescr">{% trans %}Frequently asked questions (with answers!){% endtrans %}</span></p>
36-
<p class="biglink"><a class="biglink" href="{{ pathto("deprecations/index") }}">{% trans %}Deprecations{% endtrans %}</a><br/>
36+
<p class="biglink"><a class="biglink" href="{{ pathto("deprecations/index") }}">{% trans %}Deprecations{% endtrans %}</a><br>
3737
<span class="linkdescr">{% trans %}Deprecated functionality{% endtrans %}</span></p>
3838
</td></tr>
3939
</table>
4040

4141
<p><strong>{% trans %}Indices, glossary, and search:{% endtrans %}</strong></p>
4242
<table class="contentstable" align="center"><tr>
4343
<td width="50%">
44-
<p class="biglink"><a class="biglink" href="{{ pathto("py-modindex") }}">{% trans %}Global module index{% endtrans %}</a><br/>
44+
<p class="biglink"><a class="biglink" href="{{ pathto("py-modindex") }}">{% trans %}Global module index{% endtrans %}</a><br>
4545
<span class="linkdescr">{% trans %}All modules and libraries{% endtrans %}</span></p>
46-
<p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">{% trans %}General index{% endtrans %}</a><br/>
46+
<p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">{% trans %}General index{% endtrans %}</a><br>
4747
<span class="linkdescr">{% trans %}All functions, classes, and terms{% endtrans %}</span></p>
48-
<p class="biglink"><a class="biglink" href="{{ pathto("glossary") }}">{% trans %}Glossary{% endtrans %}</a><br/>
48+
<p class="biglink"><a class="biglink" href="{{ pathto("glossary") }}">{% trans %}Glossary{% endtrans %}</a><br>
4949
<span class="linkdescr">{% trans %}Terms explained{% endtrans %}</span></p>
5050
</td><td width="50%">
51-
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">{% trans %}Search page{% endtrans %}</a><br/>
51+
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">{% trans %}Search page{% endtrans %}</a><br>
5252
<span class="linkdescr">{% trans %}Search this documentation{% endtrans %}</span></p>
53-
<p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{% trans %}Complete table of contents{% endtrans %}</a><br/>
53+
<p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{% trans %}Complete table of contents{% endtrans %}</a><br>
5454
<span class="linkdescr">{% trans %}Lists all sections and subsections{% endtrans %}</span></p>
5555
</td></tr>
5656
</table>

Doc/tools/templates/layout.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{% if builder == "html" and enable_analytics %}
3030
<script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
3131
{% endif %}
32-
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
32+
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
3333
{% if builder != "htmlhelp" %}
3434
{% if pagename == 'whatsnew/changelog' and not embedded %}
3535
<script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}

0 commit comments

Comments
 (0)