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

Greatly improve sidebar when width < 700px #46526

Merged
merged 2 commits into from
Dec 8, 2017

Conversation

GuillaumeGomez
Copy link
Member

Fixes #36531.

r? @QuietMisdreavus

A few screenshots:

screen shot 2017-12-06 at 00 41 36

screen shot 2017-12-06 at 00 41 40

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 6, 2017
@@ -3625,6 +3626,8 @@ impl<'a> fmt::Display for Sidebar<'a> {
write!(fmt, "<script defer src=\"{path}sidebar-items.js\"></script>",
path = relpath)?;
}
// Closes sidebar-elems div.
write!(fmt, "</div>")?;
Copy link
Member

Choose a reason for hiding this comment

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

Is this </div> placed correctly? It is at different indentation level than line 3578. htmldocck on CI currently complains all files are invalid HTML.

[01:05:10] stderr:
[01:05:10] ------------------------------------------
[01:05:10] Traceback (most recent call last):
[01:05:10]   File "/checkout/src/etc/htmldocck.py", line 455, in <module>
[01:05:10]     check(sys.argv[1], get_commands(sys.argv[2]))
[01:05:10]   File "/checkout/src/etc/htmldocck.py", line 448, in check
[01:05:10]     check_command(c, cache)
[01:05:10]   File "/checkout/src/etc/htmldocck.py", line 397, in check_command
[01:05:10]     tree = cache.get_tree(c.args[0])
[01:05:10]   File "/checkout/src/etc/htmldocck.py", line 309, in get_tree
[01:05:10]     raise RuntimeError('Cannot parse an HTML file {!r}: {}'.format(path, e))
[01:05:10] RuntimeError: Cannot parse an HTML file 'foo/fn.f.html': pop from empty stack

Copy link
Member Author

Choose a reason for hiding this comment

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

Arf, forgot to write the condition... (it's not supposed to be there everytime)

@QuietMisdreavus
Copy link
Member

@bors r+

Thanks! I've wanted a menu like this for a while myself. :D

@bors
Copy link
Contributor

bors commented Dec 6, 2017

📌 Commit c612641 has been approved by QuietMisdreavus

@kennytm kennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 6, 2017
@kennytm
Copy link
Member

kennytm commented Dec 6, 2017

@bors rollup

@bors
Copy link
Contributor

bors commented Dec 7, 2017

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

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 7, 2017
@GuillaumeGomez
Copy link
Member Author

Rebased.

@kennytm kennytm added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 7, 2017
@QuietMisdreavus
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Dec 7, 2017

📌 Commit 423e5ac has been approved by QuietMisdreavus

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Dec 7, 2017
…ietMisdreavus

Greatly improve sidebar when width < 700px

Fixes rust-lang#36531.

r? @QuietMisdreavus

A few screenshots:

<img width="1440" alt="screen shot 2017-12-06 at 00 41 36" src="https://user-images.githubusercontent.com/3050060/33636875-6ad8b1a6-da1e-11e7-8d5b-d6d530ea5258.png">
<img width="1440" alt="screen shot 2017-12-06 at 00 41 40" src="https://user-images.githubusercontent.com/3050060/33636876-6af58196-da1e-11e7-82ab-b82768958037.png">
bors added a commit that referenced this pull request Dec 8, 2017
Rollup of 5 pull requests

- Successful merges: #46416, #46444, #46526, #46539, #46548
- Failed merges:
@bors bors merged commit 423e5ac into rust-lang:master Dec 8, 2017
@GuillaumeGomez GuillaumeGomez deleted the mobile-sidebar branch December 8, 2017 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants