Skip to content

Commit

Permalink
Add dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed May 10, 2024
1 parent 887b3c9 commit 850e290
Showing 1 changed file with 37 additions and 20 deletions.
57 changes: 37 additions & 20 deletions render/templates/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<!--
<!--
⚠️⚠️ WARNING: This file is generated by `make render`. Do not edit manually!
See `CONTRIBUTING.md` for more information.
-->

![Logo](assets/idiomatic-rust.png)
<picture >
<source media="(prefers-color-scheme: dark)" srcset="assets/idiomatic-rust-dark.png">
<img src="assets/idiomatic-rust.png" />
</picture>

[![Check Links](https://github.com/mre/idiomatic-rust/workflows/Check%20Links/badge.svg)](https://github.com/mre/idiomatic-rust/actions/workflows/check_links.yml)

This repository collects resources for writing clean, idiomatic Rust code.
You can find a sortable/searchable version of this list [here](https://corrode.dev/idiomatic-rust/).

> *Idiomatic* coding means following the conventions of a given language. It is
> _Idiomatic_ coding means following the conventions of a given language. It is
> the most concise, convenient, and common way of accomplishing a task in that
> language, rather than forcing it to work in a way the author is familiar with
> from a different language. - Adapted from [Tim
Expand All @@ -19,50 +22,65 @@ You can find a sortable/searchable version of this list [here](https://corrode.d
Contributions welcome! To add missing resources, [please refer to the contributing documentation](https://github.com/mre/idiomatic-rust/blob/master/CONTRIBUTING.md).

## ⚙ Projects

{% for project in projects %}
* [{{ project.title }}]({{ project.url }}) — {{ project.description }}
{%- endfor %}

- [{{ project.title }}]({{ project.url }}) — {{ project.description }}
{%- endfor %}

## 🏋 Workshops

{% for workshop in workshops %}
* [{{ workshop.title }}]({{ workshop.url }}) — {{ workshop.description }}
{%- endfor %}

- [{{ workshop.title }}]({{ workshop.url }}) — {{ workshop.description }}
{%- endfor %}

## 📖 Books

{% for book in books %}
* [{{ book.title }}]({{ book.url }}) — {{ book.description }}
{%- endfor %}

- [{{ book.title }}]({{ book.url }}) — {{ book.description }}
{%- endfor %}

## 📰 Articles

{% for (year, resources) in articles %}

### {{ year }}

{% for resource in resources -%}
* [{{ resource.title }}]({{ resource.url }}) — {{ resource.description }}
{% endfor %}
{%- endfor %}

- [{{ resource.title }}]({{ resource.url }}) — {{ resource.description }}
{% endfor %}
{%- endfor %}

## 🎤 Talks

{% for (year, resources) in talks %}

### {{ year }}

{% for resource in resources -%}
* {{ resource.title }} — {{ resource.description }} [[Video]({{ resource.url }})]
{% endfor %}
{%- endfor %}

- {{ resource.title }} — {{ resource.description }} [[Video]({{ resource.url }})]
{% endfor %}
{%- endfor %}

## 💬 Forum

{% for (year, resources) in forum %}

### {{ year }}

{% for resource in resources -%}
* [{{ resource.title }}]({{ resource.url }})
{% endfor %}
{%- endfor %}

- [{{ resource.title }}]({{ resource.url }})
{% endfor %}
{%- endfor %}

## 📜 History

Coming from Python, I loved the guidelines on how *idiomatic Python* looks like. I was inspired by the likes of Peter Norvig, who wrote amazing articles on [spellcheckers](https://norvig.com/spell-correct.html) and [sudoku solvers](https://norvig.com/sudoku.html); and, of course, the [Zen of Python](https://www.python.org/dev/peps/pep-0020/). For Rust, there is no such thing as the Zen of Python, however, so I started collecting my own resources.
Coming from Python, I loved the guidelines on how _idiomatic Python_ looks like. I was inspired by the likes of Peter Norvig, who wrote amazing articles on [spellcheckers](https://norvig.com/spell-correct.html) and [sudoku solvers](https://norvig.com/sudoku.html); and, of course, the [Zen of Python](https://www.python.org/dev/peps/pep-0020/). For Rust, there is no such thing as the Zen of Python, however, so I started collecting my own resources.
The goal of this project is to create a peer-reviewed collection of articles/talks/repos, which teach idiomatic Rust style. It's a community project and you can contribute.

## 🔏 License
Expand All @@ -71,4 +89,3 @@ The goal of this project is to create a peer-reviewed collection of articles/tal

To the extent possible under law, [Matthias Endler](https://endler.dev) has waived all copyright and related or neighboring rights to this work.
Logo adapted from [FreePik.com](https://www.freepik.com/free-vector/crabs-pattern-design_1093131.htm).

0 comments on commit 850e290

Please sign in to comment.