Skip to content

Commit

Permalink
docs(contributing): add documentation style
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Feb 9, 2021
1 parent 43b1fb6 commit ea3f3c9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ Contributors guide: https://github.com/Fdawgs/fastify-disablecache/blob/master/C
#### Checklist

- [ ] Run `npm test`
- [ ] Documentation has been updated if needed
- [ ] Documentation has been updated and adheres to the style described in [CONTRIBUTING.md](https://github.com/Fdawgs/fastify-disablecache/blob/master/CONTRIBUTING.md#documentation-style)
- [ ] Commit message adheres to the [Conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) style, following the `@commitlint/config-conventional` config
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
# Initialises the CodeQL tools for scanning.
- name: Initialise CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
Expand Down
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ After cloning and installing all the dependencies, there are several commands av
- `npm run jest` - Runs Jest over all tests in src directory
- `npm test` - Runs `npm run lint` and `npm run jest` together

## Documentation Style

Documentation (both in markdown files and inline comments) should be written in **British English** where possible.

Titles and headings should adhere to the [Associated Press (AP)](https://www.apstylebook.com/) style:

- Capitalise words with three or more letters
- Capitalise the first and the last word
- Capitalise nouns, pronouns, adjectives, verbs, adverbs, and subordinate conjunctions
- Lowercase articles (a, an, the), coordinating conjunctions, and prepositions
- Capitalise words with four or more letters (including conjunctions and prepositions)

## Pull Request Checklist

Prior to submitting a pull request back to the main repository, please make sure you have completed the following steps:
Expand Down

0 comments on commit ea3f3c9

Please sign in to comment.