You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Kramdown, with [GFM](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown)codeblocks, and a few Kramdownrelated exceptions introduced with `{: }` such as class names for specific formatting of columns and notes.
15
+
We use Kramdown, with [GFM](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown)code blocks, and a few Kramdown-related exceptions introduced with `{: }` such as class names for specific formatting of columns and notes.
16
16
17
-
###Headings
17
+
## Headings
18
18
19
-
For historical reasons, the toplevel heading in Jekyll markdown files is level 2 (##) not level 1 (#).
19
+
For historical reasons, the top-level heading in Jekyll's markdown files is level 2 (##), not level 1 (#). Only the page’s title is a level 1 heading.
20
20
21
-
We use ATXstyle headings, and do not use the optional closing hashes:
21
+
We use ATX-style headings and do not use the optional closing hashes:
22
22
23
23
```markdown
24
24
## This is an H2
@@ -28,38 +28,62 @@ We use ATX style headings, and do not use the optional closing hashes:
28
28
#### This is an H4
29
29
```
30
30
31
-
We do not use underline style headings:
31
+
We do not use underlined style headings:
32
32
33
33
```markdown
34
34
Do not use this style heading
35
35
=============================
36
36
```
37
37
38
-
###Lists
38
+
## Lists
39
39
40
-
If you have long lists you can wrap them into 2 (`.column-2`) or 3 (`.column-3`) columns using one of the follow CSS classes after your list item:
40
+
If you have long lists, you can wrap them into 2 (`.column-2`) or 3 (`.column-3`) columns using one of the following CSS classes after your list item:
41
41
42
42
```css
43
43
* long list item 1
44
44
* long list item 2
45
45
{: .column-2 }
46
46
```
47
47
48
-
#### In-page table of contents
48
+
##Links
49
49
50
-
All pages have tables of contents generated automatically from H2 and H3
50
+
Make sure all links have titles:
51
+
52
+
```markdown
53
+
The [link][example1] in the text
54
+
55
+
[example1]: http://www.example.com "Example URL"
56
+
```
57
+
58
+
or
59
+
60
+
```markdown
61
+
The [link](http://www.example.com "Example URL") in the text
62
+
```
63
+
64
+
When linking internal pages, use absolute paths and trailing slashes: `/user/languages/c/`.
65
+
You can link to headings and remember to remove special characters, for example:
66
+
67
+
To link to "##Node.js Page," use `#nodejs-page`.
68
+
69
+
70
+
## In-page Options
51
71
52
-
To remove the TOC from a page add `no_toc: true` to the frontmatter.
72
+
### Notes, warnings, and blocks
53
73
54
-
### Note, warnings and blocks
74
+
Travis CI uses the blockquote symbol `>` for general-purpose notes and warnings.
55
75
56
-
We use the blockquote symbol `>` for general purpose notes and warnings.
76
+
See an example below:
57
77
58
-
#### Beta features
78
+
> Note: This feature is only available in Version 2.0.
79
+
80
+
### Beta features
59
81
60
82
Mark all beta features with a specially formatted note. Both the `> BETA` and
61
83
the `{: .beta}` are required.
62
84
85
+
See an example below:
86
+
63
87
> BETA Awesome new feature that might not be enabled and is subject to change.
64
88
{: .beta}
65
89
@@ -68,46 +92,25 @@ the `{: .beta}` are required.
68
92
Mark all alpha features with a specially formatted note. Both the `> ALPHA` and
69
93
the `{: alpha}` are required.
70
94
71
-
> ALPHA Awesome new feature that might explode for extra fun.
95
+
> ALPHA: Awesome new feature that might explode for extra fun.
72
96
{: .alpha}
73
97
74
98
### GUI
75
99
76
-
Make sure all references to items in a GUI match the case of the UI, and are marked with *asterisks*.
77
-
78
-
### Links
79
-
80
-
Make sure all links have titles:
81
-
82
-
```markdown
83
-
The [link][example1] in the text
84
-
85
-
[example1]: http://www.example.com "Example URL"
86
-
```
87
-
88
-
or
89
-
90
-
```markdown
91
-
The [link](http://www.example.com "Example URL") in the text
92
-
```
93
-
94
-
When linking internal pages, use absolute paths and trailing slashes: `/user/languages/c/`.
95
-
You can link to headings, remember to remove special characters, for example:
96
-
97
-
To link to "##Node.js Page" use `#nodejs-page`.
100
+
Ensure all references to items in a GUI match the case of the UI and are marked with *asterisks*.
98
101
99
102
100
103
### Code Inline
101
104
102
-
All function names, filenames, etc should be marked with `back-ticks`.
105
+
All function names, filenames, etc., should be marked with `back-ticks`.
103
106
104
107
If you're talking about applications or services, only the actual command should be marked as code, not the name of the service:
105
108
106
109
- Start the PostgreSQL database by running `psql`.
107
110
108
111
### Blockquotes / Notes / Warnings
109
112
110
-
As we have no use for blockquotes we use `>` to indicate notes and warnings:
113
+
As we have no use for blockquotes, we use `>` to indicate notes and warnings:
111
114
112
115
```markdown
113
116
> Note this important info!
@@ -131,16 +134,62 @@ This code is in .travis.yml
131
134
```
132
135
{: data-file=".travis.yml"}
133
136
137
+
### In-page table of contents
138
+
139
+
All Travis CI pages have tables of contents generated automatically from H2 and H3
134
140
141
+
Add `no_toc: true` to the frontmatter to remove the TOC from a page.
135
142
136
-
### Common misspellings and words to avoid
143
+
### Terminology
144
+
The following are some common misspellings and words to avoid
137
145
138
146
- Always refer to *Travis CI* and never to Travis.
139
147
140
148
## Images
141
149
150
+
Add images inline-style with a brief description.
151
+
152
+
To add an image, follow these steps:
153
+
1 Capture the image.
154
+
2 Save the image in the `images/` path.
155
+
3 Add the image to the documentation as follows:
156
+

157
+
142
158
### Screencapture gifs
143
159
144
160
1. Run a build (or whatever you are trying to capture),
145
161
2. Capture it with [licecap](https://www.cockos.com/licecap/).
146
-
3. Save the gif in `images/`
162
+
3. Save the gif in the following path: `images/`
163
+
164
+
165
+
## Documentation Template
166
+
167
+
A basic template for contributing to new documentation pages or sections is as follows:
168
+
169
+
```markdown
170
+
---
171
+
title: “Insert Page Title”
172
+
layout: en
173
+
174
+
---
175
+
176
+
Start your introduction here. Usually, an introduction is between one and three sentences.
177
+
178
+
## Section Heading
179
+
180
+
Section introduction sentence.
181
+
182
+
* **Item1** - a group of *jobs* that run in sequence.
183
+
* **Item2** - a group of *jobs* that run in parallel as part of a sequential *build* process composed of multiple [stages](/user/build-stages/).
184
+
* **Item3** - an automated process that clones your repository into a virtual
185
+
environment and then carries out a series of *phases* such as compiling your
186
+
code, running tests, etc.
187
+
* **Item4** - the [sequential steps](/user/job-lifecycle/)
188
+
of a *job*.
189
+
190
+
```
191
+
{: data-file=".travis.yml"}
192
+
193
+
The example above shows a paragraph with different formatting options.
194
+
195
+
Check out the [Travis CI documentation](https://docs.travis-ci.com/) for more examples.
0 commit comments