Skip to content

Make rustdoc.js use license comments. - #42307

Merged
bors merged 1 commit into
rust-lang:masterfrom
clarfonthey:js-license
Jun 10, 2017
Merged

Make rustdoc.js use license comments.#42307
bors merged 1 commit into
rust-lang:masterfrom
clarfonthey:js-license

Conversation

@clarfonthey

Copy link
Copy Markdown
Contributor

This will ensure that JS minifiers and the like will preserve the license statement even after minimisation.

@rust-highfive

Copy link
Copy Markdown
Contributor

Some changes occurred in HTML/CSS.

cc @GuillaumeGomez

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @frewsxcv

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

@GuillaumeGomez

Copy link
Copy Markdown
Member

I'm not sure to understand the point of this change. Can you give a bit more context please?

@frewsxcv

Copy link
Copy Markdown
Contributor

@GuillaumeGomez from what I understand, some JS minifiers have an option to preserve license headings so they don't get minified away, but I'm guessing that only works if the license headings are in a block comment. does that sound right @clarcharr?

@clarfonthey

Copy link
Copy Markdown
ContributorAuthor

That's correct.

@steveklabnik

steveklabnik commented May 30, 2017

Copy link
Copy Markdown
Contributor

👍 from me, but there's a failure: https://travis-ci.org/rust-lang/rust/jobs/237377534#L900

You'll need to update tidy to understand this kind of heading. specifically, this part https://github.com/rust-lang/rust/blob/master/src/tools/tidy/src/style.rs#L151-L186, and even more specifically, this bit https://github.com/rust-lang/rust/blob/master/src/tools/tidy/src/style.rs#L170-L176 let me know if you need any help with that 😄

@aidanhsaidanhs added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 1, 2017
Comment threadsrc/tools/tidy/src/style.rs 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.

You're missing a { at the end of this line

@arielb1

Copy link
Copy Markdown
Contributor

@clarcharr are you going to fix this? Just checking to make sure this PR isn't getting lost.

@clarfonthey

Copy link
Copy Markdown
ContributorAuthor

I am and I have!

@frewsxcv

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Jun 8, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit dd23fda has been approved by frewsxcv

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Jun 8, 2017
Make rustdoc.js use license comments.
This will ensure that JS minifiers and the like will preserve the license statement even after minimisation.
@frewsxcvfrewsxcv mentioned this pull request Jun 8, 2017
bors added a commit that referenced this pull request Jun 8, 2017
Rollup of 6 pull requests
- Successful merges: #42307, #42385, #42487, #42491, #42521, #42531
- Failed merges:
@frewsxcvfrewsxcv mentioned this pull request Jun 9, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Jun 9, 2017
Make rustdoc.js use license comments.
This will ensure that JS minifiers and the like will preserve the license statement even after minimisation.
@frewsxcvfrewsxcv mentioned this pull request Jun 9, 2017
bors added a commit that referenced this pull request Jun 9, 2017
Rollup of 5 pull requests
- Successful merges: #42307, #42385, #42531, #42551, #42558
- Failed merges:
@bors
bors merged commit dd23fda into rust-lang:masterJun 10, 2017
@clarfonthey
clarfonthey deleted the js-license branch June 10, 2017 02:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@clarfonthey@rust-highfive@GuillaumeGomez@frewsxcv@steveklabnik@arielb1@bors@aidanhs