@@ -58,7 +58,9 @@ You'll need to fork the `python-docs-fr
58
58
button. This creates a copy of the whole project on your github
59
59
account: a place where you have the rights to do modifications.
60
60
61
- Step by steps::
61
+ Step by steps:
62
+
63
+ .. code-block :: shell-session
62
64
63
65
# Git clone your github fork using ssh (replace JulienPalard):
64
66
$ git clone git@github.com:JulienPalard/python-docs-fr.git
@@ -70,7 +72,9 @@ Step by steps::
70
72
$ git remote add upstream https://github.com/python/python-docs-fr.git
71
73
72
74
73
- Now you're ready to start a work session, each time you'll start a new task, start here::
75
+ Now you're ready to start a work session, each time you'll start a new task, start here:
76
+
77
+ .. code-block :: shell-session
74
78
75
79
# To work, we'll need a branch, based on an up-to-date (freshly fetched)
76
80
# upstream/3.7 branch, let's say we'll work on glossary so we name
@@ -227,12 +231,16 @@ Simplify git diffs
227
231
228
232
Git diffs are often crowded with useless line number changes, like:
229
233
234
+ .. code-block :: diff
235
+
230
236
-#: ../Doc/library/signal.rst:406
231
237
+#: ../Doc/library/signal.rst:408
232
238
233
239
To tell git they are not usefull information, you can do the following
234
240
after ensuring ``~/.local/bin/ `` is in your ``PATH ``.
235
241
242
+ .. code-block :: bash
243
+
236
244
cat << EOF > ~/.local/bin/podiff
237
245
#!/bin/sh
238
246
grep -v '^#:' "\$ 1"
@@ -254,7 +262,9 @@ like::
254
262
├── python-docs-fr/
255
263
└── cpython/
256
264
257
- To clone CPython you may use::
265
+ To clone CPython you may use:
266
+
267
+ .. code-block:: bash
258
268
259
269
git clone --depth 1 --no-single-branch https://github.com/python/cpython.git
260
270
0 commit comments