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

Streamline "Getting Started" #1279

Merged
merged 4 commits into from
Dec 24, 2021

Conversation

nnethercote
Copy link
Contributor

The "Getting Started" chapter begins with:

This documentation is not intended to be comprehensive; it is meant to be a quick guide for the most useful things.

But this isn't true! For a lot of things the "Getting Started" chapter has as much or more detail than subsequent chapters.

This PR streamlines some parts of "Getting Started", so it genuinely is just a brief guide. Extraneous details are removed or moved into the appropriate later chapter.

In "Getting Started", strip it back to the bare minimum. Some of this is
moved into the later section.

In the later section, add notable details like config.toml.example how
and `profile` works. Also make the config.toml example more concise.
Less detail in "Getting Started", more in the later sections.
Less detail in "Getting Started", more in the later sections.
@nnethercote nnethercote requested a review from jyn514 December 23, 2021 22:18
@nnethercote
Copy link
Contributor Author

There's a lot more that could be done on this front. In particular the three "Building and Testing ..." sections of "Getting Started" contain a huge amount of detail, a lot of repetition just within themselves, as well as duplicating a lot of what's in later chapters. But I thought I'd start with some smaller pieces just to see what people's appetite is for changes of this sort :)

@nnethercote nnethercote requested review from mark-i-m and removed request for jyn514 December 24, 2021 06:27
@spastorino
Copy link
Member

This is way better than what we had, so I'm merging this.

There's a lot more that could be done on this front. In particular the three "Building and Testing ..." sections of "Getting Started" contain a huge amount of detail, a lot of repetition just within themselves, as well as duplicating a lot of what's in later chapters. But I thought I'd start with some smaller pieces just to see what people's appetite is for changes of this sort :)

Yeah, this is completely right. I've seen a ton of repetition and things there that could be improved.

@spastorino spastorino merged commit a11e5f4 into rust-lang:master Dec 24, 2021
@nnethercote nnethercote deleted the streamline-getting-started branch December 24, 2021 21:55
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jan 4, 2022
Update books

## reference

3 commits in 06f9e61931bcf58b91dfe6c924057e42ce273ee1..f8ba2f12df60ee19b96de24ae5b73af3de8a446b
2021-12-17 07:31:40 -0800 to 2022-01-03 11:02:08 -0800
- Switch the default edition for examples to 2021 (rust-lang/reference#1125)
- Clarify behavior of x87 FP registers in inline assembly (rust-lang/reference#1126)
- Add inline assembly to the reference (rust-lang/reference#1105)

## book

36 commits in 8a0bb3c96e71927b80fa2286d7a5a5f2547c6aa4..d3740fb7aad0ea4a80ae20f64dee3a8cfc0c5c3c
2021-12-22 20:54:27 -0500 to 2022-01-03 21:46:04 -0500
- Add a concrete example of an optional value. Fixes rust-lang/book#2848.
- match isn't really an operator. Fixes rust-lang/book#2859
- Edits to edits of chapter 6
- Make fixes recommended by shellcheck
- Use shellcheck
- SIGH fix all the typos that were missed while spellcheck was broken
- SIGH add all the words to the dictionary that were missed while spellcheck was broken
- Remove test_harness from the dictionary
- sigh, the xkcd sandwich one
- Install aspell in CI
- set -eu in all bash scripts
- typo: assignement -> assignment
- Fix quotes
- Snapshot of ch12 for nostarch
- Use 'static lifetime earlier because that's more correct. Fixes rust-lang/book#2864.
- Add does_not_compile annotation to intermediate steps that don't compile
- Sidestep who provides output streams. Fixes rust-lang/book#2933.
- Remove note about primitive obsession. Fixes rust-lang/book#2863.
- Remove sentence encouraging writing tests on your own. Fixes rust-lang/book#2223.
- Bump mdBook version to 0.4.14 in workflow main.yml
- Past tense make better sense
- Past tense makes better sense
- Update the edition in all the listings' Cargo.toml
- Update the book to either say 2021 edition or not talk about editions
- Remove most of the 2018 edition text from the title page. Fixes rust-lang/book#2852.
- Fix word wrapping
- Emphasize return type is mandatory
- fix title capitalization
- Further edits to mention of --include-ignored, propagate to src
- feat: mention `cargo test -- --include-ignored`
- wording: get rid of "to from"
- interchanged position of `binary` and `library`
- Fix wrong word typo
- Further edits in rust-analyzer text
- appendix-04 IDE integration: Replaced rls by rust-analyzer
- Update link to Italian translation. Connects to rust-lang/book#2484.

## rustc-dev-guide

3 commits in 9bf0028..8754644
2021-12-20 21:53:57 +0900 to 2021-12-28 22:17:49 -0600
- Update link to moved section (rust-lang/rustc-dev-guide#1282)
- Fix link in contributing.md (rust-lang/rustc-dev-guide#1280)
- Streamline "Getting Started" (rust-lang/rustc-dev-guide#1279)
nnethercote added a commit to nnethercote/rustc-dev-guide that referenced this pull request Jan 5, 2022
This is a follow-up to rust-lang#1279.

The "Getting Started" chapter is, TBH, pretty bad when it comes to the
stuff about building and testing. It has far too much detail and lots of
repetition, which would be overwhelming to a newcomer.

This commit removes most of it, leaving behind just quick mentions of
the most common `x.py` commands: `check`, `build`, `test`, `fmt`, with
links to the appropriate chapters for details. There were a few
interesting details that weren't covered elsewhere, so I moved those
into other chapters.
jyn514 pushed a commit that referenced this pull request Jan 6, 2022
This is a follow-up to #1279.

The "Getting Started" chapter is, TBH, pretty bad when it comes to the
stuff about building and testing. It has far too much detail and lots of
repetition, which would be overwhelming to a newcomer.

This commit removes most of it, leaving behind just quick mentions of
the most common `x.py` commands: `check`, `build`, `test`, `fmt`, with
links to the appropriate chapters for details. There were a few
interesting details that weren't covered elsewhere, so I moved those
into other chapters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants