Skip to content

Ensure that example codes are shown without the horizontal slider. #970

Description

@Pijukatel

Example code used in docs is rendered in a page with certain width. If the code rendered in the page is having too large line length, then horizontal slider is added, which is not terrible, but also not so nice and it reduces the clarity of the code example, when not all of it is visible at once.
(Visualization element in the webpage has the line-wrap option, but that does make examples less readable as it wraps in non-Pythonic way)

Ensure this does not happen. Possible solutions:

  • Custom ruff line length settings for example code and running separate ruff check.
  • Adjust the webpage to match our normal line length (change width or font size of code examples)
  • ...

Some example pages with code examples with slider:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions