-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Conversation
src/librustdoc/html/render.rs
Outdated
@@ -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>")?; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
56454c8
to
c612641
Compare
@bors r+ Thanks! I've wanted a menu like this for a while myself. :D |
📌 Commit c612641 has been approved by |
@bors rollup |
☔ The latest upstream changes (presumably #46221) made this pull request unmergeable. Please resolve the merge conflicts. |
c612641
to
423e5ac
Compare
Rebased. |
@bors r+ rollup |
📌 Commit 423e5ac has been approved by |
…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">
Fixes #36531.
r? @QuietMisdreavus
A few screenshots: