Skip to content

Improve the documentation website rendering such that code blocks are wider on wider screens #1280

Open
@RaghuSpaceRajan

Description

@RaghuSpaceRajan

Proposal

When going through the documentation website and going to the source code from there, the code blocks that appear on the next page have a scrollbar at the bottom if the code is too long to fit inside the code block. While this may be okay on narrower screens, on wider screens still having a narrow code block leads to a poorer experience, because we need to constantly go to the bottom of the page to adjust the scrollbar of the code block. Please see the attached screenshot of this doc page with the scrollbar highlighted on Google Chrome. My proposal is to set the width of these code blocks adaptively based on the window width of the browser.

gymnasium_docs_screenshot_20241220_203623

Motivation

No response

Pitch

No response

Alternatives

No response

Additional context

No response

Checklist

  • I have checked that there is no similar issue in the repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions