Skip to content

[Doc]: regularize doc formatting #26862

Closed
@story645

Description

@story645

Documentation Link

https://matplotlib.org/devdocs/devel/document.html#section-formatting

Problem

We acknowledge in our docs that we haven't completely moved our docs over to our specified format, which sometimes creates cascading effects when trying to combine/reorganize docs- directives like ..include don't like the mismatch and when reading the docs it can make it hard to figure out what level a given section is supposed to be at.

Suggested improvement

Reformat docs as needed so that they conform to the guidelines.

Use sentence case Upper lower for section titles, e.g., Possible hangups rather than Possible Hangups.

We aim to follow the recommendations from the Python documentation and the Sphinx reStructuredText documentation for section markup characters, i.e.:

# with overline, for parts. This is reserved for the main title in doc/index.rst. 

* with overline, for chapter. all pages except doc/index.rst should start with "chapter" or lower.

=, for sections

-, for subsections

^, for subsubsections

", for paragraphs

NOTES:

  • do not sentence case files under "/project"
  • ignore files in any "api_changes", "whats_new", or MEP file/folder.
  • do not add new headings without a justification. This issue is about converting existing heading markers into its corresponding heading markers in the list above.

Documents with old style formatting:

This work is mostly converting ~~ to ^^^
Please post here which file you are working on:

project

API

contribute

user_guide

text
toolkits

tutorials

gallery

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationGood first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions