You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/tools/templates/indexcontent.html
+64-80Lines changed: 64 additions & 80 deletions
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,17 @@
16
16
<metaname="theme-color" content="#3776ab">
17
17
<style>
18
18
.contentstable {
19
-
display: grid;
19
+
display: flex;
20
+
flex-flow: row wrap;
20
21
gap:02em;
21
-
grid-template-columns:1fr1fr;
22
+
list-style: none;
22
23
margin:0 auto;
23
24
max-width:90%;
24
-
}
25
-
.contentstableul {
26
-
list-style: none;
27
-
margin:0;
28
25
padding:0;
29
26
}
27
+
.contentstable>li {
28
+
flex:00calc(50%-1em);
29
+
}
30
30
.contentstablea {
31
31
text-decoration: none;
32
32
}
@@ -38,8 +38,8 @@
38
38
margin-bottom:1em;
39
39
}
40
40
@media (max-width:600px) {
41
-
.contentstable {
42
-
grid-template-columns:1fr;
41
+
.contentstable>li{
42
+
flex-basis:100%;
43
43
}
44
44
}
45
45
</style>
@@ -50,84 +50,68 @@ <h1>{{ docstitle|e }}</h1>
50
50
{% trans %}Welcome! This is the official documentation for Python {{ release }}.{% endtrans %}
51
51
</p>
52
52
<p><strong>{% trans %}Documentation sections:{% endtrans %}</strong></p>
53
-
<divclass="contentstable">
54
-
<ul>
55
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("whatsnew/" + version) }}">{% trans %}What's new in Python {{ version }}?{% endtrans %}</a><br>
56
-
<spanclass="linkdescr"> {% trans whatsnew_index=pathto("whatsnew/index") %}Or <ahref="{{ whatsnew_index }}">all "What's new" documents since Python 2.0</a>{% endtrans %}</span></li>
57
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("tutorial/index") }}">{% trans %}Tutorial{% endtrans %}</a><br>
58
-
<spanclass="linkdescr">{% trans %}Start here: a tour of Python's syntax and features{% endtrans %}</span></li>
59
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("builtins/index") }}">{% trans %}Built-ins reference{% endtrans %}</a><br>
53
+
<ulclass="contentstable">
54
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("whatsnew/" + version) }}">{% trans %}What's new in Python {{ version }}?{% endtrans %}</a><br>
55
+
<spanclass="linkdescr"> {% trans whatsnew_index=pathto("whatsnew/index") %}Or <ahref="{{ whatsnew_index }}">all "What's new" documents since Python 2.0</a>{% endtrans %}</span></li>
56
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("tutorial/index") }}">{% trans %}Tutorial{% endtrans %}</a><br>
57
+
<spanclass="linkdescr">{% trans %}Start here: a tour of Python's syntax and features{% endtrans %}</span></li>
58
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("builtins/index") }}">{% trans %}Built-ins reference{% endtrans %}</a><br>
60
59
<spanclass="linkdescr">{% trans %}Built-in functions and classes{% endtrans %}</span></li>
61
60
<liclass="biglink"><aclass="biglink" href="{{ pathto("library/index") }}">{% trans %}Library reference{% endtrans %}</a><br>
62
-
<spanclass="linkdescr">{% trans %}Standard library modules{% endtrans %}</span></li>
63
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("reference/index") }}">{% trans %}Language reference{% endtrans %}</a><br>
64
-
<spanclass="linkdescr">{% trans %}Syntax and language elements{% endtrans %}</span></li>
65
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("using/index") }}">{% trans %}Python setup and usage{% endtrans %}</a><br>
66
-
<spanclass="linkdescr">{% trans %}How to install, configure, and use Python{% endtrans %}</span></li>
67
-
</ul>
68
-
<ul>
69
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("howto/index") }}">{% trans %}Python HOWTOs{% endtrans %}</a><br>
70
-
<spanclass="linkdescr">{% trans %}In-depth topic manuals{% endtrans %}</span></li>
71
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("installing/index") }}">{% trans %}Installing Python modules{% endtrans %}</a><br>
72
-
<spanclass="linkdescr">{% trans %}Third-party modules and PyPI.org{% endtrans %}</span></li>
73
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("extending/index") }}">{% trans %}Extending and embedding{% endtrans %}</a><br>
74
-
<spanclass="linkdescr">{% trans %}For C/C++ programmers{% endtrans %}</span></li>
75
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("c-api/index") }}">{% trans %}Python's C API{% endtrans %}</a><br>
76
-
<spanclass="linkdescr">{% trans %}C API reference{% endtrans %}</span></li>
77
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("faq/index") }}">{% trans %}FAQs{% endtrans %}</a><br>
78
-
<spanclass="linkdescr">{% trans %}Frequently asked questions (with answers!){% endtrans %}</span></li>
79
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("deprecations/index") }}">{% trans %}Deprecations{% endtrans %}</a><br>
80
-
<spanclass="linkdescr">{% trans %}Deprecated functionality{% endtrans %}</span></li>
81
-
</ul>
82
-
</div>
61
+
<spanclass="linkdescr">{% trans %}Standard library modules{% endtrans %}</span></li>
62
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("reference/index") }}">{% trans %}Language reference{% endtrans %}</a><br>
63
+
<spanclass="linkdescr">{% trans %}Syntax and language elements{% endtrans %}</span></li>
64
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("using/index") }}">{% trans %}Python setup and usage{% endtrans %}</a><br>
65
+
<spanclass="linkdescr">{% trans %}How to install, configure, and use Python{% endtrans %}</span></li>
66
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("howto/index") }}">{% trans %}Python HOWTOs{% endtrans %}</a><br>
67
+
<spanclass="linkdescr">{% trans %}In-depth topic manuals{% endtrans %}</span></li>
68
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("installing/index") }}">{% trans %}Installing Python modules{% endtrans %}</a><br>
69
+
<spanclass="linkdescr">{% trans %}Third-party modules and PyPI.org{% endtrans %}</span></li>
70
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("extending/index") }}">{% trans %}Extending and embedding{% endtrans %}</a><br>
71
+
<spanclass="linkdescr">{% trans %}For C/C++ programmers{% endtrans %}</span></li>
72
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("c-api/index") }}">{% trans %}Python's C API{% endtrans %}</a><br>
73
+
<spanclass="linkdescr">{% trans %}C API reference{% endtrans %}</span></li>
74
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("faq/index") }}">{% trans %}FAQs{% endtrans %}</a><br>
75
+
<spanclass="linkdescr">{% trans %}Frequently asked questions (with answers!){% endtrans %}</span></li>
76
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("deprecations/index") }}">{% trans %}Deprecations{% endtrans %}</a><br>
77
+
<spanclass="linkdescr">{% trans %}Deprecated functionality{% endtrans %}</span></li>
78
+
</ul>
83
79
84
80
<p><strong>{% trans %}Other resources:{% endtrans %}</strong></p>
85
-
<divclass="contentstable">
86
-
<ul>
87
-
<liclass="biglink"><aclass="biglink" href="https://devguide.python.org">{% trans %}Python developer's guide{% endtrans %}</a><br>
88
-
<spanclass="linkdescr">{% trans %}Information on contributing to Python{% endtrans %}</span></li>
89
-
<liclass="biglink"><aclass="biglink" href="https://packaging.python.org">{% trans %}Python Packaging User Guide{% endtrans %}</a><br>
90
-
<spanclass="linkdescr">{% trans %}Resources relating to Python packaging{% endtrans %}</span></li>
91
-
<liclass="biglink"><aclass="biglink" href="https://www.python.org/doc/av/">{% trans %}Audio/visual talks{% endtrans %}</a><br>
92
-
<spanclass="linkdescr">{% trans %}Podcasts, talks, and video presentations from the community{% endtrans %}</span></li>
93
-
</ul>
94
-
<ul>
95
-
<liclass="biglink"><aclass="biglink" href="https://peps.python.org/">{% trans %}Python Enhancement Proposals{% endtrans %}</a><br>
96
-
<spanclass="linkdescr">{% trans %}Index of proposed improvements to Python{% endtrans %}</span></li>
97
-
<liclass="biglink"><aclass="biglink" href="https://typing.python.org">{% trans %}Static Typing with Python{% endtrans %}</a><br>
98
-
<spanclass="linkdescr">{% trans %}Information and guides about Python type safety{% endtrans %}</span></li>
99
-
</ul>
100
-
</div>
81
+
<ulclass="contentstable">
82
+
<liclass="biglink"><aclass="biglink" href="https://devguide.python.org">{% trans %}Python developer's guide{% endtrans %}</a><br>
83
+
<spanclass="linkdescr">{% trans %}Information on contributing to Python{% endtrans %}</span></li>
84
+
<liclass="biglink"><aclass="biglink" href="https://packaging.python.org">{% trans %}Python Packaging User Guide{% endtrans %}</a><br>
85
+
<spanclass="linkdescr">{% trans %}Resources relating to Python packaging{% endtrans %}</span></li>
86
+
<liclass="biglink"><aclass="biglink" href="https://www.python.org/doc/av/">{% trans %}Audio/visual talks{% endtrans %}</a><br>
87
+
<spanclass="linkdescr">{% trans %}Podcasts, talks, and video presentations from the community{% endtrans %}</span></li>
88
+
<liclass="biglink"><aclass="biglink" href="https://peps.python.org/">{% trans %}Python Enhancement Proposals{% endtrans %}</a><br>
89
+
<spanclass="linkdescr">{% trans %}Index of proposed improvements to Python{% endtrans %}</span></li>
90
+
<liclass="biglink"><aclass="biglink" href="https://typing.python.org">{% trans %}Static Typing with Python{% endtrans %}</a><br>
91
+
<spanclass="linkdescr">{% trans %}Information and guides about Python type safety{% endtrans %}</span></li>
92
+
</ul>
101
93
102
94
<p><strong>{% trans %}Indices, glossary, and search:{% endtrans %}</strong></p>
103
-
<divclass="contentstable">
104
-
<ul>
105
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("py-modindex") }}">{% trans %}Global module index{% endtrans %}</a><br>
106
-
<spanclass="linkdescr">{% trans %}All modules and libraries{% endtrans %}</span></li>
107
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("genindex") }}">{% trans %}General index{% endtrans %}</a><br>
108
-
<spanclass="linkdescr">{% trans %}All functions, classes, and terms{% endtrans %}</span></li>
109
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("glossary") }}">{% trans %}Glossary{% endtrans %}</a><br>
110
-
<spanclass="linkdescr">{% trans %}Terms explained{% endtrans %}</span></li>
111
-
</ul>
112
-
<ul>
113
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("search") }}">{% trans %}Search page{% endtrans %}</a><br>
114
-
<spanclass="linkdescr">{% trans %}Search this documentation{% endtrans %}</span></li>
115
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("contents") }}">{% trans %}Complete table of contents{% endtrans %}</a><br>
116
-
<spanclass="linkdescr">{% trans %}All sections and subsections{% endtrans %}</span></li>
117
-
</ul>
118
-
</div>
95
+
<ulclass="contentstable">
96
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("py-modindex") }}">{% trans %}Global module index{% endtrans %}</a><br>
97
+
<spanclass="linkdescr">{% trans %}All modules and libraries{% endtrans %}</span></li>
98
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("genindex") }}">{% trans %}General index{% endtrans %}</a><br>
99
+
<spanclass="linkdescr">{% trans %}All functions, classes, and terms{% endtrans %}</span></li>
100
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("glossary") }}">{% trans %}Glossary{% endtrans %}</a><br>
101
+
<spanclass="linkdescr">{% trans %}Terms explained{% endtrans %}</span></li>
102
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("search") }}">{% trans %}Search page{% endtrans %}</a><br>
103
+
<spanclass="linkdescr">{% trans %}Search this documentation{% endtrans %}</span></li>
104
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("contents") }}">{% trans %}Complete table of contents{% endtrans %}</a><br>
105
+
<spanclass="linkdescr">{% trans %}All sections and subsections{% endtrans %}</span></li>
106
+
</ul>
119
107
120
108
<p><strong>{% trans %}Project information:{% endtrans %}</strong></p>
121
-
<divclass="contentstable">
122
-
<ul>
123
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("bugs") }}">{% trans %}Reporting issues{% endtrans %}</a></li>
124
-
<liclass="biglink"><aclass="biglink" href="https://devguide.python.org/documentation/help-documenting/">{% trans %}Contributing to docs{% endtrans %}</a></li>
125
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("download") }}">{% trans %}Download the documentation{% endtrans %}</a></li>
126
-
</ul>
127
-
<ul>
128
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("license") }}">{% trans %}History and license of Python{% endtrans %}</a></li>
129
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("copyright") }}">{% trans %}Copyright{% endtrans %}</a></li>
130
-
<liclass="biglink"><aclass="biglink" href="{{ pathto("about") }}">{% trans %}About the documentation{% endtrans %}</a></li>
131
-
</ul>
132
-
</div>
109
+
<ulclass="contentstable">
110
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("bugs") }}">{% trans %}Reporting issues{% endtrans %}</a></li>
111
+
<liclass="biglink"><aclass="biglink" href="https://devguide.python.org/documentation/help-documenting/">{% trans %}Contributing to docs{% endtrans %}</a></li>
112
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("download") }}">{% trans %}Download the documentation{% endtrans %}</a></li>
113
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("license") }}">{% trans %}History and license of Python{% endtrans %}</a></li>
114
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("copyright") }}">{% trans %}Copyright{% endtrans %}</a></li>
115
+
<liclass="biglink"><aclass="biglink" href="{{ pathto("about") }}">{% trans %}About the documentation{% endtrans %}</a></li>
0 commit comments