writing_documentation.md 4,6 КБ
Newer Older
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
1
# Writing documentation
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
2
3

  - **General Documentation**: written by the developers responsible by creating features. Should be submitted in the same merge request containing code. Feature proposals (by GitLab contributors) should also be accompanied by its respective documentation. They can be later improved by PMs and Technical Writers.
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
4
  - **Technical Articles**: written by any [GitLab Team](https://about.gitlab.com/team/) member, GitLab contributors, or [Community Writers](https://about.gitlab.com/handbook/product/technical-writing/community-writers/).
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
5
6
  - **Indexes per topic**: initially prepared by the Technical Writing Team, and kept up-to-date by developers and PMs, in the same merge request containing code.

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
7
## Distinction between General Documentation and Technical Articles
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
8

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
9
### General documentation
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
10
11
12
13
14
15
16

General documentation is categorized by _User_, _Admin_, and _Contributor_, and describe what that feature is, what it does, and its available settings.

### Technical Articles

Technical articles replace technical content that once lived in the [GitLab Blog](https://about.gitlab.com/blog/), where they got out-of-date and weren't easily found.

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
17
They are topic-related documentation, written with an user-friendly approach and language, aiming to provide the community with guidance on specific processes to achieve certain objectives.
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
18
19
20

A technical article guides users and/or admins to achieve certain objectives (within guides and tutorials), or provide an overview of that particular topic or feature (within technical overviews). It can also describe the use, implementation, or integration of third-party tools with GitLab.

Achilleas Pipinellis's avatar
Achilleas Pipinellis включено в состав коммита
21
They live under `doc/topics/topic-name/`, and can be searched per topic, within "Indexes per Topic" pages. The topics are listed on the main [Indexes per Topic](../topics/index.md) page.
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
22
23
24
25
26
27
28
29

#### Types of Technical Articles

- **User guides**: technical content to guide regular users from point A to point B
- **Admin guides**: technical content to guide administrators of GitLab instances from point A to point B
- **Technical Overviews**: technical content describing features, solutions, and third-party integrations
- **Tutorials**: technical content provided step-by-step on how to do things, or how to reach very specific objectives

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
30
#### Understanding guides, tutorials, and technical overviews
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
31

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
32
Suppose there's a process to go from point A to point B in 5 steps: `(A) 1 > 2 > 3 > 4 > 5 (B)`.
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
33

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
34
A **guide** can be understood as a description of certain processes to achieve a particular objective. A guide brings you from A to B describing the characteristics of that process, but not necessarily going over each step. It can mention, for example, steps 2 and 3, but does not necessarily explain how to accomplish them.
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
35

Achilleas Pipinellis's avatar
Achilleas Pipinellis включено в состав коммита
36
- Live example: "GitLab Pages from A to Z - [Part 1](../user/project/pages/getting_started_part_one.md) to [Part 4](../user/project/pages/getting_started_part_four.md)"
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
37

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
38
39
A **tutorial** requires a clear **step-by-step** guidance to achieve a singular objective. It brings you from A to B, describing precisely all the necessary steps involved in that process, showing each of the 5 steps to go from A to B.
It does not only describes steps 2 and 3, but also shows you how to accomplish them.
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
40

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
41
42
- Live example (on the blog): [Hosting on GitLab.com with GitLab Pages](https://about.gitlab.com/2016/04/07/gitlab-pages-setup/)

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
43
A **technical overview** is a description of what a certain feature is, and what it does, but does not walk
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
44
45
46
47
through the process of how to use it systematically.

- Live example (on the blog): [GitLab Workflow, an overview](https://about.gitlab.com/2016/10/25/gitlab-workflow-an-overview/)

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
48
#### Special format
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
49

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
50
Every **Technical Article** contains, in the very beginning, a blockquote with the following information:
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
51
52
53
54
55
56

- A reference to the **type of article** (user guide, admin guide, tech overview, tutorial)
- A reference to the **knowledge level** expected from the reader to be able to follow through (beginner, intermediate, advanced)
- A reference to the **author's name** and **GitLab.com handle**

```md
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
57
58
59
> **Type:** tutorial ||
> **Level:** intermediary ||
> **Author:** [Name Surname](https://gitlab.com/username)
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
60
61
```

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
62
#### Technical Articles - Writing Method
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
63

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
64
Use the [writing method](https://about.gitlab.com/handbook/product/technical-writing/#writing-method) defined by the Technical Writing team.
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
65

Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
66
## Documentation style guidelines
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
67

Achilleas Pipinellis's avatar
Achilleas Pipinellis включено в состав коммита
68
All the docs follow the same [styleguide](doc_styleguide.md).
Marcia Ramos's avatar
Marcia Ramos включено в состав коммита
69
70
71

### Markdown

Achilleas Pipinellis's avatar
Achilleas Pipinellis включено в состав коммита
72
Currently GitLab docs use Redcarpet as [markdown](../user/markdown.md) engine, but there's an [open discussion](https://gitlab.com/gitlab-com/gitlab-docs/issues/50) for implementing Kramdown in the near future.