Skip to content

Commit

Permalink
feat: add pretty-printing and redis chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
gvwilson committed Apr 18, 2024
1 parent 0b87b12 commit 7530d5e
Show file tree
Hide file tree
Showing 11 changed files with 114 additions and 26 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ that most programmers have never encountered.
| Norbert Hajagos | HajagosNorbert | file transfer | ftp |
| Norbert Hajagos | HajagosNorbert | discrete event simulation | des |
| Stuart Hinson | stuarth | pattern matching | match |
| Stuart Hinson | stuarth | redis data store | redis |
| Nathaniel Knight | nathanielknight | random number generation | prng |
| Monica McGuigan | monmcguigan | JSON codec | json |
| Abhinav Sarkar | abhin4v | pretty printing | pretty |
| Fabian Schmalzried | FabHof | binary data packing | binary |
| Isaac Van Doren | isaacvando | compression | compress |
| Isaac Van Doren | isaacvando | HTML templates | template |
Expand Down
4 changes: 4 additions & 0 deletions _data/contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
personal: "Monica"
github: "monmcguigan"

- family: "Sarkar"
personal: "Abhinav"
github: "abhin4v"

- family: "Schmalzried"
personal: "Fabian"
github: "FabHof"
Expand Down
2 changes: 2 additions & 0 deletions _data/order.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ chapters:
- backup
- diff
- json
- pretty
- prng
- binary
- ci
Expand All @@ -11,6 +12,7 @@ chapters:
- template
- svg
- match
- redis
- completion
- proptest
- des
Expand Down
10 changes: 10 additions & 0 deletions _data/topic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@
github:
- "agu-z"

- slug: "pretty"
title: "Pretty Printing"
github:
- "abhin4v"

- slug: "prng"
title: "Pseudorandom Number Generator"
github:
Expand All @@ -91,6 +96,11 @@
github:
- "sophiecollard"

- slug: "redis"
title: "A Redis-Like Data Store"
github:
- "stuarth"

- slug: "references"
title: "References"

Expand Down
2 changes: 2 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ <h1>Software Design by Example in Roc</h1>
<li><a href="./backup/">File Backup</a></li>
<li><a href="./diff/">File Diffing</a></li>
<li><a href="./json/">JSON Encoding and Decoding</a></li>
<li><a href="./pretty/">Pretty Printing</a></li>
<li><a href="./prng/">Pseudorandom Number Generator</a></li>
<li><a href="./binary/">Binary Data Packing</a></li>
<li><a href="./ci/">Continuous Integration</a></li>
Expand All @@ -31,6 +32,7 @@ <h1>Software Design by Example in Roc</h1>
<li><a href="./template/">HTML Templates</a></li>
<li><a href="./svg/">SVG Rendering</a></li>
<li><a href="./match/">Pattern Matching</a></li>
<li><a href="./redis/">A Redis-Like Data Store</a></li>
<li><a href="./completion/">Autocompletion</a></li>
<li><a href="./proptest/">Property-Based Testing</a></li>
<li><a href="./des/">Discrete Event Simulation</a></li>
Expand Down
29 changes: 29 additions & 0 deletions docs/pretty/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Software Design by Example in Roc</title>
<link rel="shortcut icon" type="image/x-icon" href="/book-of-examples/favicon.svg">
<link rel="stylesheet" href="/book-of-examples/bw.css" type="text/css">
<link rel="stylesheet" href="/book-of-examples/site.css" type="text/css">

</head>
<body>
<main>
<h1>Pretty Printing</h1>
<p class="author">Written by <a href="https://github.com/abhin4v">Abhinav Sarkar</a>
</p>



</main>
<footer>
Copyright © the contributors 2024
&middot;
<a href="https://github.com/roc-lang/book-of-examples">GitHub repository</a>
</footer>

</body>
</html>
29 changes: 29 additions & 0 deletions docs/redis/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Software Design by Example in Roc</title>
<link rel="shortcut icon" type="image/x-icon" href="/book-of-examples/favicon.svg">
<link rel="stylesheet" href="/book-of-examples/bw.css" type="text/css">
<link rel="stylesheet" href="/book-of-examples/site.css" type="text/css">

</head>
<body>
<main>
<h1>A Redis-Like Data Store</h1>
<p class="author">Written by <a href="https://github.com/stuarth">Stuart Hinson</a>
</p>



</main>
<footer>
Copyright © the contributors 2024
&middot;
<a href="https://github.com/roc-lang/book-of-examples">GitHub repository</a>
</footer>

</body>
</html>
2 changes: 1 addition & 1 deletion docs/robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sitemap: /book-of-examples/sitemap.xml
Sitemap: http://localhost:4000/book-of-examples/sitemap.xml
56 changes: 31 additions & 25 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,79 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>/book-of-examples/conduct/</loc>
<loc>http://localhost:4000/book-of-examples/conduct/</loc>
</url>
<url>
<loc>/book-of-examples/governance/</loc>
<loc>http://localhost:4000/book-of-examples/governance/</loc>
</url>
<url>
<loc>/book-of-examples/des/</loc>
<loc>http://localhost:4000/book-of-examples/des/</loc>
</url>
<url>
<loc>/book-of-examples/intro/</loc>
<loc>http://localhost:4000/book-of-examples/intro/</loc>
</url>
<url>
<loc>/book-of-examples/match/</loc>
<loc>http://localhost:4000/book-of-examples/redis/</loc>
</url>
<url>
<loc>/book-of-examples/references/</loc>
<loc>http://localhost:4000/book-of-examples/match/</loc>
</url>
<url>
<loc>/book-of-examples/ci/</loc>
<loc>http://localhost:4000/book-of-examples/references/</loc>
</url>
<url>
<loc>/book-of-examples/gallery/</loc>
<loc>http://localhost:4000/book-of-examples/ci/</loc>
</url>
<url>
<loc>/book-of-examples/template/</loc>
<loc>http://localhost:4000/book-of-examples/gallery/</loc>
</url>
<url>
<loc>/book-of-examples/completion/</loc>
<loc>http://localhost:4000/book-of-examples/template/</loc>
</url>
<url>
<loc>/book-of-examples/diff/</loc>
<loc>http://localhost:4000/book-of-examples/completion/</loc>
</url>
<url>
<loc>/book-of-examples/parser/</loc>
<loc>http://localhost:4000/book-of-examples/diff/</loc>
</url>
<url>
<loc>/book-of-examples/svg/</loc>
<loc>http://localhost:4000/book-of-examples/parser/</loc>
</url>
<url>
<loc>/book-of-examples/json/</loc>
<loc>http://localhost:4000/book-of-examples/svg/</loc>
</url>
<url>
<loc>/book-of-examples/glossary/</loc>
<loc>http://localhost:4000/book-of-examples/json/</loc>
</url>
<url>
<loc>/book-of-examples/binary/</loc>
<loc>http://localhost:4000/book-of-examples/glossary/</loc>
</url>
<url>
<loc>/book-of-examples/backup/</loc>
<loc>http://localhost:4000/book-of-examples/binary/</loc>
</url>
<url>
<loc>/book-of-examples/finale/</loc>
<loc>http://localhost:4000/book-of-examples/pretty/</loc>
</url>
<url>
<loc>/book-of-examples/editor/</loc>
<loc>http://localhost:4000/book-of-examples/backup/</loc>
</url>
<url>
<loc>/book-of-examples/proptest/</loc>
<loc>http://localhost:4000/book-of-examples/finale/</loc>
</url>
<url>
<loc>/book-of-examples/</loc>
<loc>http://localhost:4000/book-of-examples/editor/</loc>
</url>
<url>
<loc>/book-of-examples/prng/</loc>
<loc>http://localhost:4000/book-of-examples/proptest/</loc>
</url>
<url>
<loc>/book-of-examples/ftp/</loc>
<loc>http://localhost:4000/book-of-examples/</loc>
</url>
<url>
<loc>/book-of-examples/license/</loc>
<loc>http://localhost:4000/book-of-examples/prng/</loc>
</url>
<url>
<loc>/book-of-examples/misc/slides-2024-03-07.pdf</loc>
<loc>http://localhost:4000/book-of-examples/ftp/</loc>
</url>
<url>
<loc>http://localhost:4000/book-of-examples/license/</loc>
</url>
<url>
<loc>http://localhost:4000/book-of-examples/misc/slides-2024-03-07.pdf</loc>
<lastmod>2024-03-26T19:43:04-04:00</lastmod>
</url>
</urlset>
2 changes: 2 additions & 0 deletions pretty/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions redis/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---

0 comments on commit 7530d5e

Please sign in to comment.