Skip to content

Replace the Tutorial with the Guide.#16657

Merged
bors merged 2 commits into
rust-lang:masterfrom
steveklabnik:goodbye_tutorial
Sep 12, 2014
Merged

Replace the Tutorial with the Guide.#16657
bors merged 2 commits into
rust-lang:masterfrom
steveklabnik:goodbye_tutorial

Conversation

@steveklabnik

Copy link
Copy Markdown
Contributor

The Guide isn't 100% perfect, but it's basically complete. It's
certainly better than the tutorial is. Time to start pointing more
people its way.

I also just made it consistent to call all things 'guides' rather than
tutorials.

Fixes #9874. This is the big one.

And two bugs that just go away.

Fixes #14503.
Fixes #15009.

@huonw

huonw commented Aug 21, 2014

Copy link
Copy Markdown
Contributor

This kills all links to the tutorial over the internet; maybe it could be replaced with a more graceful "deprecation" page?

@steveklabnik

Copy link
Copy Markdown
Contributor Author

That's true. We may want to leave that up for a bit. Previous things just got nuked, but it might be nice to be more graceful here.

@steveklabnik

Copy link
Copy Markdown
Contributor Author

@huonw fixed, at least the basics. what do you think?

Comment thread src/doc/index.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, wait; I see you've adjusted the PDF generation above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! and the link won't work until this all gets generated.

@steveklabnik

Copy link
Copy Markdown
Contributor Author

@brson this one is good to go, though 😉 😄

@adrientetar

Copy link
Copy Markdown
Contributor

You have added the new guide to LaTeX PDF build rules instead of the tutorial but it can’t build it properly, I’d say it’s hitting #12804.

@steveklabnik

Copy link
Copy Markdown
Contributor Author

It builds properly locally.

@adrientetar

Copy link
Copy Markdown
Contributor

Incl. LaTeX PDF docs? (it’s optional) Are you using pdflatex as a compiler?

@steveklabnik

Copy link
Copy Markdown
Contributor Author

yup.

@steveklabnik

Copy link
Copy Markdown
Contributor Author

Rebased to remove the (odd) merge conflict.

I still have no idea why this works for me but fails on the buildbot. Can anyone help?

@brson

brson commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

Awesome news! I can't reproduce this on the bots...

@brson

brson commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

Oh, wait. I can. WTF.

@brson

brson commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

For some reason, the build succeeded the first try. On the second try, guide.pdf does get created, but the build still fails.

@brson

brson commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

And that time the build succeeded...

@brson

brson commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

Oh, I see what's happening. Because the build failure leaves guide.pdf on disk, subsequent runs succeed.

@steveklabnik

Copy link
Copy Markdown
Contributor Author

Rebased off of HEAD again

@brson

brson commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

pdflatex gives no indication what the error is. both things that it prints appear to be 'normal'; just returns an error code of 1 for mysterious reasons.

@brson

brson commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

Ah, indeed the problem is #12804. If you run pdflatex not in 'batchmode' it prints

! Package inputenc Error: Unicode char \u8:π not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.

@steveklabnik

Copy link
Copy Markdown
Contributor Author

Oh iiiiinteresting. That'd be why I couldn't fix it locally, because I had a guide.pdf.

@brson

brson commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

I'm preparing the patch @adrientetar suggests, preferring lualatex to pdflatex. Need to make sure the snapshot bots understand luatex.

@brson

brson commented Sep 10, 2014

Copy link
Copy Markdown
Contributor

The dist/snap bots have xalatex, not lualatex, and it seems to not work correctly, so more work to do.

@huonw

huonw commented Sep 10, 2014

Copy link
Copy Markdown
Contributor

This would also be fixed by #16300/#16991 by allowing the guide to type $\pi$ instead of the unicode character.

@steveklabnik

Copy link
Copy Markdown
Contributor Author

@huonw while that's true, handling unicode characters is still very, very useful.

@huonw

huonw commented Sep 10, 2014

Copy link
Copy Markdown
Contributor

I don't disagree, but this provides a low-automation way to land this. :)

bors added a commit that referenced this pull request Sep 11, 2014
Bugs in pdflatex (#12804) are preventing the guide from landing (#16657). This solves the immediate problem by changing the build system to prefer lualatex, xelatex to pdflatex (which is apparently obsolete). Because the xelatex on the snapshot bot seems to completely ignore the `-output-directory` option, I also had to frob the makefiles a bit for that case.
@brson

brson commented Sep 11, 2014

Copy link
Copy Markdown
Contributor

Needs rebase.

The Guide isn't 100% perfect, but it's basically complete. It's
certainly better than the tutorial is. Time to start pointing more
people its way.

I also just made it consistent to call all things 'guides' rather than
tutorials.

Fixes rust-lang#9874. This is the big one.

And two bugs that just go away.

Fixes rust-lang#14503.
Fixes rust-lang#15009.
@steveklabnik

Copy link
Copy Markdown
Contributor Author

Foiled by my own PR!

Updated.

bors added a commit that referenced this pull request Sep 12, 2014
The Guide isn't 100% perfect, but it's basically complete. It's
certainly better than the tutorial is. Time to start pointing more
people its way.

I also just made it consistent to call all things 'guides' rather than
tutorials.

Fixes #9874. This is the big one.

And two bugs that just go away.

Fixes #14503.
Fixes #15009.
@bors bors closed this Sep 12, 2014
@bors bors merged commit c456cca into rust-lang:master Sep 12, 2014
@steveklabnik steveklabnik deleted the goodbye_tutorial branch October 25, 2017 18:26
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.

The tutorial still references the old ~ syntax for boxed pointers tutorial: two kinds of box? Rewrite the intro tutorial

5 participants