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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ summary: Short description of page for SEO
91
91
92
92
Field | Description | Default
93
93
------|-------------|--------
94
-
`title`| Used as the h1 header. | Nothing
94
+
`title`| Used as the h1 header and written in title-case. | Nothing
95
95
`summary`| Used as the page's `meta description` for SEO. Keep this under 155 characters. Consider using the first sentence of the page, or something similar. | Nothing
96
96
97
97
Optionally, you can specify other fields in the front-matter:
Copy file name to clipboardExpand all lines: STYLE.md
+37-33Lines changed: 37 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -12,26 +12,26 @@ The following guidance is provided to ensure consistency.
12
12
13
13
Included in this guide:
14
14
15
-
-[Language and Tone](#language-and-tone)
16
-
-[Capitalization and Punctuation](#capitalization-and-punctuation)
17
-
-[File Conventions](#file-conventions)
18
-
-[Documentation Types](#documentation-types)
19
-
-[Reference and Task-Based Docs](#reference-and-task-based-docs)
20
-
-[Tutorials, Training, and Examples](#tutorials-training-and-examples)
21
-
-[Concept Docs](#concept-docs)
15
+
-[Language and tone](#language-and-tone)
16
+
-[Capitalization and punctuation](#capitalization-and-punctuation)
17
+
-[File conventions](#file-conventions)
18
+
-[Documentation types](#documentation-types)
19
+
-[Reference and task-based docs](#reference-and-task-based-docs)
20
+
-[Tutorials, training, and examples](#tutorials-training-and-examples)
21
+
-[Concept docs](#concept-docs)
22
22
-[Components](#components)
23
23
-[Headings](#headings)
24
-
-[Text Format](#text-format)
24
+
-[Text format](#text-format)
25
25
-[Links](#links)
26
-
-[Tips, Notes, and Warnings](#tips-notes-and-warnings)
26
+
-[Tips, notes, and warnings](#tips-notes-and-warnings)
27
27
-[Code](#code)
28
28
-[Examples](#examples)
29
-
-[Version Tags](#version-tags)
29
+
-[Version tags](#version-tags)
30
30
-[Tables](#tables)
31
31
-[Lists](#lists)
32
32
-[Images](#images)
33
33
34
-
## Language and Tone
34
+
## Language and tone
35
35
36
36
CockroachDB docs should be helpful, humble, positive, and friendly. To achieve this, all docs should be factual and free from hyperbolic language.
37
37
@@ -60,11 +60,11 @@ Other general guidance about language and tone:
60
60
61
61
**Example:** If you leave versioned binaries on your servers, you do not need to do anything.
62
62
63
-
## Capitalization and Punctuation
63
+
## Capitalization and punctuation
64
64
65
65
Capitalization rules:
66
66
67
-
- Use title-case instead of sentence-case for all [headings](#headings).
67
+
- Use sentence-case instead of title-case for all [headings](#headings).
68
68
- Depending on the context, use title-case or sentence-case for [links](#links).
69
69
- Capitalize proper nouns, CockroachDB specific terms, and the names of UI features:
70
70
@@ -77,10 +77,11 @@ Punctuation rules:
77
77
- Limit semicolon usage. Instead, try two simple sentences.
78
78
- Don't use end punctuation (e.g., periods or colons) in headings.
79
79
- Use periods at the end of list items if it is a sentence or completes a sentence.
80
+
- Use the [Oxford (a.k.a. serial) comma](https://en.wikipedia.org/wiki/Serial_comma).
80
81
81
82
For more detail about how to format text, see [Componenets](#components).
82
83
83
-
## File Conventions
84
+
## File conventions
84
85
85
86
CockroachDB docs are mainly comprised of pages (`.md`) and images (`.png` or `.gif`). File names are lowercase with a dash between words, and should be brief but descriptive.
86
87
@@ -93,9 +94,9 @@ Each version's pages are found in a directory named for the version. For example
93
94
94
95
Each version's images are found in a directory named for the version under the `images` directory. For example, images for CockroachDB v1.0 are in the `docs > images > v1.0` directory. For more information, see [Images](#images).
95
96
96
-
## Documentation Types
97
+
## Documentation types
97
98
98
-
### Reference and Task-Based Docs
99
+
### Reference and task-based docs
99
100
100
101
Reference docs are informational and provide a comprehensive description of a CockroachDB function or feature, while task-based docs are instructional and provide prescriptive, step-by-step guidance to help a user complete a specific task.
101
102
@@ -105,15 +106,17 @@ Examples:
105
106
-**CLI reference doc example:**[Use the Built-in SQL Client](https://www.cockroachlabs.com/docs/stable/use-the-built-in-sql-client.html)
106
107
-**Task-based doc example:**[Orchestrate CockroachDB with Kubernetes](https://www.cockroachlabs.com/docs/stable/orchestrate-cockroachdb-with-kubernetes.html)
107
108
108
-
### Tutorials, Training, and Examples
109
+
### Tutorials, training, and examples
109
110
110
111
Tutorials, training, and examples are educational docs or sections meant to acquaint users with CockroachDB and its features. These docs should be written in a more conversational [tone](#language-and-tone), as if they are teaching the user.
111
112
113
+
Headings in tutorials and training docs should include `Step N.` to denote the sequence of steps to follow.
Concept docs are guides that detail how CockroachDB is built, but does not explain how you should architect an application using CockroachDB.
119
122
@@ -128,16 +131,17 @@ Examples:
128
131
129
132
Use headings to demarcate content into a hierarchy to help readers find information easier.
130
133
131
-
Headings should be title-case, and are denoted by number signs (`#`) followed by one space. Enter a line break between a heading and its content. CockroachDB docs use Heading 2 (`##`), Heading 3 (`###`) and Heading 4 (`####`). We try to use Heading 4 sparingly.
134
+
Headings should be sentence-case, and are denoted by number signs (`#`) followed by one space. Enter a line break between a heading and its content. CockroachDB docs use Heading 2 (`##`), Heading 3 (`###`) and Heading 4 (`####`). We try to use Heading 4 sparingly.
132
135
133
-
Heading 1 is reserved for page titles and anything under Heading 4 can be denoted by bolded text, or other layout options should be considered.
136
+
Heading 1 is reserved for page titles and should be title-case. Anything under Heading 4 can be denoted by bolded text, or other layout options should be considered.
134
137
135
138
Examples:
136
139
137
-
-`## This is Heading 2`
138
-
-`### And This is Heading 3`
140
+
-`## This is heading 2`
141
+
-`### And this is heading 3`
142
+
-`## Step 2. This is a step in a tutorial`
139
143
140
-
### Text Format
144
+
### Text format
141
145
142
146
#### Bold
143
147
@@ -155,7 +159,7 @@ To bold a word or phrase, surround the text with two asterisks (`**`).
155
159
156
160
See [Inline Code](#inline-code).
157
161
158
-
#### Quotation Marks
162
+
#### Quotation marks
159
163
160
164
Use quotation marks (`""`) to indicate a direct, word-for-word quotation.
161
165
@@ -194,7 +198,7 @@ Links are marked with inline text surrounded by square brackets followed by the
194
198
195
199
**Example:**`[xyz](#heading-on-page)`
196
200
197
-
### Tips, Notes, and Warnings
201
+
### Tips, notes, and warnings
198
202
199
203
Our docs use three classes of highlighted text:
200
204
@@ -244,21 +248,21 @@ To insert a warning, use the following code:
244
248
245
249
Code can be shown [inline](#inline-code) or as a [code block](#code-blocks).
246
250
247
-
#### Inline Code
251
+
#### Inline code
248
252
249
253
Inline `code` has `back-ticks (``) around` it and is used when referring to code, commands, or other technical syntax within a sentence.
250
254
251
255
Example: The `CREATE TABLE` statement creates a new table in a database.
252
256
253
-
#### Code Blocks
257
+
#### Code blocks
254
258
255
259
Code blocks are used to provide executable code samples, marked with an opening and closing set of 3 tildes (`~~~`). Code blocks can support syntax highlighting if you add the language name immediately after the first line of back-ticks. Shell and SQL commands should be syntax highlighted where appropriate using the following info:
256
260
257
-
**Shell Code Samples**
261
+
**Shell code samples**
258
262
259
263
Start shell code samples with `~~~ shell` followed by a line break. The first character of the next line must be the terminal marker `$`.
260
264
261
-
**SQL Code Samples**
265
+
**SQL code samples**
262
266
263
267
SQL code samples are broken into two sections: commands and responses.
264
268
@@ -267,7 +271,7 @@ SQL code samples are broken into two sections: commands and responses.
267
271
268
272
Note that not all responses warrant inclusion. For example, if a SQL code sample shows `CREATE TABLE`, `INSERT`, and then `SELECT`, it's unnecessary to show the responses for `CREATE TABLE` (which is just `CREATE TABLE`) and `INSERT` (which is just `INSERT <number of rows>`).
269
273
270
-
**Copy to Clipboard**
274
+
**Copy to Clipboard Button**
271
275
272
276
Many of our code blocks are written so users can copy and paste them directly into a terminal. To make that easier, add the **Copy to Clipboard** button by placing `{% include copy-clipboard.html %}` on the line directly preceding the code block, for example:
273
277
@@ -302,7 +306,7 @@ Examples help show the feature in action. Examples follow a basic format:
302
306
303
307
When such a "simple" table has no indexes or foreign keys, `INSERT`/`UPSERT`/`UPDATE`/`DELETE` statements translate to key-value operations with minimal overhead (single digit percent slowdowns)." [_Click here to see the rest of the example._](https://www.cockroachlabs.com/docs/stable/create-table.html#create-a-table-that-mirrors-key-value-storage)
304
308
305
-
### Version Tags
309
+
### Version tags
306
310
307
311
Use HTML version tags to denote new or updated features for the version. Version tags can be put at the end of a heading, if the whole section describes something that is new or updated. Otherwise, version tags can introduce a paragraph, sentence, or description in a table cell.
308
312
@@ -389,7 +393,7 @@ For each item of a **numbered list**, use the step number followed by a period a
389
393
390
394
For each item of a **bulleted list**, use one dash followed by one space to denote a list item, e.g., `- This is a bulleted list`.
391
395
392
-
#### Nesting Lists
396
+
#### Nesting lists
393
397
394
398
To nest a list under a list item, start the list on the next line (no empty line), and indent the new list four spaces, for example:
395
399
@@ -402,7 +406,7 @@ To nest a list under a list item, start the list on the next line (no empty line
402
406
2. This is a step.
403
407
```
404
408
405
-
#### Nesting Paragraphs or Code Blocks
409
+
#### Nesting paragraphs or code blocks
406
410
407
411
To nest a paragraph or code block under a list item, insert an empty line and then indent the paragraph or code block 4 spaces, for example:
0 commit comments