Skip to content
代码片段 群组 项目
提交 e90c2653 编辑于 作者: Kati Paizee's avatar Kati Paizee
浏览文件

Merge branch 'selhorn-style-guide-edits' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -7,23 +7,12 @@ description: 'Writing styles, markup, formatting, and other standards for GitLab ...@@ -7,23 +7,12 @@ description: 'Writing styles, markup, formatting, and other standards for GitLab
# Documentation Style Guide # Documentation Style Guide
This document defines the standards for GitLab documentation, including grammar, formatting, word use, and more. This document defines the standards for GitLab documentation, including grammar, formatting, and more.
For guidelines on specific words, see [the word list](word_list.md).
For style questions, mention `@tw-style` in an issue or merge request. If you have access to the GitLab Slack workspace, For style questions, mention `@tw-style` in an issue or merge request. If you have access to the GitLab Slack workspace,
use the `#docs-processes` channel. use the `#docs-processes` channel.
In addition to this page, the following resources can help you craft and contribute to documentation:
- [Doc contribution guidelines](../index.md)
- [Recommended word list](word_list.md)
- [Doc style and consistency testing](../testing.md)
- [Guidelines for UI error messages](https://design.gitlab.com/content/voice-and-tone#clear-error-messages)
- [Documentation global navigation](../site_architecture/global_nav.md)
- [GitLab Handbook style guidelines](https://about.gitlab.com/handbook/communication/#writing-style-guidelines)
- [Microsoft Style Guide](https://learn.microsoft.com/en-us/style-guide/welcome/)
- [Google Developer Documentation Style Guide](https://developers.google.com/style)
- [Recent updates to this guide](https://gitlab.com/dashboard/merge_requests?scope=all&state=merged&label_name[]=tw-style&not[label_name][]=docs%3A%3Afix)
## The GitLab voice ## The GitLab voice
The GitLab brand guidelines define the The GitLab brand guidelines define the
...@@ -34,47 +23,15 @@ direct, and precise. The goal is to provide information that's easy to search an ...@@ -34,47 +23,15 @@ direct, and precise. The goal is to provide information that's easy to search an
The voice in the documentation should be conversational but brief, friendly but succinct. The voice in the documentation should be conversational but brief, friendly but succinct.
## Documentation is the single source of truth (SSOT) ## Documentation is the single source of truth (SSoT)
The GitLab documentation is the SSOT for all The GitLab documentation is the SSoT for all information related to implementation,
information related to GitLab implementation, usage, and troubleshooting. It evolves use, and troubleshooting. The documentation evolves continuously. It is updated with
continuously, in keeping with new products and features, and with improvements new products and features, and with improvements for clarity, accuracy, and completeness.
for clarity, accuracy, and completeness.
This policy prevents information silos, making it easier to find information This policy prevents information silos, making it easier to find information
about GitLab products. about GitLab products. It also informs decisions about the kinds of content that
is included in the documentation.
It also informs decisions about the kinds of content we include in our
documentation.
### The documentation includes all information
Include problem-solving actions that may address rare cases or be considered
risky, but provide proper context through fully detailed
warnings and caveats. This kind of content should be included as it could be
helpful to others and, when properly explained, its benefits outweigh the risks.
If you think you have found an exception to this rule, contact the
Technical Writing team.
GitLab adds all troubleshooting information to the documentation, no matter how
unlikely a user is to encounter a situation.
GitLab Support maintains their own
[troubleshooting content](../../../administration/troubleshooting/index.md)
in the GitLab documentation.
### The documentation includes all media types
Include any media types/sources if the content is relevant to readers. You can
freely include or link presentations, diagrams, and videos. No matter who
it was originally composed for, if it is helpful to any of our audiences, we can
include it.
- If you use an image that has a separate source file (for example, a vector or
diagram format), link the image to the source file so that anyone can update or reuse it.
- Do not copy and paste content from other sources unless it is a limited
quotation with the source cited. Typically it is better to either rephrase
relevant information in your own words or link out to the other source.
### Topic types ### Topic types
...@@ -1658,6 +1615,12 @@ Until we implement automated testing for broken links to tabs ([Issue 1355](http ...@@ -1658,6 +1615,12 @@ Until we implement automated testing for broken links to tabs ([Issue 1355](http
See [Pajamas](https://design.gitlab.com/components/tabs/#guidelines) for more See [Pajamas](https://design.gitlab.com/components/tabs/#guidelines) for more
details on tabs. details on tabs.
## Plagiarism
Do not copy and paste content from other sources unless it is a limited
quotation with the source cited. Typically it is better to rephrase
relevant information in your own words or link out to the other source.
## Terms ## Terms
To maintain consistency through GitLab documentation, use these styles and terms. To maintain consistency through GitLab documentation, use these styles and terms.
......
...@@ -11,9 +11,25 @@ Troubleshooting topics should be the final topics on a page. ...@@ -11,9 +11,25 @@ Troubleshooting topics should be the final topics on a page.
If a page has more than five troubleshooting topics, put the content on a separate page that has troubleshooting information exclusively. Name the page `Troubleshooting <feature>` If a page has more than five troubleshooting topics, put the content on a separate page that has troubleshooting information exclusively. Name the page `Troubleshooting <feature>`
and in the left nav, use the word `Troubleshooting` only. and in the left nav, use the word `Troubleshooting` only.
Troubleshooting can be one of three types. ## What type of troubleshooting information to include
## An introductory topic Troubleshooting information includes:
- Problem-solving information that might be considered risky.
- Information about rare cases. All troubleshooting information
is included, no matter how unlikely a user is to encounter a situation.
This kind of content can be helpful to others, and the benefits outweigh the risks.
If you think you have an exception to this rule, contact the Technical Writing team.
GitLab Support maintains their own
[troubleshooting content](../../../administration/troubleshooting/index.md).
## Troubleshooting topic types
Troubleshooting can be one of three types: introductory, task, or reference.
### An introductory topic
This topic introduces the troubleshooting section of a page. This topic introduces the troubleshooting section of a page.
For example: For example:
...@@ -24,12 +40,12 @@ For example: ...@@ -24,12 +40,12 @@ For example:
When working with <x feature>, you might encounter the following issues. When working with <x feature>, you might encounter the following issues.
``` ```
## Troubleshooting task ### Troubleshooting task
The title should be similar to a [standard task](task.md). The title should be similar to a [standard task](task.md).
For example, "Run debug tools" or "Verify syntax." For example, "Run debug tools" or "Verify syntax."
## Troubleshooting reference ### Troubleshooting reference
This topic includes the error message. For example: This topic includes the error message. For example:
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册