Skip to content

rustbuild: Build documentation for proc_macro#40199

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:doc-proc-macro
Mar 11, 2017
Merged

rustbuild: Build documentation for proc_macro#40199
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:doc-proc-macro

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This commit fixes #38749 by building documentation for the proc_macro crate by
default for configured hosts. Unfortunately did not turn out to be a trivial
fix. Currently rustbuild generates documentation into multiple locations: one
for std, one for test, and one for rustc. The initial fix for this issue simply
actually executed cargo doc -p proc_macro which was otherwise completely
elided before.

Unfortunately rustbuild was the left to merge two documentation trees together.
One for the standard library and one for the rustc tree (which only had docs for
the proc_macro crate). Rustdoc itself knows how to merge documentation files
(specifically around search indexes, etc) but rustbuild was unaware of this, so
an initial fix ended up destroying the sidebar and the search bar from the
libstd docs.

To solve this issue the method of documentation has been tweaked slightly in
rustbuild. The build system will not use symlinks (or directory junctions on
Windows) to generate all documentation into the same location initially. This'll
rely on rustdoc's logic to weave together all the output and ensure that it ends
up all consistent.

Closes #38749

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @aturon

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

@brson

brson commented Mar 1, 2017

Copy link
Copy Markdown
Contributor

Please add a comment explaining what the symlinks are doing. r=me after

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Mar 1, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 96965e6 has been approved by brson

@TimNN

TimNN commented Mar 2, 2017

Copy link
Copy Markdown
Contributor

This has a (legitimate, as far as I can tell) travis failure (symlink already exists).

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r-

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Mar 2, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 3263f26 has been approved by brson

@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Mar 2, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 3c011f3 has been approved by brson

@frewsxcv

frewsxcv commented Mar 3, 2017

Copy link
Copy Markdown
Contributor

Might be relevant to this error? #40218 (comment)

@bors

bors commented Mar 3, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 3c011f3 with merge 4ff8e43...

@bors

bors commented Mar 3, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-travis

@alexcrichton

Copy link
Copy Markdown
Member Author

@frewsxcv heh, yes :)

@bors: r=brson

@bors

bors commented Mar 3, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 6f7b9e7 has been approved by brson

@bors

bors commented Mar 4, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 6f7b9e7 with merge 6ae1b94...

@bors

bors commented Mar 4, 2017

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-travis

@frewsxcv

frewsxcv commented Mar 6, 2017

Copy link
Copy Markdown
Contributor

@bors retry

@bors

bors commented Mar 6, 2017

Copy link
Copy Markdown
Collaborator

🔒 Merge conflict

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 10, 2017
rustbuild: Build documentation for `proc_macro`

This commit fixes rust-lang#38749 by building documentation for the `proc_macro` crate by
default for configured hosts. Unfortunately did not turn out to be a trivial
fix. Currently rustbuild generates documentation into multiple locations: one
for std, one for test, and one for rustc. The initial fix for this issue simply
actually executed `cargo doc -p proc_macro` which was otherwise completely
elided before.

Unfortunately rustbuild was the left to merge two documentation trees together.
One for the standard library and one for the rustc tree (which only had docs for
the `proc_macro` crate). Rustdoc itself knows how to merge documentation files
(specifically around search indexes, etc) but rustbuild was unaware of this, so
an initial fix ended up destroying the sidebar and the search bar from the
libstd docs.

To solve this issue the method of documentation has been tweaked slightly in
rustbuild. The build system will not use symlinks (or directory junctions on
Windows) to generate all documentation into the same location initially. This'll
rely on rustdoc's logic to weave together all the output and ensure that it ends
up all consistent.

Closes rust-lang#38749
arielb1 pushed a commit to arielb1/rust that referenced this pull request Mar 10, 2017
rustbuild: Build documentation for `proc_macro`

This commit fixes rust-lang#38749 by building documentation for the `proc_macro` crate by
default for configured hosts. Unfortunately did not turn out to be a trivial
fix. Currently rustbuild generates documentation into multiple locations: one
for std, one for test, and one for rustc. The initial fix for this issue simply
actually executed `cargo doc -p proc_macro` which was otherwise completely
elided before.

Unfortunately rustbuild was the left to merge two documentation trees together.
One for the standard library and one for the rustc tree (which only had docs for
the `proc_macro` crate). Rustdoc itself knows how to merge documentation files
(specifically around search indexes, etc) but rustbuild was unaware of this, so
an initial fix ended up destroying the sidebar and the search bar from the
libstd docs.

To solve this issue the method of documentation has been tweaked slightly in
rustbuild. The build system will not use symlinks (or directory junctions on
Windows) to generate all documentation into the same location initially. This'll
rely on rustdoc's logic to weave together all the output and ensure that it ends
up all consistent.

Closes rust-lang#38749
This commit fixes rust-lang#38749 by building documentation for the `proc_macro` crate by
default for configured hosts. Unfortunately did not turn out to be a trivial
fix. Currently rustbuild generates documentation into multiple locations: one
for std, one for test, and one for rustc. The initial fix for this issue simply
actually executed `cargo doc -p proc_macro` which was otherwise completely
elided before.

Unfortunately rustbuild was the left to merge two documentation trees together.
One for the standard library and one for the rustc tree (which only had docs for
the `proc_macro` crate). Rustdoc itself knows how to merge documentation files
(specifically around search indexes, etc) but rustbuild was unaware of this, so
an initial fix ended up destroying the sidebar and the search bar from the
libstd docs.

To solve this issue the method of documentation has been tweaked slightly in
rustbuild. The build system will not use symlinks (or directory junctions on
Windows) to generate all documentation into the same location initially. This'll
rely on rustdoc's logic to weave together all the output and ensure that it ends
up all consistent.

Closes rust-lang#38749
@alexcrichton

Copy link
Copy Markdown
Member Author

@bors: r=brson

@bors

bors commented Mar 10, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit f846aaf has been approved by brson

arielb1 pushed a commit to arielb1/rust that referenced this pull request Mar 10, 2017
rustbuild: Build documentation for `proc_macro`

This commit fixes rust-lang#38749 by building documentation for the `proc_macro` crate by
default for configured hosts. Unfortunately did not turn out to be a trivial
fix. Currently rustbuild generates documentation into multiple locations: one
for std, one for test, and one for rustc. The initial fix for this issue simply
actually executed `cargo doc -p proc_macro` which was otherwise completely
elided before.

Unfortunately rustbuild was the left to merge two documentation trees together.
One for the standard library and one for the rustc tree (which only had docs for
the `proc_macro` crate). Rustdoc itself knows how to merge documentation files
(specifically around search indexes, etc) but rustbuild was unaware of this, so
an initial fix ended up destroying the sidebar and the search bar from the
libstd docs.

To solve this issue the method of documentation has been tweaked slightly in
rustbuild. The build system will not use symlinks (or directory junctions on
Windows) to generate all documentation into the same location initially. This'll
rely on rustdoc's logic to weave together all the output and ensure that it ends
up all consistent.

Closes rust-lang#38749
arielb1 pushed a commit to arielb1/rust that referenced this pull request Mar 10, 2017
rustbuild: Build documentation for `proc_macro`

This commit fixes rust-lang#38749 by building documentation for the `proc_macro` crate by
default for configured hosts. Unfortunately did not turn out to be a trivial
fix. Currently rustbuild generates documentation into multiple locations: one
for std, one for test, and one for rustc. The initial fix for this issue simply
actually executed `cargo doc -p proc_macro` which was otherwise completely
elided before.

Unfortunately rustbuild was the left to merge two documentation trees together.
One for the standard library and one for the rustc tree (which only had docs for
the `proc_macro` crate). Rustdoc itself knows how to merge documentation files
(specifically around search indexes, etc) but rustbuild was unaware of this, so
an initial fix ended up destroying the sidebar and the search bar from the
libstd docs.

To solve this issue the method of documentation has been tweaked slightly in
rustbuild. The build system will not use symlinks (or directory junctions on
Windows) to generate all documentation into the same location initially. This'll
rely on rustdoc's logic to weave together all the output and ensure that it ends
up all consistent.

Closes rust-lang#38749
@bors

bors commented Mar 11, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit f846aaf with merge 5d0be0d...

bors added a commit that referenced this pull request Mar 11, 2017
rustbuild: Build documentation for `proc_macro`

This commit fixes #38749 by building documentation for the `proc_macro` crate by
default for configured hosts. Unfortunately did not turn out to be a trivial
fix. Currently rustbuild generates documentation into multiple locations: one
for std, one for test, and one for rustc. The initial fix for this issue simply
actually executed `cargo doc -p proc_macro` which was otherwise completely
elided before.

Unfortunately rustbuild was the left to merge two documentation trees together.
One for the standard library and one for the rustc tree (which only had docs for
the `proc_macro` crate). Rustdoc itself knows how to merge documentation files
(specifically around search indexes, etc) but rustbuild was unaware of this, so
an initial fix ended up destroying the sidebar and the search bar from the
libstd docs.

To solve this issue the method of documentation has been tweaked slightly in
rustbuild. The build system will not use symlinks (or directory junctions on
Windows) to generate all documentation into the same location initially. This'll
rely on rustdoc's logic to weave together all the output and ensure that it ends
up all consistent.

Closes #38749
@bors

bors commented Mar 11, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: brson
Pushing 5d0be0d to master...

@bors bors merged commit f846aaf into rust-lang:master Mar 11, 2017
@alexcrichton alexcrichton deleted the doc-proc-macro branch March 11, 2017 16:29
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.

Publish docs for proc_macro crate

7 participants