Skip to content

Follow Sphinx style guide in documentation rst files #38

@SJaffa

Description

@SJaffa

When editing the documentation served at https://docs.matflow.io/stable/ and https://hpcflow.github.io/docs/stable/, the text files use rst (reStructurdText) format. We should follow the Sphinx documentation guide for sections/headings. This seems to be a bit inconsistent between files (see xamples below), so should we add a GitHub Action or precommit hook to enforce it, e.g. sphinx-lint?

Examples:
In the MatFlow docs homepage using = underline for top-level headings.

In the Matflow docs contribute page using # underline for top-level headings, then = underline, then - underline.

In MatFlow docs environments page, using # underline, then ~ underline, then - underline.

The Sphinx docs recomments this order:

  • # under- and overline
  • * under- and overline
  • = underline
  • - underline
  • ^ underline
  • " underline

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions