Skip to content

Commit efc2ce7

Browse files
committed
docs: update contribution frontmatter - WDOC-1102
1 parent 9101cab commit efc2ce7

File tree

5 files changed

+45
-73
lines changed

5 files changed

+45
-73
lines changed

docs/CONTRIBUTING.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -195,28 +195,21 @@ Here is a common example used in our `.mdx` files:
195195

196196
```markdown
197197
---
198-
meta:
199-
title: How to create a Bare Metal server
200-
description: This page explains how to create a Bare Metal server
201-
content:
202-
h1: Bare Metal server
203-
paragraph: This is a tutorial Bare Metal
204-
hero: assets/scaleway-account.png
198+
title: How to create a Bare Metal server
199+
description: This page explains how to create a Bare Metal server
205200
tags: compute baremetal bare metal cloud server dedicated
206201
dates:
207202
validation: 2021-06-22
208203
posted: 2020-03-12
204+
categories:
205+
- compute
209206
---
210207

211208
Here starts the content…
212209
```
213210

214-
- `meta` part is used for SEO `title` and `description`, it doesn't appear inside the website
215-
- `content` part which contains `h1` and `paragraph` is used for title and description inside website pages.
216-
- `h1` is used as H1 in pages, in the HTML head element as the browser tab title and for SEO.
217-
- `paragraph` is used in pages and in the head element for SEO.
218-
- `image` is used for the hero section image in tutorial pages. The image path can be relative to the file.
219-
- `tags` are used to help populate search result lists or pages top.
211+
- `title` and `description`, used for SEO, Algolia & for h1 and description in pages
212+
- `tags` are used to help populate search result lists or pages top. Use space separators.
220213
- `dates` are shown on pages under titles. `validation` must be a date later than the `posted`. Its format should be `AAAA-MM-DD`.
221214

222215
## Writing Guidelines

docs/DOC_PAGE_TEMPLATE.mdx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
---
2-
meta:
3-
title: # Title of the page
4-
description: # One-sentence description of the page.
5-
content:
6-
h1: # Title of the page again
7-
paragraph: # One-sentence description of the page.
8-
tags: # enter tags here
9-
# dates:
2+
title: # Title of the page
3+
description: # One-sentence description of the page.
4+
tags: # enter tags here, use space as separator
5+
dates:
106
# validation: XXXX-XX-XX (Year-Month-Day format)
117
# posted: XXXX-XX-XX (Year-Month-Day format)
128
categories:

docs/TROUBLESHOOTING_TEMPLATE.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
2-
meta:
3-
title: Title describing the PROBLEM (I cannot..., I am experiencing..., My resource..., I am unable to..., Resource not found, etc.)
4-
description: Description for SEO and referencing purposes that complements the title
5-
content:
6-
h1: Title describing the PROBLEM (I cannot..., I am experiencing..., My resource..., I am unable to..., Resource not found, etc.)
7-
paragraph: Description for SEO and referencing purposes that complements the title
2+
title: Title describing the PROBLEM (I cannot..., I am experiencing..., My resource..., I am unable to..., Resource not found, etc.)
3+
description: Description for SEO and referencing purposes that complements the title
84
tags: fail error troubleshooting help unable cannot
95
dates:
106
validation: 2025-03-10

pages/contribute.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
2-
meta:
3-
title: Scaleway Write for the Community program
4-
description: This page explains how to participate in the Scaleway Write for the Community program.
5-
content:
6-
h1: Write for the Community program
7-
paragraph: This page explains how to participate in the Scaleway Write for the Community program.
2+
title: Scaleway Write for the Community program
3+
description: This page explains how to participate in the Scaleway Write for the Community program.
84
tags: write-for-the-community community contribute git voucher
9-
cta: false
105
---
116

127
Join the Scaleway **Write for the Community** program, an initiative for making our [open-source Documentation](https://github.com/scaleway/docs-content/) a truly collaborative knowledge center.

pages/guidelines.mdx

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
2-
meta:
3-
title: Scaleway Documentation Guidelines
4-
description: Discover comprehensive guidelines on writing and formatting for our documentation site. Ensure consistency and clarity with our style guide, covering grammar, terminology, and best practices.
5-
content:
6-
h1: Scaleway Documentation Guidelines
7-
paragraph: Discover comprehensive guidelines on writing and formatting for our documentation site. Ensure consistency and clarity with our style guide, covering grammar, terminology, and best practices.
2+
title: Scaleway Documentation Guidelines
3+
description: Discover comprehensive guidelines on writing and formatting for our documentation site. Ensure consistency and clarity with our style guide, covering grammar, terminology, and best practices.
84
tags: style-guide guidelines wording grammar
95
dates:
106
validation: 2025-02-11
@@ -99,14 +95,14 @@ If you are creating a new page, it may be easiest to duplicate an existing page
9995

10096
More information about the different sections of each page can be found by following the links in the table above.
10197

102-
## Page content
98+
## Page content
10399

104100
### Headers
105101

106102
- There can be only one H1 on each page (the page title, defined in the [metadata](#metadata))
107103
- Use H2s (e.g. `## My subtitle`) to divide the page into subsections, and H3s (e.g. `### My sub-subtitle`) to divide the subsections (if appropriate). You can go up to 5 hierarchy levels (H5). In the right "Jump-to" menu, only H2s and H3s are visible and clickable.
108104
- Headers also serve as anchors. Link to a header anchor as follows `[text to display](#header-with-spaces-replaced-by-dashes)`
109-
- No headers should be orphaned. If you begin with H2, go down in sequence. The next step should either be another H2 or a level lower (in this case, H3).
105+
- No headers should be orphaned. If you begin with H2, go down in sequence. The next step should either be another H2 or a level lower (in this case, H3).
110106
- All headers should be in [sentence case](https://en.wikipedia.org/wiki/Letter_case#Sentence_case). Product names should nonetheless be capitalized as appropriate.
111107

112108
### Numbered steps
@@ -158,28 +154,28 @@ Markdown syntax:
158154
````
159155
```python
160156
my_list=[1,6,9,4]
161-
my_list[1]=3
157+
my_list[1]=3
162158
print(my_list)
163159
```
164-
````
160+
````
165161

166162
Renders as:
167163

168164
```python
169165
my_list=[1,6,9,4]
170-
my_list[1]=3
166+
my_list[1]=3
171167
print(my_list)
172168
```
173169

174170
### Inline code
175171

176-
Use inline code to reference information in your text, such as environment variables, placeholder values, and single-line short code snippets.
172+
Use inline code to reference information in your text, such as environment variables, placeholder values, and single-line short code snippets.
177173

178174
Markdown syntax (backticks):
179175

180176
````
181-
Do not forget to replace `<YOUR INSTANCE NAME>` with the name of your Instance.
182-
````
177+
Do not forget to replace `<YOUR INSTANCE NAME>` with the name of your Instance.
178+
````
183179

184180
Renders as:
185181

@@ -225,14 +221,14 @@ When linking to an external page, copy and paste the full link exactly as it app
225221

226222
When writing a "fake" or example link that does not lead to a real page, put it in inline code by using backticks: ```` `www/example-link.com` ````.
227223

228-
When including a "fake" or example link in a code box with an `<a href>` tag or similar, include the keyword `URLexample` in the URL:
224+
When including a "fake" or example link in a code box with an `<a href>` tag or similar, include the keyword `URLexample` in the URL:
229225

230226
````
231227
```php
232228
<?php
233229
more code here
234230
?>
235-
231+
236232
To go to the next page <A HREF="URLexample/nextpage.php">click here</A>
237233
```
238234
````
@@ -244,7 +240,7 @@ Use a console icon when referring in the documentation to the equivalent icon in
244240
| Syntax | Renders as |
245241
| ------------------------------------------------------------------- | ---------------------------------------------------------- |
246242
| ````Use the toggle <Icon name="toggle" /> to activate the feature```` | Use the toggle <Icon name="toggle" /> to activate the feature |
247-
243+
248244
See the [full list of available icons](/components/docs/#inline-console-icons).
249245

250246
### Messages
@@ -253,7 +249,7 @@ Three types of message boxes are available, to use as follows:
253249

254250
| Message type | Use for | Syntax | Renders as |
255251
|--------------|------------------------|--------|------------|
256-
| Note | Extra information that may not be relevant in all cases or to all users | ````<Message type="note"> </Message>```` | <Message type="note"> This is a note </Message> |
252+
| Note | Extra information that may not be relevant in all cases or to all users | ````<Message type="note"> </Message>```` | <Message type="note"> This is a note </Message> |
257253
| Tip | Information about a different way to accomplish something, or how to go further | ````<Message type="tip"> </Message>```` | <Message type="tip"> This is a tip </Message> |
258254
| Important | Critical warnings and information that the user must read to avoid unwanted consequences or mistakes | ````<Message type="important"> </Message>```` | <Message type="important"> This is important </Message> |
259255

@@ -273,15 +269,15 @@ Tabs syntax:
273269

274270
```
275271
<Tabs id="example-tabs">
276-
272+
277273
<TabsTab label="Tab one">
278274
This is the content of tab one
279275
</TabsTab>
280-
276+
281277
<TabsTab label="Tab two">
282278
This is the content of tab two
283279
</TabsTab>
284-
280+
285281
<TabsTab label="Tab three">
286282
This is the content of tab three
287283
</TabsTab>
@@ -309,7 +305,7 @@ Read more about the [tab component](/components/docs/#tabs).
309305

310306
### Pronouns
311307

312-
When addressing the user, say "you". When referring to Scaleway, say "Scaleway", "it", or "we".
308+
When addressing the user, say "you". When referring to Scaleway, say "Scaleway", "it", or "we".
313309

314310
| ✅ DO WRITE | ❌ DO NOT WRITE |
315311
| ------------------------------------------ | ----------------------------------------------- |
@@ -340,7 +336,7 @@ Always use "click", not "click on"
340336

341337
### Commas
342338

343-
Use the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma) (also known as the serial comma).
339+
Use the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma) (also known as the serial comma).
344340

345341
| ✅ DO WRITE | ❌ DO NOT WRITE |
346342
| ------------------------------------------ | ----------------------------------------------- |
@@ -377,13 +373,13 @@ Use the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma) (also known a
377373
### Dates and times
378374

379375
- For times, use the 24-hour format. If it is necessary to use the 12-hour format, use `a.m.` or `p.m.` appropriately
380-
- For dates, use `day/month/year` or `DD/MM/YY`.
376+
- For dates, use `day/month/year` or `DD/MM/YY`.
381377
- You can also write out the date, e.g. ` 14 January 2022`. Avoid ordinals, e.g. `14th January`. For a full list of allowed date formats, see the [UX writing guide](https://ultraviolet.scaleway.com/6dd9b5c45/p/45cfa5-date-and-time/b/210929).
382378

383379
### Bits and bytes
384380

385381
- Add a space between the bits/bytes abbreviation and the number, e.g. `100 MB`, `1 Gbps`
386-
- Use the following abbreviations:
382+
- Use the following abbreviations:
387383

388384
| Term | Abbreviation | Example |
389385
| --------------------- | ------------------|----------------------------------------- |
@@ -409,8 +405,8 @@ When referring to different aspects of the Scaleway console, use the following t
409405
| Side menu | <Lightbox image={image2} alt="" /> |
410406
| Organization drop-down menu | <Lightbox image={image3} alt="" /> |
411407
| $PRODUCT_NAME dashboard, e.g. Object Storage dashboard | <Lightbox image={image4} alt="" /> |
412-
| $PRODUCT_NAME creation page ( NOT `splashscreen`), e.g. Instances creation page | <Lightbox image={image5} alt="" /> |
413-
| $PRODUCT_NAME creation wizard, e.g. Load Balancer creation wizard | <Lightbox image={image6} alt="" /> |
408+
| $PRODUCT_NAME creation page ( NOT `splashscreen`), e.g. Instances creation page | <Lightbox image={image5} alt="" /> |
409+
| $PRODUCT_NAME creation wizard, e.g. Load Balancer creation wizard | <Lightbox image={image6} alt="" /> |
414410

415411
### Product and feature names
416412

@@ -452,12 +448,8 @@ Diagrams and schemas should be produced in accordance with Scaleway visual desig
452448

453449
```
454450
---
455-
meta:
456-
title: How to create an Instance
457-
description: Learn how to create a cloud instance with Scaleway in simple steps. Follow this guide to efficiently set up and manage your compute resources.
458-
content:
459-
h1: How to create an Instance
460-
paragraph: Learn how to create a cloud instance with Scaleway in simple steps. Follow this guide to efficiently set up and manage your compute resources.
451+
title: How to create an Instance
452+
description: Learn how to create a cloud instance with Scaleway in simple steps. Follow this guide to efficiently set up and manage your compute resources.
461453
tags: instance create
462454
dates:
463455
validation: 2024-06-10
@@ -467,16 +459,16 @@ categories:
467459
---
468460
```
469461

470-
- **meta: title** and **meta: description**: The title and description of the page, used by external search engines when indexing and displaying results. The description should be between 120 and 160 characters, and SEO-optimized, using clear, engaging language suitable for a wide audience.
471-
- **content: h1**: The main title that displays on the documentation page.
472-
- **content: paragraph**: The description that displays on some documentation pages (e.g. when the page is linked to from a [product card](https://www.scaleway.com/en/docs/components/docs-editor/#productcard).
473-
- **tags**: The tags used by internal and external search engines to help users find the page
462+
- **title**: The title of the page, used by external search engines and the main title that displays on the documentation page.
463+
- **description**: The description, used by external search engines. It should be between 120 and 160 characters, and SEO-optimized, using clear, engaging language suitable for a wide audience. Also displays on some
464+
documentation pages (e.g. when the page is linked to from a [product card](https://www.scaleway.com/en/docs/components/docs-editor/#productcard)).
465+
- **tags**: The tags used by internal and external search engines to help users find the page
474466
- **dates: posted**: The date the page was originally created, in the format `yyyy-mm-dd`. This displays on the generated page.
475-
- **dates: validation**: The date the page was last validated, in the format `yyyy-mm-dd`. This displays on the generated page, and is used by the Documentation team when identifying documentation pages that need reviewing.
467+
- **dates: validation**: The date the page was last validated, in the format `yyyy-mm-dd`. This displays on the generated page, and is used by the Documentation team when identifying documentation pages that need reviewing.
476468
- **categories**: The overall product [category](https://github.com/scaleway/docs-content/blob/main/menu/filters.json) that the documentation fits into, used by the site's internal Algolia search.
477469

478470
<Message type="note">
479-
The `meta: title` and `content: title` should be the same, other than in exceptional cases. Titles should be in [sentence case](https://en.wikipedia.org/wiki/Letter_case#Sentence_case). Different page types should have different types of titles:
471+
Titles should be in [sentence case](https://en.wikipedia.org/wiki/Letter_case#Sentence_case). Different page types should have different types of titles:
480472
- **How to**: How to + infinitve verb + 5 words maximum
481473
- **Tutorial**: Start with a gerund, e.g. "Deploying WordPress with LEMP on Ubuntu Focal Fossa"
482474
- **Troubleshooting**: The title should describe the problem, e.g. "Auto-configuration is not working"

0 commit comments

Comments
 (0)