Commit d9a3bad6 authored by Craig Norris's avatar Craig Norris

Merge branch 'sselhorn-master-patch-76006' into 'master'

Added more details about heading titles

See merge request gitlab-org/gitlab!82217
parents 49510b7b 5795610b
...@@ -655,52 +655,39 @@ This is overridden by the [documentation-specific punctuation rules](#punctuatio ...@@ -655,52 +655,39 @@ This is overridden by the [documentation-specific punctuation rules](#punctuatio
## Headings ## Headings
- Add only one H1 in each document, by adding `#` at the beginning of In the Markdown document:
it (when using Markdown). The `h1` becomes the document `<title>`.
- Start with an `h2` (`##`), and respect the order `h2` > `h3` > `h4` > `h5` > `h6`. - Add one H1 (`#`) at the start of the page. The `h1` becomes the document `<title>`.
Never skip the hierarchy level, such as `h2` > `h4` - After the H1, follow the order `h2` > `h3` > `h4` > `h5` > `h6`.
- Avoid putting numbers in headings. Numbers shift, hence documentation anchor - Do not skip a level. For example: `h2` > `h4`.
links shift too, which eventually leads to dead links. If you think it is - Leave one blank line before and after the heading.
compelling to add numbers in headings, make sure to at least discuss it with
someone in the merge request. For the heading text, **do**:
- [Avoid using symbols and special characters](https://gitlab.com/gitlab-org/gitlab-docs/-/issues/84)
in headers. Whenever possible, they should be plain and short text. - Be clear and direct. Make every word count.
- When possible, avoid including words that might change in the future. Changing - Use active verbs for tasks. For example, `Configure GDK` instead of `Configuring GDK`.
- Talk about what the product does, realistically but from a positive perspective. Instead of
`Limitations`, move the content near other similar information. If you must, you can
use the title `Known issues`.
- Use articles and prepositions.
- Add the [product badge](#product-tier-badges) that corresponds to the license tier.
- Follow [capitalization](#capitalization) guidelines.
For the heading text, **do not**:
- Use generic words like `Overview` or `Use cases`. Instead, incorporate
the information under a concept heading.
- Use `How it works`. Incorporate this information under a concept, or use a
noun followed by `workflow`. For example, `Merge request workflow`.
- Use `Important Notes`. Incorporate this information closer to where it belongs.
- Use numbers to indicate steps. If the numbers change, the anchor links changes,
which eventually leads to dead links. If you think you must add numbers in headings,
at least discuss it with a writer in the merge request.
- Use words that might change in the future. Changing
a heading changes its anchor URL, which affects other linked pages. a heading changes its anchor URL, which affects other linked pages.
- When introducing a new document, be careful for the headings to be - Repeat text from earlier headings. For example, instead of `Troubleshooting merge requests`,
grammatically and syntactically correct. Mention an [assigned technical writer (TW)](https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments) use `Troubleshooting`.
for review, based upon the [product category](https://about.gitlab.com/handbook/product/categories/). - Use links.
This is to ensure that no document with wrong heading is going live without an
audit, thus preventing dead links and redirection issues when corrected.
- Use the context provided by parent section headings. That is, don't repeat the parent heading's text in each
subsection's heading.
- Use articles and prepositions in headings where it would make sense in regular text.
- Leave exactly one blank line before and after a heading.
- Do not use links in headings.
- Add the corresponding [product badge](#product-tier-badges) according to the tier the
feature belongs.
- Our documentation site search engine prioritizes words used in headings and
subheadings. Make your subheading titles clear, descriptive, and complete to help
users find the right example, as shown in the section on [heading titles](#heading-titles).
- See [Capitalization](#capitalization) for guidelines on capitalizing headings.
### Heading titles
Keep heading titles clear and direct. Make every word count. To accommodate
search engine optimization (SEO), use the imperative, where possible.
| Do | Don't |
|:--------------------------------------|:------------------------------------------------------------|
| Configure GDK | Configuring GDK |
| GitLab Release and Maintenance Policy | This section covers the GitLab Release and Maintenance Policy |
| Backport to older releases | Backporting to older releases |
| GitLab Pages examples | Examples |
For guidelines on capitalizing headings, see the section on [capitalization](#capitalization).
NOTE:
If you change an existing title, be careful. In-page [anchor links](#anchor-links),
links in the GitLab application, and links from external sites can break.
### Anchor links ### Anchor links
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment