Skip to content

[Sphinx] [Automation] Make it possible to create hierarchical document structures #186

@felix91gr

Description

@felix91gr

There's currently no way to write Guidelines where a section has hierarchical structure.

This is not an issue for very short cases, since such a structure is not needed there. But for more cases where, for example, the Rationale has multiple focus points, being able to use something akin to HTML headings would make the Guidelines more accessible for screen reader users, as well as more easily searchable by tools.

Here I give an example of this need. This is how it was phrased:

With a hierarchical structure, the rationale is parsed like a tree, which facilitates navigation and mimics the way one reads multi-part documents.

Intro
Reason 1
    Context and explanation for Reason 1
Reason 2
    Context and explanation for Reason 2

But with bold and other such formatting, the rationale is parsed like a homogeneous document:

Intro
Reason 1
Context and explanation for Reason 1
Reason 2
Context and explanation for Reason 2

I want a way to get the former kind of structure. Is there a way we could do that?

CC @x0rw since you're our expert on RST. Please let me know how I can help make this possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci/cdRelated to CI/CDcontributor experienceRelated to making contributions easierenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions