From 94127a730b3374a6d83861490ada79490e8423a7 Mon Sep 17 00:00:00 2001 From: Cem Karan Date: Tue, 16 Feb 2021 10:01:16 -0500 Subject: [PATCH] feat: Added additional resources to learn.rust-lang.org. Added 3 additional resources to learn.rust-lang.org in their own section: - https://rust-lang.github.io/api-guidelines - https://rust-unofficial.github.io/patterns - https://rust-lang-nursery.github.io/rust-cookbook **NOTE!** This commit requires additional work; I am not fluent in any language other than US English, and so haven't attempted to add translations. native speakers that are able to make the necessary changes are required here. --- locales/en-US/learn.ftl | 13 +++++++++++++ templates/learn/index.hbs | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/locales/en-US/learn.ftl b/locales/en-US/learn.ftl index fae6736a1..c04dd1892 100644 --- a/locales/en-US/learn.ftl +++ b/locales/en-US/learn.ftl @@ -64,6 +64,19 @@ learn-unstable-alt = A hand sharing sparkles learn-unstable = The Unstable Book has documentation for unstable features that you can only use with nightly Rust. learn-unstable-button = Read the unstable book +## Additional resources + +learn-additional-resources = Additional, as-yet unofficial, documentation that may be of help to you. + +learn-additional-resources-api-guidelines = The The Rust API Guidelines provide a concise list of things to do while designing a crate. Make your crate awesome; follow the guidelines. +learn-additional-resources-api-guidelines-button = Read the guidelines + +learn-additional-resources-design-patterns = Common Rust design patterns. Ever heard of the builder pattern and wanted to learn more? Ever wondered about idiomatic Rust? Look here. +learn-additional-resources-design-patterns-button = Read the design patterns + +learn-additional-resources-cookbook = Rust recipes. You're busy, and you need some good code, right now. This might have the snippet you need. +learn-additional-resources-cookbook-button = Read the cookbook + ## learn/get-started.hbs learn-get-started-page-title = { getting-started } diff --git a/templates/learn/index.hbs b/templates/learn/index.hbs index da2c39025..bf9d35d06 100644 --- a/templates/learn/index.hbs +++ b/templates/learn/index.hbs @@ -198,5 +198,40 @@ +
+
+
+

{{fluent "learn-additional-resources"}}

+
+
+
+
+
+

{{fluent "learn-additional-resources-api-guidelines"}}

+ +
+
+
+
+

{{fluent "learn-additional-resources-design-patterns"}}

+ +
+
+
+
+

{{fluent "learn-additional-resources-cookbook"}}

+ +
+
+
+
+
+ {{/inline}} {{~> (parent)~}}