Skip to content

Writing Documentation

These rules cover this website, each repository's README.md and AGENTS.md, and other Markdown docs. For XML doc comments in code, see Coding Rules.

Who you write for

Write for a junior to mid-level C# developer, at about a grade 8 reading level. They know what a class, a property and an event are. They do not know ReactiveUI. Explain library terms and threading terms the first time you use them.

Sentences

  • Put the main point first.
  • Keep sentences short. Split a sentence that needs a dash, a semicolon or a "which" to hold together.
  • Use the active voice. Write "the command runs the task", not "the task is run by the command".
  • Use verbs, not nouns made from verbs. Write "decide", not "make a decision".
  • Cut words that add nothing. Do not repeat a point in the next sentence.
  • Do not use em dashes.

Words

  • Use everyday words. Define a technical term the first time you use it, then use it without explaining it again.
  • Use the same word for the same thing every time.
  • Use "you" for the reader.

Structure

  • Start with the problem the feature solves and a short first-use example. Put reference details after that.
  • Use headings so a reader can find a topic.
  • Use a numbered list for steps and a table to compare items.
  • Show a short code example when it explains faster than words. Examples follow the coding rules: dispose subscriptions, use static lambdas that capture nothing, and never block the UI thread.

Scope

  • Describe the code as it is. Do not describe how it used to work.
  • Keep comparisons with other Rx libraries on comparison and migration pages.
  • Link to an explanation instead of repeating it.
Last updated Contributors: Glenn