opensafely / documentation

Documentation for the OpenSAFELY platform
https://docs.opensafely.org
Other
32 stars 4 forks source link

Consider using a style guide for writing #519

Open StevenMaude opened 2 years ago

StevenMaude commented 2 years ago

Use of style guides might make the documentation more consistent.

StevenMaude commented 2 years ago

Ideas

There are at least two distinct aspects here to consider.

Content style guide

How we should write the content.

This might be enforced somewhat via linting, if there's a suitable linter; for example, using Vale.

If we choose to do this, we should probably choose an existing style guide and extend it with any extra rules we require.

Examples

Included as examples here only, not necessarily what we should do ultimately:

Markup style guide

How we should write the Markdown (examples: formatting of numbered lists).

This, too, might be enforced somewhat via linting, if there's a suitable linter (examples: markdownlint, or another markdownlint).

It's possibly easier to enforce, as we're only interested in the Markdown syntax and structure here. That said:

Examples

Included as examples here only, not specifically necessarily what we should do ultimately:

Crossover

Some items may actually crossover to some extent. Sometimes the available features in Markdown may influence how you write content.

Examples

StevenMaude commented 1 year ago

This really crosses over with #643, which is about providing tooling for editors and applying rules to pull requests.

StevenMaude commented 1 year ago

Actual example use case: we want to use "SNOMED CT" throughout text; #909.