Skip to content

Latest commit

 

History

History
52 lines (43 loc) · 2.42 KB

File metadata and controls

52 lines (43 loc) · 2.42 KB

Markdown Style

Keep documentation concise, scannable, and consistent.

Content

  • use ASCII and ISO-8859-1 character encoding
  • escape UTF-8 symbols such as α, β, etc.

Headings

  • Use sentence case.
  • Start at # for the document title, then ##, ### as needed.
  • Keep headings short (3-6 words).

Lists

  • Prefer - for bullets.
  • One idea per bullet.
  • Keep bullet lines short; wrap at ~100 chars.

Code

  • Use fenced code blocks with language where practical.
  • Use inline backticks for file paths, CLI flags, and identifiers.

Tables and diagrams

  • Use ASCII-only tables and diagrams. Do not use Unicode box-drawing or checkmark symbols.
  • For boxed layouts, use +, -, and | inside fenced code blocks.
  • Replace checkmarks with OK, YES, or [x] and crosses with NO, FAIL, or [ ].
  • For progress bars or fills, use # and . (or -) instead of block characters.
  • If the content is tabular, prefer Markdown tables unless alignment in a code block is required.
  • Simple Markdown table example:
    Field Description
    input Path to input file
    output Path to output file

Links

  • Use relative links inside the repo.
  • Prefer descriptive link text, not raw URLs.
  • When referencing another doc, always link it (avoid bare filenames).
  • Links must work when committed and browsed on github.com. GitHub resolves relative URLs against the file containing the link, so the URL must be the path to the target relative to that file, not relative to the repo root.
  • Linking from repo root (e.g. README.md) into docs/: include docs/ in both link text and URL. Example: [docs/FORMAT.md](docs/FORMAT.md).
  • Linking between two files in the same folder (e.g. docs/PYTHON_STYLE.md to docs/PYTEST_STYLE.md): use the bare filename in both link text and URL. Example: [PYTEST_STYLE.md](PYTEST_STYLE.md). Do not prefix the URL with docs/ here; GitHub would look for docs/docs/PYTEST_STYLE.md and 404.
  • Link text should match the URL filename so readers see the exact file being referenced.
  • These link rules are enforced by tests/test_markdown_links.py, which checks every local Markdown link for existence, repo containment, redundant .. traversal, and path-like-text correctness.

Examples

  • Show a minimal example before a complex one.
  • Label sample output explicitly if needed.

Tone

  • Write in the present tense.
  • Prefer active voice.
  • Avoid filler and speculation.