|
14 | 14 | <meta property="og:image:width" content="200"> |
15 | 15 | <meta property="og:image:height" content="200"> |
16 | 16 | <meta name="theme-color" content="#3776ab"> |
| 17 | + <style> |
| 18 | + .contentstable { |
| 19 | + display: grid; |
| 20 | + gap: 0 2em; |
| 21 | + grid-template-columns: 1fr 1fr; |
| 22 | + margin: 0 auto; |
| 23 | + max-width: 90%; |
| 24 | + } |
| 25 | + .contentstable ul { |
| 26 | + list-style: none; |
| 27 | + margin: 0; |
| 28 | + padding: 0; |
| 29 | + } |
| 30 | + .contentstable a { |
| 31 | + text-decoration: none; |
| 32 | + } |
| 33 | + .contentstable a:hover { |
| 34 | + text-decoration: underline; |
| 35 | + } |
| 36 | + .contentstable li.biglink { |
| 37 | + line-height: 150%; |
| 38 | + margin-bottom: 1em; |
| 39 | + } |
| 40 | + @media (max-width: 600px) { |
| 41 | + .contentstable { |
| 42 | + grid-template-columns: 1fr; |
| 43 | + } |
| 44 | + } |
| 45 | + </style> |
17 | 46 | {%- endblock -%} |
18 | 47 | {% block body %} |
19 | 48 | <h1>{{ docstitle|e }}</h1> |
20 | 49 | <p> |
21 | 50 | {% trans %}Welcome! This is the official documentation for Python {{ release }}.{% endtrans %} |
22 | 51 | </p> |
23 | 52 | <p><strong>{% trans %}Documentation sections:{% endtrans %}</strong></p> |
24 | | - <table class="contentstable" align="center"><tr> |
25 | | - <td width="50%"> |
26 | | - <p class="biglink"><a class="biglink" href="{{ pathto("whatsnew/" + version) }}">{% trans %}What's new in Python {{ version }}?{% endtrans %}</a><br> |
27 | | - <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> |
28 | | - <p class="biglink"><a class="biglink" href="{{ pathto("tutorial/index") }}">{% trans %}Tutorial{% endtrans %}</a><br> |
29 | | - <span class="linkdescr">{% trans %}Start here: a tour of Python's syntax and features{% endtrans %}</span></p> |
30 | | - <p class="biglink"><a class="biglink" href="{{ pathto("library/index") }}">{% trans %}Library reference{% endtrans %}</a><br> |
31 | | - <span class="linkdescr">{% trans %}Standard library and builtins{% endtrans %}</span></p> |
32 | | - <p class="biglink"><a class="biglink" href="{{ pathto("reference/index") }}">{% trans %}Language reference{% endtrans %}</a><br> |
33 | | - <span class="linkdescr">{% trans %}Syntax and language elements{% endtrans %}</span></p> |
34 | | - <p class="biglink"><a class="biglink" href="{{ pathto("using/index") }}">{% trans %}Python setup and usage{% endtrans %}</a><br> |
35 | | - <span class="linkdescr">{% trans %}How to install, configure, and use Python{% endtrans %}</span></p> |
36 | | - <p class="biglink"><a class="biglink" href="{{ pathto("howto/index") }}">{% trans %}Python HOWTOs{% endtrans %}</a><br> |
37 | | - <span class="linkdescr">{% trans %}In-depth topic manuals{% endtrans %}</span></p> |
38 | | - </td><td width="50%"> |
39 | | - <p class="biglink"><a class="biglink" href="{{ pathto("installing/index") }}">{% trans %}Installing Python modules{% endtrans %}</a><br> |
40 | | - <span class="linkdescr">{% trans %}Third-party modules and PyPI.org{% endtrans %}</span></p> |
41 | | - <p class="biglink"><a class="biglink" href="{{ pathto("distributing/index") }}">{% trans %}Distributing Python modules{% endtrans %}</a><br> |
42 | | - <span class="linkdescr">{% trans %}Publishing modules for use by other people{% endtrans %}</span></p> |
43 | | - <p class="biglink"><a class="biglink" href="{{ pathto("extending/index") }}">{% trans %}Extending and embedding{% endtrans %}</a><br> |
44 | | - <span class="linkdescr">{% trans %}For C/C++ programmers{% endtrans %}</span></p> |
45 | | - <p class="biglink"><a class="biglink" href="{{ pathto("c-api/index") }}">{% trans %}Python's C API{% endtrans %}</a><br> |
46 | | - <span class="linkdescr">{% trans %}C API reference{% endtrans %}</span></p> |
47 | | - <p class="biglink"><a class="biglink" href="{{ pathto("faq/index") }}">{% trans %}FAQs{% endtrans %}</a><br> |
48 | | - <span class="linkdescr">{% trans %}Frequently asked questions (with answers!){% endtrans %}</span></p> |
49 | | - <p class="biglink"><a class="biglink" href="{{ pathto("deprecations/index") }}">{% trans %}Deprecations{% endtrans %}</a><br> |
50 | | - <span class="linkdescr">{% trans %}Deprecated functionality{% endtrans %}</span></p> |
51 | | - </td></tr> |
52 | | - </table> |
| 53 | + <div class="contentstable"> |
| 54 | + <ul> |
| 55 | + <li class="biglink"><a class="biglink" href="{{ pathto("whatsnew/" + version) }}">{% trans %}What's new in Python {{ version }}?{% endtrans %}</a><br> |
| 56 | + <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></li> |
| 57 | + <li class="biglink"><a class="biglink" href="{{ pathto("tutorial/index") }}">{% trans %}Tutorial{% endtrans %}</a><br> |
| 58 | + <span class="linkdescr">{% trans %}Start here: a tour of Python's syntax and features{% endtrans %}</span></li> |
| 59 | + <li class="biglink"><a class="biglink" href="{{ pathto("library/index") }}">{% trans %}Library reference{% endtrans %}</a><br> |
| 60 | + <span class="linkdescr">{% trans %}Standard library and builtins{% endtrans %}</span></li> |
| 61 | + <li class="biglink"><a class="biglink" href="{{ pathto("reference/index") }}">{% trans %}Language reference{% endtrans %}</a><br> |
| 62 | + <span class="linkdescr">{% trans %}Syntax and language elements{% endtrans %}</span></li> |
| 63 | + <li class="biglink"><a class="biglink" href="{{ pathto("using/index") }}">{% trans %}Python setup and usage{% endtrans %}</a><br> |
| 64 | + <span class="linkdescr">{% trans %}How to install, configure, and use Python{% endtrans %}</span></li> |
| 65 | + <li class="biglink"><a class="biglink" href="{{ pathto("howto/index") }}">{% trans %}Python HOWTOs{% endtrans %}</a><br> |
| 66 | + <span class="linkdescr">{% trans %}In-depth topic manuals{% endtrans %}</span></li> |
| 67 | + </ul> |
| 68 | + <ul> |
| 69 | + <li class="biglink"><a class="biglink" href="{{ pathto("installing/index") }}">{% trans %}Installing Python modules{% endtrans %}</a><br> |
| 70 | + <span class="linkdescr">{% trans %}Third-party modules and PyPI.org{% endtrans %}</span></li> |
| 71 | + <li class="biglink"><a class="biglink" href="{{ pathto("extending/index") }}">{% trans %}Extending and embedding{% endtrans %}</a><br> |
| 72 | + <span class="linkdescr">{% trans %}For C/C++ programmers{% endtrans %}</span></li> |
| 73 | + <li class="biglink"><a class="biglink" href="{{ pathto("c-api/index") }}">{% trans %}Python's C API{% endtrans %}</a><br> |
| 74 | + <span class="linkdescr">{% trans %}C API reference{% endtrans %}</span></li> |
| 75 | + <li class="biglink"><a class="biglink" href="{{ pathto("faq/index") }}">{% trans %}FAQs{% endtrans %}</a><br> |
| 76 | + <span class="linkdescr">{% trans %}Frequently asked questions (with answers!){% endtrans %}</span></li> |
| 77 | + <li class="biglink"><a class="biglink" href="{{ pathto("deprecations/index") }}">{% trans %}Deprecations{% endtrans %}</a><br> |
| 78 | + <span class="linkdescr">{% trans %}Deprecated functionality{% endtrans %}</span></li> |
| 79 | + </ul> |
| 80 | + </div> |
| 81 | + |
| 82 | + <p><strong>{% trans %}Other resources:{% endtrans %}</strong></p> |
| 83 | + <div class="contentstable"> |
| 84 | + <ul> |
| 85 | + <li class="biglink"><a class="biglink" href="https://packaging.python.org">{% trans %}Python Packaging User Guide{% endtrans %}</a><br> |
| 86 | + <span class="linkdescr">{% trans %}Resources relating to Python packaging{% endtrans %}</span></li> |
| 87 | + </ul> |
| 88 | + <ul> |
| 89 | + <li class="biglink"><a class="biglink" href="https://typing.python.org">{% trans %}Static Typing with Python{% endtrans %}</a><br> |
| 90 | + <span class="linkdescr">{% trans %}Information and guides about Python type safety{% endtrans %}</span></li> |
| 91 | + </ul> |
| 92 | + </div> |
53 | 93 |
|
54 | 94 | <p><strong>{% trans %}Indices, glossary, and search:{% endtrans %}</strong></p> |
55 | | - <table class="contentstable" align="center"><tr> |
56 | | - <td width="50%"> |
57 | | - <p class="biglink"><a class="biglink" href="{{ pathto("py-modindex") }}">{% trans %}Global module index{% endtrans %}</a><br> |
58 | | - <span class="linkdescr">{% trans %}All modules and libraries{% endtrans %}</span></p> |
59 | | - <p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">{% trans %}General index{% endtrans %}</a><br> |
60 | | - <span class="linkdescr">{% trans %}All functions, classes, and terms{% endtrans %}</span></p> |
61 | | - <p class="biglink"><a class="biglink" href="{{ pathto("glossary") }}">{% trans %}Glossary{% endtrans %}</a><br> |
62 | | - <span class="linkdescr">{% trans %}Terms explained{% endtrans %}</span></p> |
63 | | - </td><td width="50%"> |
64 | | - <p class="biglink"><a class="biglink" href="{{ pathto("search") }}">{% trans %}Search page{% endtrans %}</a><br> |
65 | | - <span class="linkdescr">{% trans %}Search this documentation{% endtrans %}</span></p> |
66 | | - <p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{% trans %}Complete table of contents{% endtrans %}</a><br> |
67 | | - <span class="linkdescr">{% trans %}Lists all sections and subsections{% endtrans %}</span></p> |
68 | | - </td></tr> |
69 | | - </table> |
| 95 | + <div class="contentstable"> |
| 96 | + <ul> |
| 97 | + <li class="biglink"><a class="biglink" href="{{ pathto("py-modindex") }}">{% trans %}Global module index{% endtrans %}</a><br> |
| 98 | + <span class="linkdescr">{% trans %}All modules and libraries{% endtrans %}</span></li> |
| 99 | + <li class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">{% trans %}General index{% endtrans %}</a><br> |
| 100 | + <span class="linkdescr">{% trans %}All functions, classes, and terms{% endtrans %}</span></li> |
| 101 | + <li class="biglink"><a class="biglink" href="{{ pathto("glossary") }}">{% trans %}Glossary{% endtrans %}</a><br> |
| 102 | + <span class="linkdescr">{% trans %}Terms explained{% endtrans %}</span></li> |
| 103 | + </ul> |
| 104 | + <ul> |
| 105 | + <li class="biglink"><a class="biglink" href="{{ pathto("search") }}">{% trans %}Search page{% endtrans %}</a><br> |
| 106 | + <span class="linkdescr">{% trans %}Search this documentation{% endtrans %}</span></li> |
| 107 | + <li class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{% trans %}Complete table of contents{% endtrans %}</a><br> |
| 108 | + <span class="linkdescr">{% trans %}All sections and subsections{% endtrans %}</span></li> |
| 109 | + </ul> |
| 110 | + </div> |
70 | 111 |
|
71 | 112 | <p><strong>{% trans %}Project information:{% endtrans %}</strong></p> |
72 | | - <table class="contentstable" align="center"><tr> |
73 | | - <td width="50%"> |
74 | | - <p class="biglink"><a class="biglink" href="{{ pathto("bugs") }}">{% trans %}Reporting issues{% endtrans %}</a></p> |
75 | | - <p class="biglink"><a class="biglink" href="https://devguide.python.org/documentation/help-documenting/">{% trans %}Contributing to docs{% endtrans %}</a></p> |
76 | | - <p class="biglink"><a class="biglink" href="{{ pathto("download") }}">{% trans %}Download the documentation{% endtrans %}</a></p> |
77 | | - </td><td width="50%"> |
78 | | - <p class="biglink"><a class="biglink" href="{{ pathto("license") }}">{% trans %}History and license of Python{% endtrans %}</a></p> |
79 | | - <p class="biglink"><a class="biglink" href="{{ pathto("copyright") }}">{% trans %}Copyright{% endtrans %}</a></p> |
80 | | - <p class="biglink"><a class="biglink" href="{{ pathto("about") }}">{% trans %}About the documentation{% endtrans %}</a></p> |
81 | | - </td></tr> |
82 | | - </table> |
| 113 | + <div class="contentstable"> |
| 114 | + <ul> |
| 115 | + <li class="biglink"><a class="biglink" href="{{ pathto("bugs") }}">{% trans %}Reporting issues{% endtrans %}</a></li> |
| 116 | + <li class="biglink"><a class="biglink" href="https://devguide.python.org/documentation/help-documenting/">{% trans %}Contributing to docs{% endtrans %}</a></li> |
| 117 | + <li class="biglink"><a class="biglink" href="{{ pathto("download") }}">{% trans %}Download the documentation{% endtrans %}</a></li> |
| 118 | + </ul> |
| 119 | + <ul> |
| 120 | + <li class="biglink"><a class="biglink" href="{{ pathto("license") }}">{% trans %}History and license of Python{% endtrans %}</a></li> |
| 121 | + <li class="biglink"><a class="biglink" href="{{ pathto("copyright") }}">{% trans %}Copyright{% endtrans %}</a></li> |
| 122 | + <li class="biglink"><a class="biglink" href="{{ pathto("about") }}">{% trans %}About the documentation{% endtrans %}</a></li> |
| 123 | + </ul> |
| 124 | + </div> |
83 | 125 | {% endblock %} |
0 commit comments