Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd91293

Browse files
committed
Fix typo & readjust sidebars
1 parent4b16a1e commitcd91293

File tree

4 files changed

+66
-20
lines changed

4 files changed

+66
-20
lines changed

‎docs/_templates/layout.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,56 @@
4141
</script>
4242
{% endblock %}
4343

44+
{# From: https://github.com/bitprophet/alabaster/blob/5f249677242be96601e034edb3697b7482a6abcf/alabaster/layout.html #}
45+
{# Nav should appear before content, not after #}
46+
{%- block content %}
47+
{%- if theme_fixed_sidebar|lower == 'true' %}
48+
<divclass="document">
49+
{{ sidebar() }}
50+
{%- block document %}
51+
<divclass="documentwrapper">
52+
{%- if render_sidebar %}
53+
<divclass="bodywrapper">
54+
{%- endif %}
55+
56+
{%- block relbar_top %}
57+
{%- if theme_show_relbar_top|tobool %}
58+
<divclass="related top">
59+
&nbsp;
60+
{{- rellink_markup () }}
61+
</div>
62+
{%- endif %}
63+
{% endblock %}
64+
65+
<divclass="body"role="main">
66+
<divstyle="display:block;position:relative; margin-bottom: 1em;">
67+
<divstyle="display:block;width:100%;padding-top:12.5%;"></div>
68+
<divclass="rpad"data-unit="8x1"style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;"></div>
69+
</div>
70+
{% block body %} {% endblock %}
71+
</div>
72+
73+
{%- block relbar_bottom %}
74+
{%- if theme_show_relbar_bottom|tobool %}
75+
<divclass="related bottom">
76+
&nbsp;
77+
{{- rellink_markup () }}
78+
</div>
79+
{%- endif %}
80+
{% endblock %}
81+
82+
{%- if render_sidebar %}
83+
</div>
84+
{%- endif %}
85+
</div>
86+
{%- endblock %}
87+
<divclass="clearer"></div>
88+
</div>
89+
{%- else %}
90+
{{ super() }}
91+
{%- endif %}
92+
{%- endblock %}
93+
4494
{%- block footer %}
4595
<divclass="footer">
4696
<divclass="bodywrapper"style="display:block;position:relative;">

‎docs/_templates/sidebarintro.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@
44
</a>
55
</p>
66

7+
<pstyle="margin-left:auto; margin-right: auto;"><iframesrc="https://ghbtns.com/github-btn.html?user=realpython&repo=python-guide&type=watch&count=true&size=large"allowtransparency="true"frameborder="0"scrolling="0"width="200px"height="35px"></iframe></p>
8+
79
<p>
810
This opinionated guide exists to provide both novice and expert Python developers a best practice handbook to the installation, configuration, and usage of Python on a daily basis.
911
</p>
1012

11-
<iframesrc="https://ghbtns.com/github-btn.html?user=realpython&repo=python-guide&type=watch&count=true"allowtransparency="true"frameborder="0"scrolling="0"width="200px"height="35px"></iframe>
13+
<divstyle="display:block;position:relative;margin: 1em 0 1em 0;">
14+
<divstyle="display:block;width:100%;padding-top:100%;"></div>
15+
<divclass="rpad"data-unit="1x1"style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;"></div>
16+
</div>
1217

1318
<h3>O'Reilly Book</h3>
1419

1520
<p>This guide is now available in tangible book form!</p>
1621

17-
<p><ahref="/guide-book"target="_blank"><imgstyle="max-width:66%; text-align: center;"src="/_static/guide-book-cover.jpg"alt="Python Guide Book Cover"></a></p>
22+
<p><ahref="/guide-book"target="_blank"><imgstyle="max-width:100%; text-align: center;"src="/_static/guide-book-cover.jpg"alt="Python Guide Book Cover"></a></p>
1823

1924
<p>All proceeds are being directly donated to the<ahref="https://djangogirls.org">DjangoGirls</a> organization.</p>
2025

21-
<p>
22-
<divstyle="display:block;position:relative;">
23-
<divstyle="display:block;width:100%;padding-top:100%;"></div>
24-
<divclass="rpad"data-unit="1x1"style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;"></div>
25-
</div>
26-
</p>
27-
2826
<h3>Contributors</h3>
2927
<p>
3028
This guide is the result of the collaboration of

‎docs/_templates/sidebarlogo.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@
44
</a>
55
</p>
66

7+
<pstyle="margin-left:auto; margin-right: auto;"><iframesrc="https://ghbtns.com/github-btn.html?user=realpython&repo=python-guide&type=watch&count=true&size=large"allowtransparency="true"frameborder="0"scrolling="0"width="200px"height="35px"></iframe></p>
8+
79
<p>
810
This opinionated guide exists to provide both novice and expert Python developers a best practice handbook to the installation, configuration, and usage of Python on a daily basis.
911
</p>
1012

11-
<iframesrc="https://ghbtns.com/github-btn.html?user=realpython&repo=python-guide&type=watch&count=true"allowtransparency="true"frameborder="0"scrolling="0"width="200px"height="35px"></iframe>
13+
<divstyle="display:block;position:relative;margin: 1em 0 1em 0;">
14+
<divstyle="display:block;width:100%;padding-top:100%;"></div>
15+
<divclass="rpad"data-unit="1x1"style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;"></div>
16+
</div>
1217

1318
<h3>O'Reilly Book</h3>
1419

1520
<p>This guide is now available in tangible book form!</p>
1621

17-
<p><ahref="/guide-book"target="_blank"><imgstyle="max-width:66%; text-align: center;"src="/_static/guide-book-cover.jpg"alt="Python Guide Book Cover"></a></p>
22+
<p><ahref="/guide-book"target="_blank"><imgstyle="max-width:100%; text-align: center;"src="/_static/guide-book-cover.jpg"alt="Python Guide Book Cover"></a></p>
1823

1924
<p>All proceeds are being directly donated to the<ahref="https://djangogirls.org">DjangoGirls</a> organization.</p>
2025

21-
<p>
22-
<divstyle="display:block;position:relative;">
23-
<divstyle="display:block;width:100%;padding-top:100%;"></div>
24-
<divclass="rpad"data-unit="1x1"style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;"></div>
25-
</div>
26-
</p>
27-
2826
<h3>Translations</h3>
2927
<ul>
3028
<li><ahref="https://docs.python-guide.org/">English</a></li>

‎docs/starting/which-python.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Pickingan Python Interpreter (3 vs. 2)
2-
=======================================
1+
Pickinga Python Interpreter (3 vs 2)
2+
=====================================
33

44
..image::/_static/photos/34484834733_5b80f65ab1_k_d.jpg
55

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp