Skip to content

Commit 5c5dd67

Browse files
committed
docs(srv): update how to create function and reorg pages MTA-5477
1 parent 6c8bd0d commit 5c5dd67

12 files changed

+82
-29
lines changed

changelog/serverless/january2023/2023-01-11-added-functions-php-extensions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ category: serverless
99
product: functions
1010
---
1111

12-
The PHP Runtime for Serverless Functions now supports [more extensions](/serverless-functions/reference-content/functions-runtimes-configuration/).
12+
The PHP Runtime for Serverless Functions now supports [more extensions](/serverless-functions/reference-content/functions-runtimes/).

changelog/serverless/september2022/2022-09-08-functions-changed-nodejs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ product: functions
1212
NodeJS 18 is now in general availability.
1313

1414

15-
For more information please refer to our [dedicated documentation](/serverless-functions/reference-content/functions-lifecycle/).
15+
For more information please refer to our [dedicated documentation](/serverless-functions/reference-content/functions-runtimes/).

changelog/serverless/september2022/2022-09-08-functions-deprecated-go.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ product: functions
1111

1212
- Golang and Go113 will reach end of support. We recommend you update to go1.17 or a newer version.
1313

14-
For more information please refer to our [dedicated documentation](/serverless-functions/reference-content/functions-lifecycle/).
14+
For more information please refer to our [dedicated documentation](/serverless-functions/reference-content/functions-runtimes/).

changelog/serverless/september2022/2022-09-08-functions-deprecated-nodejs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ product: functions
1212
- NodeJS 8 and NodeJS 10 will reach end of support. We recommend you update to Node 14 or a newer node version.
1313
- NodeJS 17 will reach end of support. We recommend you update to NodeJS 18.
1414

15-
For more information please refer to our [dedicated documentation](/serverless-functions/reference-content/functions-lifecycle/).
15+
For more information please refer to our [dedicated documentation](/serverless-functions/reference-content/functions-runtimes/).

changelog/serverless/september2022/2022-09-08-functions-deprecated-python.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ product: functions
1212
- Python and Python 2.7 will reach end of support. We recommend you update to a newer version of Python.
1313
- Python 3 will reach end of support. We recommend you update to Python 3.7.
1414

15-
For more information please refer to our [dedicated documentation](/serverless-functions/reference-content/functions-lifecycle/).
15+
For more information please refer to our [dedicated documentation](/serverless-functions/reference-content/functions-runtimes/).

faq/serverless-functions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Refer to our dedicated page about [Serverless Functions limitations and configur
173173

174174
Serverless Functions enables you to deploy functions using popular languages: `Go`, `Node`, `Python`, `PHP`, and `Rust`.
175175

176-
Refer to our dedicated page about [Serverless Functions Runtimes Lifecycle](/serverless-functions/reference-content/functions-lifecycle/)
176+
Refer to our dedicated page about [Serverless Functions Runtimes Lifecycle](/serverless-functions/reference-content/functions-runtimes/)
177177

178178
### Why does my function have an instance running after deployment, even with min-scale 0?
179179

@@ -210,7 +210,7 @@ Check out our [serverless-examples repository](https://github.com/scaleway/serve
210210
### How to migrate runtimes?
211211

212212
There are no constraints when changing a function runtime, you simply need to choose the runtime version you want.
213-
Upgrading a runtime is highly recommended in case of deprecation, and for runtimes that have reached end-of-support or end-of-life. See the [functions runtimes lifecycle documentation](/serverless-functions/reference-content/functions-lifecycle/) for more information.
213+
Upgrading a runtime is highly recommended in case of deprecation, and for runtimes that have reached end-of-support or end-of-life. See the [functions runtimes lifecycle documentation](/serverless-functions/reference-content/functions-runtimes/) for more information.
214214

215215
## Network and storage
216216

macros/serverless/difference-jobs-functions-containers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Choose Scaleway [Serverless Functions](/serverless-functions/quickstart/):
5858
- For stateless workloads.
5959

6060
<Message type="note">
61-
Serverless Functions can only be written in languages [available as runtimes](/serverless-functions/reference-content/functions-lifecycle/#available-runtimes).
61+
Serverless Functions can only be written in languages [available as runtimes](/serverless-functions/reference-content/functions-runtimes/#available-runtimes).
6262
</Message>
6363

6464
### Serverless Containers

menu/navigation.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3735,17 +3735,13 @@
37353735
{
37363736
"items": [
37373737
{
3738-
"label": "Functions lifecycle",
3739-
"slug": "functions-lifecycle"
3738+
"label": "Functions runtimes",
3739+
"slug": "functions-runtimes"
37403740
},
37413741
{
37423742
"label": "Functions limitations",
37433743
"slug": "functions-limitations"
37443744
},
3745-
{
3746-
"label": "Functions runtimes configuration",
3747-
"slug": "functions-runtimes-configuration"
3748-
},
37493745
{
37503746
"label": "Methods to deploy Serverless Functions",
37513747
"slug": "deploy-function"

pages/serverless-functions/api-cli/deploy-function-cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ categories:
7676
```
7777

7878
<Message type="tip">
79-
Refer to [this page](/serverless-functions/reference-content/functions-lifecycle/#available-runtimes) to see all the available runtimes.
79+
Refer to [this page](/serverless-functions/reference-content/functions-runtimes/#available-runtimes) to see all the available runtimes.
8080
</Message>
8181

8282
3. Create a zip file containing your function's code by following [this procedure](/serverless-functions/how-to/package-function-dependencies-in-zip/).

pages/serverless-functions/how-to/create-a-function.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
meta:
3-
title: How to create a function
3+
title: How to create a function using the Scaleway console
44
description: Create your first serverless function on Scaleway with this comprehensive guide.
55
content:
6-
h1: How to create a function
6+
h1: How to create a function using the Scaleway console
77
paragraph: Create your first serverless function on Scaleway with this comprehensive guide.
88
tags: functions
99
dates:
10-
validation: 2024-07-23
10+
validation: 2025-01-29
1111
posted: 2021-05-26
1212
categories:
1313
- serverless
@@ -21,14 +21,17 @@ This page shows you how to deploy a [function](/serverless-functions/concepts/#f
2121
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
2222
- A [functions namespace](/serverless-functions/how-to/create-manage-delete-functions-namespace/)
2323

24+
## How to create a function
25+
2426
1. Click **Functions** in the **Serverless** section of the side menu. The functions page displays.
2527

2628
2. Click the functions namespace in which you want to create your function.
2729

2830
3. Click **+ Create function**. The function creation wizard displays.
2931

30-
4. Complete the following steps in the wizard:
31-
- Choose your function's runtime.
32+
### Function configuration
33+
34+
1. Select a runtime for your function.
3235
- Select **Deploy "Hello world"** to deploy a basic function, **Inline code editor** to enter your own function code, or **Upload a ZIP** to import a [packaged function](/serverless-functions/how-to/package-function-dependencies-in-zip/).
3336
- If you used the code editor, enter the [handler](/serverless-functions/reference-content/functions-handlers/) of your function.
3437
- Enter a **name** or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
@@ -55,5 +58,3 @@ This page shows you how to deploy a [function](/serverless-functions/concepts/#f
5558
<Message type="tip">
5659
There are different ways to deploy Serverless Functions. Refer to our detailed [deployment information](/serverless-functions/reference-content/deploy-function/) for more advanced options to deploy your functions.
5760
</Message>
58-
59-

0 commit comments

Comments
 (0)