Add dark mode

This commit is contained in:
Matthias 2024-05-10 11:04:49 +02:00
parent 887b3c957b
commit 850e2904e2

View file

@ -1,16 +1,19 @@
<!-- <!--
⚠️⚠️ WARNING: This file is generated by `make render`. Do not edit manually! ⚠️⚠️ WARNING: This file is generated by `make render`. Do not edit manually!
See `CONTRIBUTING.md` for more information. 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) [![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. 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/). 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 > 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 > language, rather than forcing it to work in a way the author is familiar with
> from a different language. - Adapted from [Tim > from a different language. - Adapted from [Tim
@ -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). Contributions welcome! To add missing resources, [please refer to the contributing documentation](https://github.com/mre/idiomatic-rust/blob/master/CONTRIBUTING.md).
## ⚙ Projects ## ⚙ Projects
{% for project in projects %} {% for project in projects %}
* [{{ project.title }}]({{ project.url }}) — {{ project.description }}
{%- endfor %} - [{{ project.title }}]({{ project.url }}) — {{ project.description }}
{%- endfor %}
## 🏋 Workshops ## 🏋 Workshops
{% for workshop in workshops %} {% for workshop in workshops %}
* [{{ workshop.title }}]({{ workshop.url }}) — {{ workshop.description }}
{%- endfor %} - [{{ workshop.title }}]({{ workshop.url }}) — {{ workshop.description }}
{%- endfor %}
## 📖 Books ## 📖 Books
{% for book in books %} {% for book in books %}
* [{{ book.title }}]({{ book.url }}) — {{ book.description }}
{%- endfor %} - [{{ book.title }}]({{ book.url }}) — {{ book.description }}
{%- endfor %}
## 📰 Articles ## 📰 Articles
{% for (year, resources) in articles %} {% for (year, resources) in articles %}
### {{ year }} ### {{ year }}
{% for resource in resources -%} {% for resource in resources -%}
* [{{ resource.title }}]({{ resource.url }}) — {{ resource.description }}
{% endfor %} - [{{ resource.title }}]({{ resource.url }}) — {{ resource.description }}
{%- endfor %} {% endfor %}
{%- endfor %}
## 🎤 Talks ## 🎤 Talks
{% for (year, resources) in talks %} {% for (year, resources) in talks %}
### {{ year }} ### {{ year }}
{% for resource in resources -%} {% for resource in resources -%}
* {{ resource.title }} — {{ resource.description }} [[Video]({{ resource.url }})]
{% endfor %} - {{ resource.title }} — {{ resource.description }} [[Video]({{ resource.url }})]
{%- endfor %} {% endfor %}
{%- endfor %}
## 💬 Forum ## 💬 Forum
{% for (year, resources) in forum %} {% for (year, resources) in forum %}
### {{ year }} ### {{ year }}
{% for resource in resources -%} {% for resource in resources -%}
* [{{ resource.title }}]({{ resource.url }})
{% endfor %} - [{{ resource.title }}]({{ resource.url }})
{%- endfor %} {% endfor %}
{%- endfor %}
## 📜 History ## 📜 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. 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 ## 🔏 License
@ -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. 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). Logo adapted from [FreePik.com](https://www.freepik.com/free-vector/crabs-pattern-design_1093131.htm).