Skip to content

Commit 7cf319e

Browse files
committed
'finish up practicalities'
1 parent 958ec43 commit 7cf319e

File tree

4 files changed

+34
-8
lines changed

4 files changed

+34
-8
lines changed

_includes/css/main.css

+10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ html { box-sizing: border-box; }
2525
#{{id}} .sectiondivider { color: {{ bg }}; }
2626
{% endfor %}
2727

28+
{% for node in site.practicalities %}
29+
{% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %}
30+
{% capture bg %}{% if site.colors[node.bg] %}{{ site.colors[node.bg] }}{% else %}{{ node.bg }}{% endif %}{% endcapture %}
31+
{% capture fg %}{% if site.colors[node.color] %}{{ site.colors[node.color] }}{% else %}{{ node.color }}{% endif %}{% endcapture %}
32+
nav .p-{{id}} { border-color: {{ bg }}; }
33+
#{{id}} { background-color: {{ bg }} !important; color: {{ fg }}; }
34+
#{{id}} a { color: {{ fg }}; }
35+
#{{id}} .sectiondivider { color: {{ bg }}; }
36+
{% endfor %}
37+
2838

2939
/* ----- code, syntax highlighting, etc ----- */
3040

_practicalities/intro.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
---
2+
bg: '#4da45e'
3+
color: white
4+
title: practicalities
5+
fa-icon: pencil
6+
id: bar
27
---
38

4-
Add note here to explain that this does _not_ prevent _nor_ discourage library
5-
author to release 2 version of their software one Python 3 only and the other
6-
python 2.
9+
We do not discourage authors to release software on Python 2. While this guide
10+
is mostly written with the assumption that software are going to stop Python 2
11+
support, it does perfectly apply to a package that wish to not support Python 3,
12+
or is stopping support for any minor version.
713

814

915
This page gather information and links to resources allowing to release a
1016
library that stop supporting an older version of Python without causing too
1117
much disruption for users who haven't upgraded to this new version.
1218

13-
Wether you are a user, or a developer, being aware of the issue listed here, at
19+
Whether you are a user, or a developer, being aware of the issue listed here, at
1420
least the main points should ease lots of the pain.
1521

1622
# Too long, did not read:
@@ -20,6 +26,7 @@ least the main points should ease lots of the pain.
2026
- As maintainer use `setup(..., python_requires='>=3.4')` new option.
2127
- do use `pip install [-e] .` and do **not** invoke `setup.py` directly.
2228
- **Fail** early at **install time** if on Python 2.
29+
- We are giving a talk at PyCon 2017 (likely recorded), add link here.
2330

2431
## The problem
2532

_sections/80-update-my-project.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ encountered both by developers and users during this process.
1515
We are thus collecting a list of things to be aware of for when transitioning that
1616
are less obvious. For example : as a developer, how to make sure that
1717
your package manager like pip does not upgrade your libraries to incompatible
18-
versions on Python 2. Check [our
19-
repository](https://github.com/python3statement/python3statement.github.io) for
20-
more information.
18+
versions on Python 2. See the [Practicality Page](/practicalities/) for
19+
informations and Check [our
20+
repository](https://github.com/python3statement/python3statement.github.io) to
21+
contribute.
2122

2223

2324

practicalities/index.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@
1919
<body>
2020
<div id="main">
2121

22+
<nav><ul>
23+
{% for node in site.sections %}
24+
{% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %}
25+
<li class="p-{{id}}"><a href="../#{{id}}">{{node.title}}</a></li>
26+
{% endfor %}
27+
</ul></nav>
28+
2229

2330
{% for page in site.practicalities %}
24-
<div class="section">
31+
{% capture id %}{{ page.id | remove:'/' | downcase }}{% endcapture %}
32+
<div id="{{id}}" class="section p-{{id}}">
2533

2634
<div class="container {{ page.style }}">
2735
{{ page.content }}

0 commit comments

Comments
 (0)