Skip to content

Improve Content Width Constraints in Ansible Documentation #2442

@JeffHuss

Description

@JeffHuss

Improve Content Width Constraints in Ansible Documentation

Issue Description

The current Ansible documentation layout allows content to stretch across the full width of the browser window (after the Table of Contents). This creates significant readability issues, particularly on wider displays and at 16:9 resolutions.

I'm including screenshots for the issue and proposed solution (using an example) to help clarify what I'm describing.

I'm viewing the docs page with the following client configuration:

  • OS: Ubuntu 24.04.2 LTS
  • Browser: Google Chrome Version 134.0.6998.88 (Official Build) (64-bit)
  • Window size: Full screen
  • Screen resolution: 2560x1440
  • Monitor size: 27"
  • Zoom level: 100% (default)

Example page with the issue: https://docs.ansible.com/ansible/latest/network/getting_started/basic_concepts.html

Image

Problems with Current Implementation

  1. Excessive line length - Text lines exceed the optimal 50-75 characters per line recommended for technical documentation readability (NewTarget's analysis of optimal content width)
  2. Content scanning difficulty - Wide text makes quickly finding specific information more challenging, particularly important for technical reference material
  3. Inconsistent reading experience - Reading experience varies dramatically depending on window size, which does not align with WCAG 2.1 readability guidelines (W3C readability recommendations)

Proposed Solution

Implement a maximum width constraint for the main content area, similar to what's done in other technical documentation sites like Elasticsearch:
https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html

Image

Supporting Design Principles

Additional Notes

  • The solution should maintain responsiveness while implementing maximum width constraints
  • Appropriate whitespace management would be needed to balance the layout once content width is constrained

This change would significantly improve the readability and overall user experience of the Ansible documentation, particularly for users of larger displays or when using the documentation for extended periods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new_contributorThis PR is the first contribution by a new community member.

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions