Skip to content

Commit ae64863

Browse files
committed
Fix crossed-out code
1 parent 05192aa commit ae64863

File tree

5 files changed

+92
-3
lines changed

5 files changed

+92
-3
lines changed

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@
1111
"editor.wordWrapColumn": 132,
1212
"editor.wordWrap": "bounded",
1313
"editor.quickSuggestions": false
14-
}
14+
},
15+
"emmet.includeLanguages":{
16+
"jekyll": "html",
17+
"scss": "css"
18+
}
1519
}

.vscode/tasks.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Build Jekyll",
8+
"type": "shell",
9+
"command": "bundle exec jekyll build",
10+
"problemMatcher": [
11+
{
12+
"severity": "warning",
13+
"fileLocation": "relative",
14+
"pattern": {
15+
"regexp": "^\\s*Liquid Warning: Liquid (?:syntax )?error \\(line (\\d+)\\): (.+) in (.+)$",
16+
"line": 1,
17+
"message": 2,
18+
"file": 3
19+
}
20+
},
21+
{
22+
"severity": "error",
23+
"fileLocation": "relative",
24+
"pattern": {
25+
"regexp": "^\\s*Liquid Exception: Liquid (?:syntax )?error \\(line (\\d+)\\): (.+) in (.+)$",
26+
"line": 1,
27+
"message": 2,
28+
"file": 3
29+
}
30+
}
31+
],
32+
"isBackground": true,
33+
"group": {
34+
"kind": "build",
35+
"isDefault": true
36+
}
37+
},
38+
{
39+
"label": "Run Jekyll",
40+
"type": "shell",
41+
"command": "bundle exec jekyll serve",
42+
"problemMatcher": [
43+
{
44+
"owner": "jekyll-warning",
45+
"severity": "warning",
46+
"fileLocation": "relative",
47+
"pattern": {
48+
"regexp": "^\\s*Liquid Warning: Liquid (?:syntax )?error \\(line (\\d+)\\): (.+) in (.+)$",
49+
"line": 1,
50+
"message": 2,
51+
"file": 3
52+
},
53+
"background": {
54+
"activeOnStart": true,
55+
"beginsPattern": "^\\s*Regenerating: ",
56+
"endsPattern": "^\\s*(?:\\.\\.\\.)?done in "
57+
}
58+
},
59+
{
60+
"owner": "jekyll-error",
61+
"severity": "error",
62+
"fileLocation": "relative",
63+
"pattern": {
64+
"regexp": "^\\s*Liquid Exception: Liquid (?:syntax )?error \\(line (\\d+)\\): (.+) in (.+)$",
65+
"line": 1,
66+
"message": 2,
67+
"file": 3
68+
},
69+
"background": {
70+
"activeOnStart": true,
71+
"beginsPattern": "^\\s*Regenerating: ",
72+
"endsPattern": "^\\s*(?:\\.\\.\\.)?done in "
73+
}
74+
}
75+
],
76+
"isBackground": true,
77+
"group": {
78+
"kind": "build",
79+
"isDefault": true
80+
}
81+
}
82+
]
83+
}

04 More on Variables/5 Two remarks about iteration over sequences Item numbering in a loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nav_order: 5
1010

1111
Sometimes there is a need to iterate through the sequence of a set and number them simultaneously. This can be done as follows:
1212

13-
<div style="text-decoration: line-through;" onmouseover="this.style.textDecoration='none'" onmouseout="this.style.textDecoration='line-through'">
13+
<div style="text-decoration: line-through;" onmouseover="this.style.textDecoration='none'" onmouseout="this.style.textDecoration='line-through'" markdown="1">
1414

1515
```python
1616
number = 0

08 File Operations/1 Opening files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Additionally, we can add a `b` character to the selected mode. It means opening
2626

2727
The function `open` returns a variable of the file type , which is a special type used to interact with an open file (it will be discussed in detail in the next part of the lecture). After reading/writing data is completed, the file should be *closed*. It is necessary especially in the case of writing, because otherwise we have no guarantee that the data will be actually written to the disk (to increase the performance, Python and the operating system use *caching*: the content of the file is stored in the operating memory and only when it is closed, it is actually written to disk). To close the file, use the method `file.close()`. E.g:
2828

29-
<div style="text-decoration: line-through;" onmouseover="this.style.textDecoration='none'" onmouseout="this.style.textDecoration='line-through'">
29+
<div style="text-decoration: line-through;" onmouseover="this.style.textDecoration='none'" onmouseout="this.style.textDecoration='line-through'" markdown="1">
3030

3131
```python
3232
file = open ('data.txt', 'w')

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ url: https://mds-python.github.io/
88
remote_theme: pmarsceill/just-the-docs
99
color_scheme: tul
1010

11+
markdown: kramdown
12+
1113
plugins:
1214
- jekyll-relative-links
1315

0 commit comments

Comments
 (0)