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

Extract book into a submodule #40332

Merged
merged 12 commits into from
Mar 21, 2017
Merged

Extract book into a submodule #40332

merged 12 commits into from
Mar 21, 2017

Conversation

steveklabnik
Copy link
Member

Part of #39588

We probably don't want to land this till after the beta branches on friday, but would still ❤️ a review from @alexcrichton , since I am a rustbuild noob.

This pr:

  1. removes the book
  2. adds it back in as a submodule
  3. the submodule includes both the old book and the new book
  4. it also includes an index page explaining the difference in editions
  5. it also includes redirect pages for the old book URLs.
  6. so we build all that stuff too.

r? @alexcrichton

@steveklabnik
Copy link
Member Author

I pushed two more commits; one fixes a trailing whitespace issue, the last one exempts the book from tidy. I think we don't actually want that, but for now it will let things build.

t!(t!(File::open(&version_input)).read_to_string(&mut info));
let info = info.replace("VERSION", &build.rust_release())
.replace("SHORT_HASH", build.rust_info.sha_short().unwrap_or(""))
.replace("STAMP", build.rust_info.sha().unwrap_or(""));
Copy link
Member

Choose a reason for hiding this comment

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

This all seems pretty familiar, perhaps copied from elsewhere in this file? Could that be deduplicated?

Copy link
Member Author

@steveklabnik steveklabnik Mar 8, 2017

Choose a reason for hiding this comment

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

Yeah; I wasn't sure about it. There's just enough that's different.... I bet I can make it work.

Copy link
Member

Choose a reason for hiding this comment

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

Let's at least refactor out what we can, especially these bits about version/short_hash/stamp/etc

@alexcrichton
Copy link
Member

lgtm modulo one minor comment.

But yeah if you're ok holding off this may be good to wait until after the branch

Also the travis failure looks like it may need attention

@steveklabnik
Copy link
Member Author

I've updated the book to be tidy-clean and re-enabled tidy for the book. Let's see what travis has to say...

@steveklabnik
Copy link
Member Author

steveklabnik commented Mar 13, 2017

    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 1011)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 1057)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 108)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 1086)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 1209)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 124)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 1265)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 1296)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 1314)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 1330)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 184)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 345)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 377)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 387)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 401)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 505)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 525)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 542)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 635)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 658)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 723)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 742)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 865)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 891)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 90)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 901)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 917)
    C:\Users\steve\src\rust\src/doc\book\second-edition\nostarch\chapter15.md - Smart_Pointers (line 931)

well uh, okay then

(We should exclude the nostarch dir...)

@steveklabnik
Copy link
Member Author

@alexcrichton I never know what the right way to compare paths is, please check out the latest commit there.

This now passes locally on my machine, and so should be good to go sooN!

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Mar 13, 2017

📌 Commit 89761c4 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Mar 14, 2017

⌛ Testing commit 89761c4 with merge 8c0fa3d...

@bors
Copy link
Contributor

bors commented Mar 14, 2017

💔 Test failed - status-appveyor

@steveklabnik
Copy link
Member Author

No idea why tidy didn't see that on my machine...

@steveklabnik
Copy link
Member Author

steveklabnik commented Mar 14, 2017

@bors: r=alexcrichton

@bors
Copy link
Contributor

bors commented Mar 14, 2017

📌 Commit 960eb2e has been approved by @alexcrichton

@bors
Copy link
Contributor

bors commented Mar 14, 2017

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Mar 14, 2017

📌 Commit 960eb2e has been approved by @alexcrichton

@steveklabnik
Copy link
Member Author

@bors: r=alexcrichton

@bors
Copy link
Contributor

bors commented Mar 14, 2017

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Mar 14, 2017

📌 Commit 960eb2e has been approved by alexcrichton

@steveklabnik
Copy link
Member Author

@bors: r-

steveklabnik added a commit to rust-lang/reference that referenced this pull request Mar 15, 2017
@steveklabnik
Copy link
Member Author

@bors: r=alexcrichton

I had to fix up a number of links because, silly me, I forgot to run linkchecker.

I am triple checking a clean build locally but there are a lot of p=1 builds in the queue, so gonna r+ this now

@bors
Copy link
Contributor

bors commented Mar 15, 2017

📌 Commit 9d2cfd4 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Mar 17, 2017

📌 Commit 7c3814f has been approved by alexcrichton

@steveklabnik
Copy link
Member Author

@bors: r-

okay i dunno why tidy is now flipping out :(

@steveklabnik
Copy link
Member Author

@bors: r=alexcrichton

oh my directory was dirty. I need more ☕️ . Tidy passes.

@bors
Copy link
Contributor

bors commented Mar 17, 2017

📌 Commit 7c3814f has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Mar 17, 2017

☔ The latest upstream changes (presumably #40598) made this pull request unmergeable. Please resolve the merge conflicts.

We'll bring this back in with the next commit, as a submodule.
It's all in the external repository now.
These pages will help people who have links to the older book.
Becuase I had run a `x.py doc` before doing this work, I had
accidentally relied on some files existing in places that they didn't
need to be.
This is for coordinating with our publishers; we don't ever want to test it.
Some links needed adjustment to support this new scheme.
The unstable book, libstd, libcore, and liballoc all needed some
adjustment.
@steveklabnik
Copy link
Member Author

@bors: r=alexcrichton

passed everything on my machine

@bors
Copy link
Contributor

bors commented Mar 20, 2017

📌 Commit 96d3594 has been approved by alexcrichton

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Mar 21, 2017
…ichton

Extract book into a submodule

Part of rust-lang#39588

We probably don't want to land this till after the beta branches on friday, but would still ❤️ a review from @alexcrichton , since I am a rustbuild noob.

This pr:

1. removes the book
2. adds it back in as a submodule
3. the submodule includes both the old book and the new book
4. it also includes an index page explaining the difference in editions
5. it also includes redirect pages for the old book URLs.
6. so we build all that stuff too.

r? @alexcrichton
bors added a commit that referenced this pull request Mar 21, 2017
Rollup of 10 pull requests

- Successful merges: #40229, #40312, #40332, #40502, #40556, #40576, #40667, #40671, #40681, #40685
- Failed merges:
@bors bors merged commit 96d3594 into rust-lang:master Mar 21, 2017
@steveklabnik steveklabnik deleted the extract-book branch March 21, 2017 19:53
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.

4 participants