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

Tweaks to guides and rustbook #20802

Merged
merged 4 commits into from
Jan 10, 2015
Merged

Tweaks to guides and rustbook #20802

merged 4 commits into from
Jan 10, 2015

Conversation

huonw
Copy link
Member

@huonw huonw commented Jan 9, 2015

There is likely to be new users with the alpha release, and there are a lot of documents on the internet (StackOverflow, reddit, blogs) that refer to these guides, so emitting a more helpful error than "404" is nice. Hence, I've temporarily reinstated stub documents for each of the old guides, referring to as relevant a part of the book as possible.

Also, rustbook was silently ignoring some errors, which lead to an inconsistency with directory creation/file writing. This meant the CSS file was not being written if no doc directory existed in the users build dir (e.g. the buildbots). This should mean that the CSS will appear automatically in later builds.

huonw added 3 commits January 9, 2015 19:47
There are hundreds of stackoverflow answers, reddit posts and blog
articles that link to these documents, so it's a nicer user experience
if they're not plain 404s.

The intention is to let these hang around only for relatively short
while. The alpha is likely to bring in many new users and they will be
reading the documents mentioned above.
Silently ignoring errors is :( so lets not silently ignore them. huon is
:) now.
Without this, rustbook was failing because it was expecting the
directory to exist. (Previously, rustbook was just silently failing to
install the CSS files due to this.)
@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@huonw
Copy link
Member Author

huonw commented Jan 9, 2015

r? @steveklabnik

The URL previously caused the book to require an internet connection to
get the full styling, this should mean no internet is required.
@steveklabnik
Copy link
Member

Thanks @huonw ! ❤️

bors added a commit that referenced this pull request Jan 9, 2015
There is likely to be new users with the alpha release, and there are a lot of documents on the internet (StackOverflow, reddit, blogs) that refer to these guides, so emitting a more helpful error than "404" is nice. Hence, I've temporarily reinstated stub documents for each of the old guides, referring to as relevant a part of the book as possible.

Also, rustbook was silently ignoring some errors, which lead to an inconsistency with directory creation/file writing. This meant the CSS file was not being written if no `doc` directory existed in the users build dir (e.g. the buildbots). This should mean that the CSS will appear automatically in later builds.
bors added a commit that referenced this pull request Jan 10, 2015
There is likely to be new users with the alpha release, and there are a lot of documents on the internet (StackOverflow, reddit, blogs) that refer to these guides, so emitting a more helpful error than "404" is nice. Hence, I've temporarily reinstated stub documents for each of the old guides, referring to as relevant a part of the book as possible.

Also, rustbook was silently ignoring some errors, which lead to an inconsistency with directory creation/file writing. This meant the CSS file was not being written if no `doc` directory existed in the users build dir (e.g. the buildbots). This should mean that the CSS will appear automatically in later builds.
@bors bors merged commit afe260f into rust-lang:master Jan 10, 2015
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 19, 2015
…r=alexcrichton

This removes the extra "the" from the phrase "the the Rust Programming Language book", which isn't particularly grammatical, in stub documents introduced in rust-lang#20802 to direct users from the old guides to the corresponding sections of the book.
barosl added a commit to barosl/rust that referenced this pull request Jan 20, 2015
…r=alexcrichton

This removes the extra "the" from the phrase "the the Rust Programming Language book", which isn't particularly grammatical, in stub documents introduced in rust-lang#20802 to direct users from the old guides to the corresponding sections of the book.
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.

6 participants