Skip to content

Commit cd91293

Browse files
committed
Fix typo & readjust sidebars
1 parent 4b16a1e commit cd91293

File tree

4 files changed

+66
-20
lines changed

4 files changed

+66
-20
lines changed

docs/_templates/layout.html

+50
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+
<div class="document">
49+
{{ sidebar() }}
50+
{%- block document %}
51+
<div class="documentwrapper">
52+
{%- if render_sidebar %}
53+
<div class="bodywrapper">
54+
{%- endif %}
55+
56+
{%- block relbar_top %}
57+
{%- if theme_show_relbar_top|tobool %}
58+
<div class="related top">
59+
&nbsp;
60+
{{- rellink_markup () }}
61+
</div>
62+
{%- endif %}
63+
{% endblock %}
64+
65+
<div class="body" role="main">
66+
<div style="display:block;position:relative; margin-bottom: 1em;">
67+
<div style="display:block;width:100%;padding-top:12.5%;"></div>
68+
<div class="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+
<div class="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+
<div class="clearer"></div>
88+
</div>
89+
{%- else %}
90+
{{ super() }}
91+
{%- endif %}
92+
{%- endblock %}
93+
4494
{%- block footer %}
4595
<div class="footer">
4696
<div class="bodywrapper" style="display:block;position:relative;">

docs/_templates/sidebarintro.html

+7-9
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@
44
</a>
55
</p>
66

7+
<p style="margin-left:auto; margin-right: auto;"><iframe src="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-
<iframe src="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+
<div style="display:block;position:relative;margin: 1em 0 1em 0;">
14+
<div style="display:block;width:100%;padding-top:100%;"></div>
15+
<div class="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><a href="/guide-book" target="_blank"><img style="max-width: 66%; text-align: center;" src="/_static/guide-book-cover.jpg" alt="Python Guide Book Cover"></a></p>
22+
<p><a href="/guide-book" target="_blank"><img style="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 <a href="https://djangogirls.org">DjangoGirls</a> organization.</p>
2025

21-
<p>
22-
<div style="display:block;position:relative;">
23-
<div style="display:block;width:100%;padding-top:100%;"></div>
24-
<div class="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

+7-9
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@
44
</a>
55
</p>
66

7+
<p style="margin-left:auto; margin-right: auto;"><iframe src="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-
<iframe src="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+
<div style="display:block;position:relative;margin: 1em 0 1em 0;">
14+
<div style="display:block;width:100%;padding-top:100%;"></div>
15+
<div class="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><a href="/guide-book" target="_blank"><img style="max-width: 66%; text-align: center;" src="/_static/guide-book-cover.jpg" alt="Python Guide Book Cover"></a></p>
22+
<p><a href="/guide-book" target="_blank"><img style="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 <a href="https://djangogirls.org">DjangoGirls</a> organization.</p>
2025

21-
<p>
22-
<div style="display:block;position:relative;">
23-
<div style="display:block;width:100%;padding-top:100%;"></div>
24-
<div class="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><a href="https://docs.python-guide.org/">English</a></li>

docs/starting/which-python.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Picking an Python Interpreter (3 vs. 2)
2-
=======================================
1+
Picking a Python Interpreter (3 vs 2)
2+
=====================================
33

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

0 commit comments

Comments
 (0)