Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added additional resources to learn.rust-lang.org. #1446

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions locales/en-US/learn.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cite>The Rust API Guidelines</cite> 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 }
Expand Down
35 changes: 35 additions & 0 deletions templates/learn/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,40 @@
</div>
</section>

<section id="learn-additional-resources" class="white">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<header>
<h2>{{fluent "learn-additional-resources"}}</h2>
<div class="highlight"></div>
</header>
<section class="flex flex-column flex-row-l pv0-l">
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb6-ns ph4-l">
<div class="v-top pl4 pl0-l pt3-l measure-wide-l flex-l flex-column-l flex-auto-l">
<p class="flex-grow-1">{{fluent "learn-additional-resources-api-guidelines"}}</p>
<div class="buttons">
<a class="button button-secondary" href="https://rust-lang.github.io/api-guidelines/">{{fluent "learn-additional-resources-api-guidelines-button"}}</a>
</div>
</div>
</div>
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb6-ns ph4-l">
<div class="v-top pl4 pl0-l pt3-l measure-wide-l flex-l flex-column-l flex-auto-l">
<p class="flex-grow-1">{{fluent "learn-additional-resources-design-patterns"}}</p>
<div class="buttons">
<a class="button button-secondary" href="https://rust-unofficial.github.io/patterns/">{{fluent "learn-additional-resources-design-patterns-button"}}</a>
</div>
</div>
</div>
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb6-ns ph4-l">
<div class="v-top pl4 pl0-l pt3-l measure-wide-l flex-l flex-column-l flex-auto-l">
<p class="flex-grow-1">{{fluent "learn-additional-resources-cookbook"}}</p>
<div class="buttons">
<a class="button button-secondary" href="https://rust-lang-nursery.github.io/rust-cookbook/">{{fluent "learn-additional-resources-cookbook-button"}}</a>
</div>
</div>
</div>
</section>
</div>
</section>

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