Skip to content

Commit bc2bea1

Browse files
committed
docs(stream): update navigation links to use HTML tables
* Enhance document navigation by aligning previous and next links using HTML table formatting
1 parent 87b8ac7 commit bc2bea1

12 files changed

Lines changed: 127 additions & 20 deletions

.github/prompts/smart-renaming.prompt.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ You are working on a codebase where files inside the folder $ARGUMENT need to be
99
4. If the descriptive part of the filename is a interrogative add a "?" at the end of the description.
1010
5. If the descriptive part of the filename is a statement, just enhance the description without adding any punctuation.
1111
6. Ensure the links of the file at the end of the file is correctly pointing the next file in the sequence and the previous file in the sequence and not randomly to any files.
12-
7. Ensure the links description is correctly describing the file it is pointing to. For example, if the next file is "B Stream Characteristics.md" then the link description should be "Next: B Stream Characteristics.md" and not just "Next: SomeName.m
12+
7. Use html anchor tags and ensure the links description is correctly describing the file it is pointing to. For example, if the next file is "B Stream Characteristics.md" then the link description should be "Next: B Stream Characteristics.md" and not just "Next: SomeName.md"
13+
8. Ensure the previous link is left aligned and the next link is right aligned using HTML table formatting.
14+
9. IMPORTANT: Ensure links are working properly using href of the html for this use case.
1315

1416
### Example:
1517
Current:

src/test/java/com/github/streams/learn/concepts/A What Is A Stream?.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,13 @@ Output
6161
> Pipeline execution is covered further in [Intermediate vs Terminal Operations](./G%20Intermediate%20Vs%20Terminal%20Operations.md).
6262
6363
---
64-
[Next: B Characteristics Of A Stream.md](./B%20Characteristics%20Of%20A%20Stream.md)
64+
<table>
65+
<tr>
66+
<td style="text-align: left;">
67+
68+
</td>
69+
<td style="text-align: right;">
70+
<a href="./B%20Characteristics%20Of%20A%20Stream.md">Next: B Characteristics Of A Stream.md</a>
71+
</td>
72+
</tr>
73+
</table>

src/test/java/com/github/streams/learn/concepts/B Characteristics Of A Stream.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,13 @@ Output
3535
> Pipeline execution is covered further in [Intermediate vs Terminal Operations](./G%20Intermediate%20Vs%20Terminal%20Operations.md).
3636
3737
---
38-
[Previous: A What Is A Stream?.md](./A%20What%20Is%20A%20Stream%3F.md)
39-
[Next: C How To Create A Stream?.md](./C%20How%20To%20Create%20A%20Stream%3F.md)
38+
<table>
39+
<tr>
40+
<td style="text-align: left;">
41+
<a href="./A%20What%20Is%20A%20Stream%3F.md">Previous: A What Is A Stream?.md</a>
42+
</td>
43+
<td style="text-align: right;">
44+
<a href="./C%20How%20To%20Create%20A%20Stream%3F.md">Next: C How To Create A Stream?.md</a>
45+
</td>
46+
</tr>
47+
</table>

src/test/java/com/github/streams/learn/concepts/C How To Create A Stream?.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,13 @@ try (var lines = Files.lines(Path.of("src/test/resources/SonnetI.txt"))) {
6868
> The stream returned by `Files.lines()` must be closed after use. Use try-with-resources.
6969
7070
---
71-
[Previous: B Characteristics Of A Stream.md](./B%20Characteristics%20Of%20A%20Stream.md)
72-
[Next: D Primitive Streams.md](./D%20Primitive%20Streams.md)
71+
<table>
72+
<tr>
73+
<td style="text-align: left;">
74+
<a href="./B%20Characteristics%20Of%20A%20Stream.md">Previous: B Characteristics Of A Stream.md</a>
75+
</td>
76+
<td style="text-align: right;">
77+
<a href="./D%20Primitive%20Streams.md">Next: D Primitive Streams.md</a>
78+
</td>
79+
</tr>
80+
</table>

src/test/java/com/github/streams/learn/concepts/D Primitive Streams.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,13 @@ System.out.println(list); // [1, 2, 3, 4, 5]
3030
```
3131

3232
---
33-
[Previous: C How To Create A Stream?.md](./C%20How%20To%20Create%20A%20Stream%3F.md)
34-
[Next: E Structure Of A Stream Pipeline.md](./E%20Structure%20Of%20A%20Stream%20Pipeline.md)
33+
<table>
34+
<tr>
35+
<td style="text-align: left;">
36+
<a href="./C%20How%20To%20Create%20A%20Stream%3F.md">Previous: C How To Create A Stream?.md</a>
37+
</td>
38+
<td style="text-align: right;">
39+
<a href="./E%20Structure%20Of%20A%20Stream%20Pipeline.md">Next: E Structure Of A Stream Pipeline.md</a>
40+
</td>
41+
</tr>
42+
</table>

src/test/java/com/github/streams/learn/concepts/E Structure Of A Stream Pipeline.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,13 @@ Output
2424
> Pipeline execution is covered further in [Intermediate vs Terminal Operations](./G%20Intermediate%20Vs%20Terminal%20Operations.md).
2525
2626
---
27-
[Previous: D Primitive Streams.md](./D%20Primitive%20Streams.md)
28-
[Next: F Stream Vs Collection.md](./F%20Stream%20Vs%20Collection.md)
27+
<table>
28+
<tr>
29+
<td style="text-align: left;">
30+
<a href="./D%20Primitive%20Streams.md">Previous: D Primitive Streams.md</a>
31+
</td>
32+
<td style="text-align: right;">
33+
<a href="./F%20Stream%20Vs%20Collection.md">Next: F Stream Vs Collection.md</a>
34+
</td>
35+
</tr>
36+
</table>

src/test/java/com/github/streams/learn/concepts/F Stream Vs Collection.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,13 @@ Output
2525
```
2626

2727
---
28-
[Previous: E Structure Of A Stream Pipeline.md](./E%20Structure%20Of%20A%20Stream%20Pipeline.md)
29-
[Next: G Intermediate Vs Terminal Operations.md](./G%20Intermediate%20Vs%20Terminal%20Operations.md)
28+
<table>
29+
<tr>
30+
<td style="text-align: left;">
31+
<a href="./E%20Structure%20Of%20A%20Stream%20Pipeline.md">Previous: E Structure Of A Stream Pipeline.md</a>
32+
</td>
33+
<td style="text-align: right;">
34+
<a href="./G%20Intermediate%20Vs%20Terminal%20Operations.md">Next: G Intermediate Vs Terminal Operations.md</a>
35+
</td>
36+
</tr>
37+
</table>

src/test/java/com/github/streams/learn/concepts/G Intermediate Vs Terminal Operations.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,13 @@ Output
3737
```
3838

3939
---
40-
[Previous: F Stream Vs Collection.md](./F%20Stream%20Vs%20Collection.md)
41-
[Next: H Lazy Evaluation.md](./H%20Lazy%20Evaluation.md)
40+
<table>
41+
<tr>
42+
<td style="text-align: left;">
43+
<a href="./F%20Stream%20Vs%20Collection.md">Previous: F Stream Vs Collection.md</a>
44+
</td>
45+
<td style="text-align: right;">
46+
<a href="./H%20Lazy%20Evaluation.md">Next: H Lazy Evaluation.md</a>
47+
</td>
48+
</tr>
49+
</table>

src/test/java/com/github/streams/learn/concepts/H Lazy Evaluation.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,13 @@ Streams are lazy. Most operations do not run when you write them. They run only
1919
</table>
2020

2121
---
22-
[Previous: G Intermediate Vs Terminal Operations.md](./G%20Intermediate%20Vs%20Terminal%20Operations.md)
23-
[Next: I Single Use Streams.md](./I%20Single%20Use%20Streams.md)
22+
<table>
23+
<tr>
24+
<td style="text-align: left;">
25+
<a href="./G%20Intermediate%20Vs%20Terminal%20Operations.md">Previous: G Intermediate Vs Terminal Operations.md</a>
26+
</td>
27+
<td style="text-align: right;">
28+
<a href="./I%20Single%20Use%20Streams.md">Next: I Single Use Streams.md</a>
29+
</td>
30+
</tr>
31+
</table>

src/test/java/com/github/streams/learn/concepts/I Single Use Streams.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,13 @@ System.out.println(count);
2626
```
2727

2828
---
29-
[Previous: H Lazy Evaluation.md](./H%20Lazy%20Evaluation.md)
30-
[Next: J Optional Results.md](./J%20Optional%20Results.md)
29+
<table>
30+
<tr>
31+
<td style="text-align: left;">
32+
<a href="./H%20Lazy%20Evaluation.md">Previous: H Lazy Evaluation.md</a>
33+
</td>
34+
<td style="text-align: right;">
35+
<a href="./J%20Optional%20Results.md">Next: J Optional Results.md</a>
36+
</td>
37+
</tr>
38+
</table>

0 commit comments

Comments
 (0)