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: docs/contributing/index.md
+43-7Lines changed: 43 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
This documentation is developed using the [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) framework, and the source code for the docs is publicly available on [GitHub](https://github.com/eth-cscs/cscs-docs).
4
4
This means that everybody, CSCS staff and the CSCS user community can contribute to the documentation.
5
5
6
-
## Getting Started
6
+
## Getting started
7
7
8
8
We use the GitHub fork and pull request model for development:
9
9
@@ -40,7 +40,7 @@ To build the docs in a `site` sub-directory:
40
40
```bash
41
41
./serve build
42
42
```
43
-
## Review Process
43
+
## Review process
44
44
45
45
Documentation is owned by everybody - so don't be afraid to jump in and make changes or fixes where you see that there is something missing or outdated.
46
46
@@ -57,7 +57,7 @@ If you don't get a timely reply, ask the documentation owners for a review or fo
57
57
58
58
### Links
59
59
60
-
#### External Links
60
+
#### External links
61
61
62
62
Links to external sites use the `[]()` syntax:
63
63
@@ -71,7 +71,7 @@ Links to external sites use the `[]()` syntax:
The CI/CD pipeline will fail if it detects broken links in your draft documentation.
@@ -124,7 +124,7 @@ Images are stored in the `docs/images` directory.
124
124
!!! tip
125
125
Do you need a screenshot, or can a text description also work?
126
126
127
-
### Text Formatting
127
+
### Text formatting
128
128
129
129
Turn off automatic line breaks in your text editor, and stick to one sentence per line in paragraphs of text.
130
130
@@ -169,7 +169,7 @@ This method defines a canonical represention of text, i.e. there is one and only
169
169
* changing one line of text will not modify the surrounding lines (see example above)
170
170
* git diffs and git history are easier to read.
171
171
172
-
### Frequently Asked Questions
172
+
### Frequently asked questions
173
173
174
174
The documentation does not have a FAQ section, because questions are best answered by the documentation, not in a separate section.
175
175
Integrating information into the main documentation requires some care to identify where the information needs to go, and edit the documentation around it.
@@ -179,7 +179,7 @@ FAQ content, such as lists of most frequently encountered error messages, is sti
179
179
If you want to add such content, create a section at the bottom of a topic page, for example this section on the [SSH documentation page][ref-ssh-faq].
180
180
181
181
182
-
### Small Contributions
182
+
### Small contributions
183
183
184
184
Small changes that only modify the contents of a single file, for example to fix some typos or add some clarifying detail to an example, it is possible to quickly create a pull request directly in the browser.
185
185
@@ -192,3 +192,39 @@ Once your changes are ready, click on the "Commit changes..." button in the top
192
192
193
193
* if the change is small and you are CSCS staff, you can merge the PR immediately
194
194
* all other changes can be
195
+
196
+
## Style guide
197
+
198
+
This section contains general guidelines for how to format and present documentation in this repository.
199
+
They should be followed for most cases, but as a guideline it can be broken, _with good reason_.
200
+
201
+
### Headings are written in sentence case
202
+
203
+
Use [title case](https://en.wikipedia.org/wiki/Letter_case#Sentence_case) for headings, meaning all words are capitalized except for minor words.
204
+
205
+
### Avoid nesting headings too deep
206
+
207
+
Nesting headings up to three levels is generally ok.
208
+
209
+
### Lists
210
+
211
+
Write lists as proper sentences.
212
+
Separate the items simply with commas if each item is simple, or make each item a full sentence if the items are longer and contain multiple sentences.
213
+
214
+
1. The first item can look like this,
215
+
2. the second like this, and
216
+
3. the third item like this.
217
+
218
+
### Using admonitions
219
+
220
+
Aim to include examples, notes, warnings using [admonitions](https://squidfunk.github.io/mkdocs-material/reference/admonitions/) whenever appropriate.
221
+
They stand out better from the main text, and can be collapsed by default if needed.
222
+
223
+
!!! example "Example one"
224
+
This is an example.
225
+
The title of the example uses [sentence case](https://en.wikipedia.org/wiki/Letter_case#Sentence_case).
226
+
227
+
??? note "Collapsed note"
228
+
This note is collapsed, because it uses `???`.
229
+
230
+
If an admonition is collapsed by default, it should have a title.
0 commit comments