Skip to content

Commit 1805fe3

Browse files
feat(gen): templates
1 parent f71fbfe commit 1805fe3

File tree

11 files changed

+294
-433
lines changed

11 files changed

+294
-433
lines changed

docs/templates/additional-content.mdx

Whitespace-only changes.

docs/templates/api-cli.mdx

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
title: "API/CLI: Perform an Action"
3+
description: Use the API or CLI to perform a specific operation.
4+
---
5+
6+
# API/CLI: Perform an Action
7+
8+
This guide shows how to perform an operation using either the CLI or REST API.
9+
10+
## Using the CLI
11+
12+
### Install the CLI
13+
14+
```bash
15+
curl -fsSL https://scaleway-cli.s3.fr-par.scw.cloud/install.sh | sh
16+
```
17+
18+
### Configure Authentication
19+
20+
```bash
21+
scw init
22+
```
23+
24+
### Run the Command
25+
26+
```bash
27+
scw service:action \
28+
parameter1=value1 \
29+
parameter2=value2 \
30+
region=fr-par
31+
```
32+
33+
### Expected Output
34+
35+
```text
36+
ID: 123e4567-e89b-12d3-a456-426614174000
37+
Status: active
38+
```
39+
40+
## Using the REST API
41+
42+
### Endpoint
43+
44+
```text
45+
POST /v1/zones/fr-par-1/resource/action
46+
```
47+
48+
### Headers
49+
50+
```text
51+
X-Auth-Token: your-api-key
52+
Content-Type: application/json
53+
```
54+
55+
### Request Body
56+
57+
```json
58+
{
59+
"parameter1": "value1",
60+
"parameter2": "value2"
61+
}
62+
```
63+
64+
### Response
65+
66+
```json
67+
{
68+
"id": "123e4567-e89b-12d3-a456-426614174000",
69+
"status": "active"
70+
}
71+
```
72+
73+
## Parameters Reference
74+
75+
| Parameter | Required | Description | Default |
76+
|---------|--------|------------|--------|
77+
| `parameter1` | Yes | Purpose of parameter ||
78+
| `parameter2` | No | Optional setting | `default-value` |
79+
| `region` | Yes | Target region | `fr-par` |
80+

docs/templates/concepts.mdx

Whitespace-only changes.

docs/templates/faq.mdx

Whitespace-only changes.

docs/templates/how-tos.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: "How to Perform a Specific Task"
3+
description: Step-by-step instructions for completing a specific task.
4+
---
5+
6+
This guide shows how to complete a specific task using either the console or command-line interface.
7+
8+
## Requirements
9+
10+
- A running resource of the relevant type.
11+
- Access to the Scaleway Console or CLI.
12+
- Required permissions for the operation.
13+
14+
## Step 1: Access the Resource
15+
16+
1. Log in to the [Scaleway Console](https://console.scaleway.com).
17+
2. Navigate to the service dashboard.
18+
3. Locate and select your resource.
19+
20+
## Step 2: Perform the Task
21+
22+
1. In the resource interface, locate the relevant section.
23+
2. Click the appropriate button or run the command.
24+
3. Confirm the action.
25+
26+
Example CLI command:
27+
```bash
28+
scw service:command parameter=value
29+
```

docs/templates/index.mdx

Whitespace-only changes.

docs/templates/menu.ts

Whitespace-only changes.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: <Product name> Information
3+
description: Understand the autohealing feature for PostgreSQL and MySQL databases.
4+
dates:
5+
validation: 2025-04-23
6+
categories:
7+
- managed-databases
8+
- postgresql-and-mysql
9+
---
10+
11+
## Description (Mandatory)
12+
13+
Description of the product including:
14+
15+
- What it does
16+
- Its advantages (summary of most important features)
17+
- Use cases
18+
19+
Optional:
20+
- Where does it place on the "compute abstraction" scale?
21+
- If it can be combined with other Scaleway products
22+
23+
## Technical Information (If applicable)
24+
25+
- How it is built at Scaleway (If available)
26+
- Diagrams (If available)
27+
- Requirements to use the product (If applicable)
28+
- Can it be integrated with other Scaleway products?
29+
30+
## Pricing (Mandatory)
31+
32+
- Explain pricing (If explanation is available)
33+
- Add any information that might be interesting about pricing
34+
- Add link to pricing page (Mandatory)
35+
36+
## Features (Mandatory)
37+
38+
List of features in alphabetical order, including:
39+
- currently integrated features
40+
- any features that are already in the roadmap and will be integrated in the near future
41+
42+
43+
44+
45+
---
46+
title: "Service Overview"
47+
description: Introduction to the service, its features, and documentation structure.
48+
---
49+
50+
# Service Overview
51+
52+
This service provides capabilities for managing resources in a scalable and secure way.
53+
54+
## Key Features
55+
56+
- **Feature 1**: Description of functionality and benefit.
57+
- **Feature 2**: Scope and availability (e.g., multi-region).
58+
- **Feature 3**: Integration with other services.
59+
- **Feature 4**: Automation and API access.
60+
61+
## Use Cases
62+
63+
| Use Case | Description |
64+
|---------|-------------|
65+
| Web Hosting | Deploy and scale public-facing applications |
66+
| Data Processing | Run batch jobs with flexible compute options |
67+
| Private Networking | Isolate resources in a secure environment |
68+
69+
## Getting Started
70+
71+
- [Quickstart: Set Up a Resource](#)
72+
- [Concepts: Core Components](#)
73+
74+
## Documentation Map
75+
76+
| Topic | Guide |
77+
|------|-------|
78+
| How-tos | [Step-by-step tasks](#) |
79+
| Concepts | [Understanding the system](#) |
80+
| API/CLI | [Programmatic access](#) |
81+
| Troubleshooting | [Common issues](#) |
82+
| Release Notes | [Updates and changes](#) |
83+
```

docs/templates/quickstart.mdx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: "Quickstart: Set Up a Resource"
3+
description: Get started with the service in a few simple steps.
4+
---
5+
6+
## Quickstart
7+
8+
A **Quickstart** helps new users complete a basic task or set up a resource in just a few steps.
9+
10+
### Purpose
11+
To get users from zero to a working setup as quickly as possible — typically in under five minutes. It can:
12+
13+
- Introduce a new product or feature
14+
- Help first-time users create their first resource
15+
- Demonstrate core functionalities
16+
17+
Understood — thank you for the clarification.
18+
19+
20+
21+
# Quickstart: Set Up a Resource
22+
23+
This guide walks you through creating your first resource and performing a basic action.
24+
25+
## Requirements
26+
27+
- You have a Scaleway account. [Create one here](https://console.scaleway.com/register) if needed.
28+
- You are logged in to the [Scaleway Console](https://console.scaleway.com).
29+
- You have the necessary permissions to create resources.
30+
31+
## Create via Console
32+
33+
1. Navigate to the service dashboard.
34+
2. Click **Create Resource**.
35+
3. Select a configuration template or image.
36+
4. Choose a region and instance type.
37+
5. Confirm and create the resource.
38+
39+
## Perform a Basic Action
40+
41+
Once the resource is active:
42+
1. Locate it in the dashboard.
43+
2. Use the available controls to perform an action (e.g., start, connect, or configure).
44+
3. Confirm the action was successful.
45+
46+
## Next Steps
47+
48+
- [Learn how to configure advanced settings](#)
49+
- [Explore the API/CLI options](#)
50+
- [Understand core concepts](#)
51+
```

docs/templates/troubleshooting.mdx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: "Troubleshooting: Common Issue"
3+
description: Diagnose and resolve a common problem.
4+
---
5+
6+
# Troubleshooting: Common Issue
7+
8+
This guide helps you identify and fix a common issue when using the service.
9+
10+
## Problem Description
11+
12+
A clear statement of the symptom or error message.
13+
14+
## Possible Causes
15+
16+
- Misconfigured setting
17+
- Missing permission
18+
- Resource in incorrect state
19+
- Network or connectivity issue
20+
21+
## Solution 1: Fix the Configuration
22+
23+
1. Open the resource settings.
24+
2. Locate the relevant section.
25+
3. Update the value to the correct option.
26+
4. Save and restart if needed.
27+
28+
## Solution 2: Check Permissions
29+
30+
Ensure your user or API key has the required role:
31+
- Required permission: `Resource-Modify`
32+
- Verify using:
33+
```bash
34+
scw whoami
35+
```
36+
37+
## Diagnostic Steps
38+
39+
- View the system logs in the console.
40+
- Run a status check:
41+
```bash
42+
scw service:status resource-id=123
43+
```
44+
45+
## When to Contact Support
46+
47+
If the issue persists after trying the above steps, contact support with:
48+
- Resource ID
49+
- Timestamp of the issue
50+
- Relevant logs or error messages
51+
```

0 commit comments

Comments
 (0)