Skip to content

Commit d020bd8

Browse files
committed
Add "Relevant links" sections to various documentation files for improved navigation
1 parent 00601f1 commit d020bd8

23 files changed

+206
-2
lines changed

docs/cheatsheet/args-and-kwargs.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,12 @@ Keywords are accessed through the `kwargs` variable:
7171
>>> some_function(key1='arg1', key2='arg2')
7272
# keywords: {'key1': 'arg1', 'key2': 'arg2'} as <class 'dict'>
7373
```
74+
75+
## Relevant links
76+
77+
- <router-link to="/cheatsheet/functions">Functions</router-link>
78+
- <router-link to="/cheatsheet/lists-and-tuples">Lists and Tuples</router-link>
79+
- <router-link to="/cheatsheet/dictionaries">Python Dictionaries</router-link>
80+
- <router-link to="/blog/python-easy-args-kwargs">Python *args and **kwargs Made Easy</router-link>
81+
- <router-link to="/builtin/tuple">tuple()</router-link>
82+
- <router-link to="/builtin/dict">dict()</router-link>

docs/cheatsheet/basics.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,3 +377,14 @@ Or from a `string` to an `integer` or `float`:
377377
>>> float('3.14')
378378
# 3.14
379379
```
380+
381+
## Relevant Links
382+
383+
- <router-link to="/blog/python-data-types">Python Data Types: A Visual Guide for Beginners</router-link>
384+
- <router-link to="/blog/python-comprehensions-step-by-step">Python Comprehensions Step-by-Step</router-link>
385+
- <router-link to="/cheatsheet/control-flow">Control Flow</router-link>
386+
- <router-link to="/cheatsheet/functions">Functions</router-link>
387+
- <router-link to="/cheatsheet/lists-and-tuples">Lists and Tuples</router-link>
388+
- <router-link to="/cheatsheet/dictionaries">Dictionaries</router-link>
389+
- <router-link to="/cheatsheet/sets">Sets</router-link>
390+
- <router-link to="/cheatsheet/string-formatting">String Formatting</router-link>

docs/cheatsheet/comprehensions.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,12 @@ A List comprehension can be generated from a dictionary:
118118
>>> ["{}:{}".format(k.upper(), v) for k, v in c.items()]
119119
['NAME:Pooka', 'AGE:5']
120120
```
121+
122+
## Relevant links
123+
124+
- <router-link to="/blog/python-comprehensions-step-by-step">Python Comprehensions: A step by step Introduction</router-link>
125+
- <router-link to="/cheatsheet/lists-and-tuples">Python Lists and Tuples</router-link>
126+
- <router-link to="/cheatsheet/sets">Python Sets</router-link>
127+
- <router-link to="/cheatsheet/dictionaries">Python Dictionaries</router-link>
128+
- <router-link to="/blog/python-sets-what-why-how">Python Sets: What, Why and How</router-link>
129+
- <router-link to="/blog/python-data-types">Python Data Types Blog Post</router-link>

docs/cheatsheet/context-manager.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,11 @@ with ContextManager():
6666
#test
6767
#--exit--
6868
```
69+
70+
## Relevant links
71+
72+
- <router-link to="/cheatsheet/reading-and-writing-files">Reading and Writing Files</router-link>
73+
- <router-link to="/cheatsheet/exception-handling">Exception Handling</router-link>
74+
- <router-link to="/cheatsheet/decorators">Decorators</router-link>
75+
- <router-link to="/blog/python-pathlib-essentials">10 Essential File System Operations Every Developer Should Know</router-link>
76+
- <router-link to="/builtin/open">open()</router-link>

docs/cheatsheet/control-flow.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,3 +488,13 @@ useful when a `break` condition can occur in the loop:
488488
# Type exit to exit: exit
489489
# You typed exit
490490
```
491+
492+
## Relevant links
493+
494+
- <router-link to="/cheatsheet/basics">Basics</router-link>
495+
- <router-link to="/cheatsheet/functions">Functions</router-link>
496+
- <router-link to="/cheatsheet/exception-handling">Exception Handling</router-link>
497+
- <router-link to="/cheatsheet/lists-and-tuples">Lists and Tuples</router-link>
498+
- <router-link to="/cheatsheet/sets">Sets</router-link>
499+
- <router-link to="/cheatsheet/dictionaries">Dictionaries</router-link>
500+
- <router-link to="/cheatsheet/comprehensions">Comprehensions</router-link>

docs/cheatsheet/dataclasses.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,12 @@ It is mandatory to define the data type in dataclass. However, If you would rath
7575
... name: Any
7676
... value: Any = 42
7777
```
78+
79+
## Relevant links
80+
81+
- <router-link to="/cheatsheet/oop-basics">OOP Basics</router-link>
82+
- <router-link to="/cheatsheet/decorators">Decorators</router-link>
83+
- <router-link to="/blog/python-data-types">Python Data Types Blog Post</router-link>
84+
- <router-link to="/builtin/object">object()</router-link>
85+
- <router-link to="/builtin/repr">repr()</router-link>
86+
- <router-link to="/builtin/type">type()</router-link>

docs/cheatsheet/debugging.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,8 @@ Instead of displaying the log messages to the screen, you can write them to a te
195195
>>> import logging
196196
>>> logging.basicConfig(filename='myProgramLog.txt', level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
197197
```
198+
199+
## Relevant links
200+
201+
- <router-link to="/cheatsheet/exception-handling">Exception Handling</router-link>
202+
- <router-link to="/builtin/breakpoint">breakpoint()</router-link>

docs/cheatsheet/decorators.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@ say_hi("James")
180180
</base-disclaimer-content>
181181
</base-disclaimer>
182182

183+
## Relevant links
184+
185+
- <router-link to="/cheatsheet/functions">Functions</router-link>
186+
- <router-link to="/cheatsheet/args-and-kwargs">Args and Kwargs</router-link>
187+
- <router-link to="/blog/python-easy-args-kwargs">Python *args and **kwargs Made Easy</router-link>
188+
- <router-link to="/builtin/classmethod">classmethod()</router-link>
189+
- <router-link to="/builtin/staticmethod">staticmethod()</router-link>
190+
- <router-link to="/builtin/property">property()</router-link>
191+
- <router-link to="/builtin/callable">callable()</router-link>
192+
183193

184194

185195

docs/cheatsheet/dictionaries.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,15 @@ For Python 3.5+:
267267
>>> dict_c
268268
# {'a': 1, 'b': 3, 'c': 4}
269269
```
270+
271+
## Relevant links
272+
273+
- <router-link to="/blog/python-data-types">Python Data Types Blog Post</router-link>
274+
- <router-link to="/blog/python-easy-args-kwargs">Python *args and **kwargs Made Easy</router-link>
275+
- <router-link to="/cheatsheet/comprehensions">Comprehensions</router-link>
276+
- <router-link to="/cheatsheet/args-and-kwargs">Args and Kwargs</router-link>
277+
- <router-link to="/blog/python-comprehensions-step-by-step">Python Comprehensions Step-by-Step</router-link>
278+
- <router-link to="/builtin/dict">dict()</router-link>
279+
- <router-link to="/builtin/len">len()</router-link>
280+
- <router-link to="/builtin/iter">iter()</router-link>
281+
- <router-link to="/builtin/zip">zip()</router-link>

docs/cheatsheet/exception-handling.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,10 @@ Handling a custom exception is the same as any other:
134134
...
135135
# My custom exception was raised
136136
```
137+
138+
## Relevant links
139+
140+
- <router-link to="/cheatsheet/control-flow">Control Flow</router-link>
141+
- <router-link to="/builtin/breakpoint">breakpoint()</router-link>
142+
- <router-link to="/builtin/isinstance">isinstance()</router-link>
143+
- <router-link to="/builtin/issubclass">issubclass()</router-link>

0 commit comments

Comments
 (0)