Skip to content

Commit 00b1ba8

Browse files
authored
standardize capitalization of components (timescale#2064)
1 parent 4ba6594 commit 00b1ba8

File tree

368 files changed

+2838
-2205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

368 files changed

+2838
-2205
lines changed

.vscode/api-reference.code-snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scope": "markdown",
1111
"prefix": ["api"],
1212
"body": [
13-
"# ${1:api_call}() <tag type=\"$2\" content=\"$3\" />",
13+
"# ${1:api_call}() <Tag type=\"$2\" content=\"$3\" />",
1414
"${4:<!--Single sentence description of the API call-->}",
1515
"```${5:sql}",
1616
"${6:FIXME: Syntax example}",

.vscode/highlight-blank.code-snippets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"scope": "markdown",
1111
"prefix": ["hl"],
1212
"body": [
13-
"<highlight type=\"${1:note|important|warning|deprecated|cloud}\">",
13+
"<Highlight type=\"${1:note|important|warning|deprecated|cloud}\">",
1414
"$2",
15-
"</highlight>"
15+
"</Highlight>"
1616
],
1717
"description": "Make a blank callout block"
1818
}

.vscode/highlight-callout.code-snippets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"scope": "markdown",
1111
"prefix": ["high","callout"],
1212
"body": [
13-
"<highlight type=\"${1:note|important|warning|deprecated}\">",
13+
"<Highlight type=\"${1:note|important|warning|deprecated}\">",
1414
"$TM_SELECTED_TEXT",
15-
"</highlight>"
15+
"</Highlight>"
1616
],
1717
"description": "Make the selected text a callout block"
1818
}

.vscode/markdownlint/highlight-line-break.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const {
2121
*/
2222
const checkHighlightLineBreak = (params, onError) => {
2323
const { lines } = params;
24-
const openingPattern = "<highlight[^<]*>";
25-
const closingPattern = "<\\/highlight>";
24+
const openingPattern = "<Highlight[^<]*>";
25+
const closingPattern = "<\\/Highlight>";
2626
const openingTags = findPatternInLines(lines, openingPattern);
2727
const closingTags = findPatternInLines(lines, closingPattern);
2828

.vscode/markdownlint/highlight-type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const errorMessage = highlightTypes.reduce(
2222
*/
2323
const checkHighlightType = (params, onError) => {
2424
const { lines } = params;
25-
const highlightTags = findPatternInLines(lines, "<highlight[^<]*>");
25+
const highlightTags = findPatternInLines(lines, "<Highlight[^<]*>");
2626

2727
for (let tag of highlightTags) {
2828
const match = tag.line.match('type="([^"]+)"');

.vscode/markdownlint/procedure-tags-closed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const { checkTagsClosed, findPatternInLines } = require("./utils");
1313
*/
1414
const checkProcedureTagsClosed = (params, onError) => {
1515
const { lines } = params;
16-
const procedureOpeningTags = findPatternInLines(lines, "<procedure>");
17-
const procedureClosingTags = findPatternInLines(lines, "<\\/procedure>");
16+
const procedureOpeningTags = findPatternInLines(lines, "<Procedure>");
17+
const procedureClosingTags = findPatternInLines(lines, "<\\/Procedure>");
1818
if (procedureOpeningTags.length === 0 && procedureClosingTags.length === 0)
1919
return;
2020
checkTagsClosed({

.vscode/markdownlint/terminal-indent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const {
2020
const checkTerminalIndent = (params, onError) => {
2121
// Find all terminal-related JSX tags
2222
const { lines } = params;
23-
const terminalOpeningTags = findPatternInLines(lines, "<terminal>");
24-
const terminalClosingTags = findPatternInLines(lines, "<\\/terminal>");
23+
const terminalOpeningTags = findPatternInLines(lines, "<Terminal>");
24+
const terminalClosingTags = findPatternInLines(lines, "<\\/Terminal>");
2525
const tabTags = findPatternInLines(lines, "<\\/?tab.*>");
2626
if (terminalOpeningTags.length === 0) return;
2727

CONTRIBUTING.md

Lines changed: 53 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
# Introduction
2+
23
There are multiple ways to help make TimescaleDB better, including contributing
34
to the documentation. All of our documentation is available to use and review
45
with GitHub.
56

67
## First contribution
8+
79
You can make contributions to the documentation by creating a fork of the
810
repository. However, if you have write access to the repository, use a branch
911
instead. Some of our automation does not work correctly on forks.
1012

11-
<procedure>
13+
<Procedure>
1214

1315
### Contributing using a fork
16+
1417
1. Make sure you have a [GitHub](https://github.com) account, and that
1518
you're signed in.
1619
1. Navigate to the
@@ -20,73 +23,99 @@ instead. Some of our automation does not work correctly on forks.
2023
1. Wait for GitHub to create your fork and redirect you.
2124
1. Clone the repository to your local machine. To find this URL, click the green
2225
`Code` button and copy the HTTPS URL:
26+
2327
```bash
2428
git clone https://github.com/<username>/docs.git
2529
```
30+
2631
1. List the current remote branches:
32+
2733
```bash
2834
git remote -v
2935
```
36+
3037
This command should list two remotes, both marked `origin`, like this:
38+
3139
```bash
3240
origin https://github.com/<username>/docs.git (fetch)
3341
origin https://github.com/<username>/docs.git (push)
3442
```
43+
3544
The `origin` remotes are your own fork, and you can do whatever you want
3645
here without changing the upstream repository.
3746
1. Add the docs repo as an upstream:
47+
3848
```bash
3949
git remote add upstream https://github.com/timescale/docs.git
4050
```
51+
4152
1. Check:
53+
4254
```bash
4355
git remote -v
4456
```
57+
4558
This command should now have the same two `origin` remotes as before, plus
4659
two more labelled `upstream`, like this:
60+
4761
```bash
4862
origin https://github.com/<username>/docs.git (fetch)
4963
origin https://github.com/<username>/docs.git (push)
5064
upstream https://github.com/timescale/docs.git (fetch)
5165
upstream https://github.com/timescale/docs.git (push)
5266
```
67+
5368
1. Fetch the branches in the upstream repository:
69+
5470
```bash
5571
git fetch upstream
5672
```
73+
5774
1. Merge the changes from the upstream `latest` branch, into your fork's
5875
`latest` branch:
76+
5977
```bash
6078
git merge upstream/latest
6179
```
62-
1. Create a new branch for the work you want to do. Make sure you give it an
80+
81+
1. Create a new branch for the work you want to do. Make sure you give it an
6382
appropriate name, and include your username:
83+
6484
```bash
6585
git checkout -b update-readme-username
6686
```
6787
68-
</procedure>
88+
</Procedure>
6989
70-
<procedure>
90+
<Procedure>
7191
7292
### Committing changes and creating a pull request
93+
7394
1. Make your changes.
7495
1. Add the updated files to your commit:
96+
7597
```bash
7698
git add .
7799
```
100+
78101
1. Commit your changes:
102+
79103
```bash
80104
git commit -m "Commit message here"
81105
```
106+
82107
1. Push your changes:
108+
83109
```bash
84110
git push
85111
```
112+
86113
If git prompts you to set an upstream in order to push, use this command:
114+
87115
```bash
88116
git push --set-upstream origin <branchname>
89117
```
118+
90119
1. Create a pull request (PR) by navigating to
91120
<https://github.com/timescale/docs> and clicking
92121
`Compare and Create Pull Request`. Write an informative commit message
@@ -97,70 +126,82 @@ instead. Some of our automation does not work correctly on forks.
97126
transparent about what you are working on, and making sure we all understand
98127
current progress.
99128
100-
</procedure>
129+
</Procedure>
101130
102-
<highlight type="important">
131+
<Highlight type="important">
103132
Choose your reviewers carefully! If you have made changes to the technical
104133
detail of the documentation, choose an appropriate subject matter expert (SME)
105134
to review those changes. Additionally, every change requires at least one
106135
documentation team member to approve. Ask the documentation team for a review by
107136
adding the `timescale/documentation` group as a reviewer.
108-
</highlight>
137+
</Highlight>
109138
110139
## Second contribution
140+
111141
When you have checked out the repo, if you want to keep working on things, you
112142
need to make sure that your local copy of the repo stays up to date. If you
113143
don't do this, you *will* end up with merge conflicts.
114144

115-
<procedure>
145+
<Procedure>
116146

117147
### Second contribution
148+
118149
1. Check out your fork's `latest` branch:
150+
119151
```bash
120152
git checkout latest
121153
```
154+
122155
You get a message like this:
156+
123157
```bash
124158
Switched to branch 'latest'
125159
Your branch is up to date with 'origin/latest'.
126160
```
161+
127162
BEWARE! This is usually a lie!
128163
1. Fetch the branches in the upstream repository:
164+
129165
```bash
130166
git fetch upstream
131167
```
168+
132169
1. Merge the changes from the upstream `latest` branch, into your fork's
133170
`latest` branch:
171+
134172
```bash
135173
git merge upstream/latest
136174
```
175+
137176
1. If you are continuing work you began earlier, check out the branch that
138177
contains your work. For new work, create a new branch. Doing this regularly
139178
as you are working means you keep your local copies up to date and avoid
140179
conflicts. You should do it at least every day before you begin work, and
141180
again whenever you switch branches.
142181

182+
</Procedure>
143183

144-
</procedure>
145-
146-
<highlight type="warning">
184+
<Highlight type="warning">
147185
Never leave branches lying around on your local system. Create your PR as soon
148186
as possible, and make good use of the Draft feature. Commit to your feature
149187
branch early and often! Update your local copy from latest whenever you switch
150188
branches.
151-
</highlight>
189+
</Highlight>
152190

153191
## Reviewing standards
192+
154193
When you create a pull request, a member of the documentation team will review
155194
it for accuracy and adherance to our standards. You can see a list of the things
156195
that reviewers check for in the pull request template.
157196

158197
## Writing standards
198+
159199
Timescale has comprehensive writing and style standards, that are constantly
160200
being updated and improved. For the current guidelines, see
161201
[contributing to documentation](https://docs.timescale.com/timescaledb/latest/contribute-to-docs/).
162202

163203
## The Timescale documentation team
204+
164205
* Lana Brindley <https://github.com/Loquacity>
165206
* Rajakavitha Kodhandapani <https://github.com/Rajakavitha1>
166207
* Charis Lam <https://github.com/charislam>

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,23 +201,23 @@ The `type` can currently support a value of `"note"`, `"warning"`,
201201
for content specifically referring to Timescale Cloud.
202202

203203
```html
204-
<highlight type="note">
204+
<Highlight type="note">
205205
Callout text goes here...
206206

207207
Example link style would [look like this](http://example.com/)
208-
</highlight>
208+
</Highlight>
209209
```
210210

211211
### Tags
212212

213213
You can use tags to indicate links to downloadable files, or to indicate
214214
metadata about functions. Available tags:
215215

216-
* Download tags: `<tag type="download">Markdown link to download</tag>`
217-
* Experimental tags: `<tag type="experimental" content="Experimental" />` or
218-
`<tag type="experimental-toolkit" content="Experimental" />`
219-
* Toolkit tag: `<tag type="toolkit" content="Toolkit" />`
220-
* Community tag: `<tag type="community" content="Community" />`
216+
* Download tags: `<Tag type="download">Markdown link to download</Tag>`
217+
* Experimental tags: `<Tag type="experimental" content="Experimental" />` or
218+
`<Tag type="experimental-toolkit" content="Experimental" />`
219+
* Toolkit tag: `<Tag type="toolkit" content="Toolkit" />`
220+
* Community tag: `<Tag type="community" content="Community" />`
221221

222222
### Procedures
223223

_multi-code-block.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Note the spacing and labeling are very important! -->
2-
<terminal>
2+
<Terminal>
33

44
<tab label='ruby'>
55

@@ -34,4 +34,4 @@ def different_python:
3434

3535
</tab>
3636

37-
</terminal>
37+
</Terminal>

0 commit comments

Comments
 (0)