Skip to content

Commit 6bcda98

Browse files
committed
updates chapter naming if the sub-chapters are more than 10 for maintaining lexicographical ordering on github and generated files
1 parent 665c8a1 commit 6bcda98

13 files changed

+99
-99
lines changed

Readme.md

Lines changed: 83 additions & 83 deletions
Large diffs are not rendered by default.

chapters/ch05.5-response-status-codes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,4 +379,4 @@ But in-case you're curious you can check all the status codes here:
379379
| 504 | Gateway Timeout | [Section 6.6.5](https://tools.ietf.org/html/rfc7231#section-6.6.5) |
380380
| 505 | HTTP Version Not Supported | [Section 6.6.6](https://tools.ietf.org/html/rfc7231#section-6.6.6) |
381381
382-
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.0-velocy-our-backend-framework.md)
382+
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.00-velocy-our-backend-framework.md)

chapters/ch06.0-velocy-our-backend-framework.md renamed to chapters/ch06.00-velocy-our-backend-framework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@ API rate limiting is a way to control how often clients, like apps or users, can
178178

179179
We will begin building our backend library/framework in the upcoming chapters. However, before doing so, we need to have a strong understanding of HTTP. Let's tackle that first in the next chapter.
180180

181-
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.1-basic-router-implementation.md)
181+
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.01-basic-router-implementation.md)

chapters/ch06.1-basic-router-implementation.md renamed to chapters/ch06.01-basic-router-implementation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.0-velocy-our-backend-framework.md)
1+
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.00-velocy-our-backend-framework.md)
22

33
## A basic `Router` implementation
44

@@ -524,4 +524,4 @@ Here are some general considerations, that I tend to follow:
524524
525525
We'll take everything we've learned so far and apply it to our `Router` class in the next chapter.
526526
527-
[![Read Next](/assets/imgs/prev.png)](/chapters/ch06.2-the-router-class.md)
527+
[![Read Next](/assets/imgs/prev.png)](/chapters/ch06.02-the-router-class.md)

chapters/ch06.2-the-router-class.md renamed to chapters/ch06.02-the-router-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.1-basic-router-implementation.md)
1+
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.01-basic-router-implementation.md)
22

33
## The `Router` class
44

@@ -641,4 +641,4 @@ router.get(/", function handlePostBasePath(req, res) {
641641
642642
This way, we'll provide a clean and clear interface for our clients.
643643
644-
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.3-improving-the-router-api.md)
644+
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.03-improving-the-router-api.md)

chapters/ch06.3-improving-the-router-api.md renamed to chapters/ch06.03-improving-the-router-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.2-the-router-class.md)
1+
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.02-the-router-class.md)
22

33
## Improving the `Router` API
44

@@ -162,4 +162,4 @@ $ curl http://localhost:5255/foo -v
162162

163163
Great! This looks much better than the previous implementation.
164164

165-
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.4-the-need-for-a-trie.md)
165+
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.04-the-need-for-a-trie.md)

chapters/ch06.4-the-need-for-a-trie.md renamed to chapters/ch06.04-the-need-for-a-trie.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.3-improving-the-router-api.md)
1+
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.03-improving-the-router-api.md)
22

33
## The Need for a `Trie`
44

@@ -105,4 +105,4 @@ Every node, including `root` will be an object that contain some necessary infor
105105

106106
Enough with the theory. In the next chapter, we'll dive into our very first exercise for this book: **implementing a Trie**.
107107

108-
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.5-ex-implementing-a-trie.md)
108+
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.05-ex-implementing-a-trie.md)

chapters/ch06.5-ex-implementing-a-trie.md renamed to chapters/ch06.05-ex-implementing-a-trie.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.4-the-need-for-a-trie.md)
1+
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.04-the-need-for-a-trie.md)
22

33
## Exercise 1 - Implementing a `Trie`
44

@@ -345,4 +345,4 @@ search(word) {
345345

346346
Awesome work. Now you know the basics of the `Trie` data structure and how to implement it. In the next exercise, we'll implement our `Router` from scratch! The next exercise will be more challenging and exhaustive.
347347

348-
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.6-ex-implementing-router.md)
348+
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.06-ex-implementing-router.md)

chapters/ch06.6-ex-implementing-router.md renamed to chapters/ch06.06-ex-implementing-router.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.5-ex-implementing-a-trie.md)
1+
[![Read Prev](/assets/imgs/prev.png)](/chapters/ch06.05-ex-implementing-a-trie.md)
22

33
## Exercise 2 - Implementing our Trie based `Router`
44

@@ -520,4 +520,4 @@ null
520520
521521
Everything seems to be working well. This is it for the `findRoute` method. This was much easier than our `addRoute` implementation, since we only cared about searching. Excellent, we've grasped the basics well! Now let's move on to the more advanced features in the next chapter, ie Implementing HTTP methods with our router.
522522
523-
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.7-ex-adding-http-methods.md)
523+
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.07-ex-adding-http-methods.md)

chapters/ch06.7-ex-adding-http-methods.md renamed to chapters/ch06.07-ex-adding-http-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,4 @@ findRoute(path, method) {
190190

191191
In both the `addRoute` and `findRoute` methods, we've updated the line that sets and gets the handler for a specific path. Now, the handler is stored in the `handler` map of the current node, with the HTTP method as the key.
192192

193-
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.9-ex-dynamic-routing.md)
193+
[![Read Next](/assets/imgs/next.png)](/chapters/ch06.09-ex-dynamic-routing.md)

0 commit comments

Comments
 (0)