Skip to content

Optimize documentation layout on mobile #20850

Closed
@iKevinY

Description

@iKevinY

Considering the fact that Rust has moved into alpha and The Rust Programming Language has replaced the Guide, I think it would be useful to work towards creating a mobile-friendly layout for Rust's documentation. #17926 discusses the Guide, but now that the Book has replaced the Guide and brought a whole new layout that includes a sidebar, more than just a viewport fix will be needed to make it mobile-friendly. From what I can tell, there are a few "page families" that would need some tweaking (complete with fancy GitHub-powered checklist):

For the Rust Reference and Rust Documentation, a viewport meta tag might be all we need to make it mobile-friendly. The API Docs actually look pretty good on mobile already (the sidebar is pushed to the bottom of the page), but the page appears to load slightly zoomed-in (another viewport fix, likely).

The Book is rendered on mobile pretty much equivalently to the way it is displayed on larger displays, but it would be ideal for the content take up the full width of the screen. This leaves the sidebar to either be placed at the bottom of the page or converted into a dropdown menu of some sort. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions