Uh oh!
There was an error while loading. Please reload this page.
[WIP] Reduce HTML output in rustdoc - #41384
Conversation
frewsxcv
commented
Apr 19, 2017
For reference https://github.com/GuillaumeGomez/minifier-rs |
killercup
commented
Apr 19, 2017
@GuillaumeGomez I'm pretty surprised to see your minifier drop so many closing tags. Especially the rules around omitting
|
GuillaumeGomez
commented
Apr 19, 2017
Hum, good point.
The compression isn't "hardcore" so it leaves place for improvements. Using html5ever for this could be worth it, to be tested. This PR is a work in progress after all and isn't to be merged right now. |
alexcrichton
commented
Apr 20, 2017
Note that a tool like this seems like it has a high chance of accidentally introducing regressions, it'd be great if we could add some regression testing as well to this. |
GuillaumeGomez
commented
Apr 22, 2017
@alexcrichton: it's not close at all to get merged. For now it was mostly to get some feedbacks. Do you have an idea by any chance on how I could test regressions in here? |
alexcrichton
commented
Apr 24, 2017
To start this could use an html parser like html5ever and enusre the document structure doesn't change for standard Rust properties like:
|
sophiajt
commented
Apr 25, 2017
I'm not currently on rustdoc, so assigning to alex |
clarfonthey
commented
May 3, 2017
It'd be nice if we could do this to rustdoc's CSS as well. |
GuillaumeGomez
commented
May 3, 2017
@clarcharr: It's scheduled (at least I intend to do it). |
frewsxcv
commented
May 3, 2017
In my opinion, minimizing HTML and CSS is something that would be cool to do for all pages generated by rustdoc, but it seems the underlying tool has some incubation to so. I have some concerns about some of the strategies it does and the lack of testing. I don't know if this PR is the most effective way to get feedback though |
GuillaumeGomez
commented
May 4, 2017
Well, at least it opens the debate. I still have a lot to do on the minimizer tool. |
TimNN
commented
May 10, 2017
@GuillaumeGomez: What's the current status of this PR? |
GuillaumeGomez
commented
May 10, 2017
Quite busy, I still need to rewrite the HTML minifier (using html5ever). I'll try to get to it in the next weeks or so. |
bors
commented
May 16, 2017
☔ The latest upstream changes (presumably #41843) made this pull request unmergeable. Please resolve the merge conflicts. |
alexcrichton
commented
May 18, 2017
Ok I'm going to close this for now to help keep the queue clear, but please of course feel free to resubmit! |
r? @rust-lang/docs