Skip to content
Snippets Groups Projects
Commit 88d66248 authored by Mike Lewis's avatar Mike Lewis Committed by Evan Read
Browse files

Edits to Lists section of Documentation Style Guide

parent 200fd742
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -262,7 +262,7 @@ table_display_block: true
## Punctuation
 
Check the general punctuation rules for the GitLab documentation on the table below.
Check specific punctuation rules for [list items](#list-items) below.
Check specific punctuation rules for [lists](#lists) below.
 
| Rule | Example |
| ---- | ------- |
Loading
Loading
@@ -274,37 +274,44 @@ Check specific punctuation rules for [list items](#list-items) below.
| Always add a space before and after dashes when using it in a sentence (for replacing a comma, for example). | _You should try this - or not._ |
| Always use lowercase after a colon. | _Related Issues: a way to create a relationship between issues._ |
 
## List items
## Lists
 
- Always start list items with a capital letter, unless they are parameters or commands
that are in backticks, or similar.
- Always leave a blank line before and after a list.
- Begin a line with spaces (not tabs) to denote a [nested subitem](#nesting-inside-a-list-item).
- Only use ordered lists when their items describe a sequence of steps to follow:
 
Do:
### Ordered vs. unordered lists
 
These are the steps to do something:
Only use ordered lists when their items describe a sequence of steps to follow.
 
1. First, do step 1
1. Then, do step 2
1. Finally, do step 3
Do:
```md
These are the steps to do something:
1. First, do the first step.
1. Then, do the next step.
1. Finally, do the last step.
```
 
Don't:
Don't:
 
This is a list of different features:
```md
This is a list of available features:
 
1. Feature 1
1. Feature 2
1. Feature 3
1. Feature 1
1. Feature 2
1. Feature 3
```
 
**Markup:**
### Markup
 
- Use dashes (`-`) for unordered lists instead of asterisks (`*`).
- Prefix `1.` to each item in an ordered list.
- Prefix `1.` to every item in an ordered list.
When rendered, the list items will appear with sequential numbering automatically.
 
**Punctuation:**
### Punctuation
 
- Do not add commas (`,`) or semicolons (`;`) to the end of list items.
- Only add periods to the end of a list item if the item consists of a complete sentence.
Loading
Loading
@@ -343,7 +350,7 @@ Do:
- Let's say this is also a complete sentence.
- Not a complete sentence.
 
Don't (third item should have a `.` to match the first and second items):
Don't (vary use of periods; majority rules):
 
- Let's say this is a complete sentence.
- Let's say this is also a complete sentence.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment