@@ -18,19 +18,34 @@ You may like to render these widgets yourself in Markdown documents, for example
18
18
19
19
Widgets can be used wherever you can use Markdown, such as documentation, approaches and student/mentor discussions.
20
20
21
- They are rendered using the following format
21
+ They are rendered using the following format:
22
22
23
23
``` md
24
- [<type>:<track-slug>/<type-slug >]()
24
+ [<type>:<id >]()
25
25
```
26
26
27
+ The ` <type> ` and ` <id> ` parts are variable and depend on the actual widget being used.
28
+
27
29
The link reference, i.e. the contents of ` () ` , is ignored by the website. You can point them at whatever you want for maintenance purposes.
28
30
31
+ ## Exercise widget
32
+
33
+ Link format: ` [exercise:<track-slug>/<exercise-slug>]() `
34
+
35
+ ### Example
36
+
37
+ ``` markdown
38
+ Great job on solving this exercise! Some other exercises that you might also like to try:
39
+
40
+ - [exercise:fsharp/anagram]()
41
+ - [exercise:fsharp/isogram]()
42
+ ```
43
+
29
44
## Concept widget
30
45
31
46
Link format: ` [concept:<track-slug>/<concept-slug>]() `
32
47
33
- ### Example: list
48
+ ### Example
34
49
35
50
``` markdown
36
51
There are three primary conditional statements that are used in Julia:
@@ -40,15 +55,27 @@ There are three primary conditional statements that are used in Julia:
40
55
- [concept:julia/short-circuiting]()
41
56
```
42
57
43
- ## Exercise widget
58
+ ## Approach widget
44
59
45
- Link format: ` [exercise :<track-slug>/<exercise-slug>]() `
60
+ Link format: ` [approach :<track-slug>/<exercise-slug>/<approach -slug>]() `
46
61
47
- ### Example: list
62
+ ### Example
48
63
49
64
``` markdown
50
- Great job on solving this exercise! Some other exercises that you might also like to try:
65
+ Here are some approaches you might want to checkout!
51
66
52
- - [exercise:fsharp/anagram]()
53
- - [exercise:fsharp/isogram]()
67
+ - [approach:csharp/two-fer/method-overloading]()
68
+ - [approach:csharp/two-fer/optional-parameter]()
69
+ ```
70
+
71
+ ## Article widget
72
+
73
+ Link format: ` [article:<track-slug>/<exercise-slug>/<article-slug>]() `
74
+
75
+ ### Example
76
+
77
+ ``` markdown
78
+ We have an article you might be interested in:
79
+
80
+ - [article:csharp/reverse-string/performance]()
54
81
```
0 commit comments