Skip to content

Commit 42965fe

Browse files
author
Lisa Dutour
committed
feat(documentation): clean dedibox/account
1 parent 0f9cca7 commit 42965fe

File tree

15 files changed

+40
-26
lines changed

15 files changed

+40
-26
lines changed

bare-metal/dedibox/how-to/reinstall-dedibox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You can reinstall the operating system running on your Dedibox at any time. This
4747
</Message>
4848
6. Configure the system parameters. You can edit parameters such as the name of the server, and add a username, password, and SSH key.
4949
<Message type="note">
50-
To connect to your server via SSH, it is recommended that you [create and upload your SSH key](/dedibox-console/account/how-to/upload-an-ssh-key/) at this stage so that it can be transferred to your server during installation.
50+
To connect to your server via SSH, it is recommended that you [create and upload your SSH key](/dedibox-account/how-to/upload-an-ssh-key/) at this stage so that it can be transferred to your server during installation.
5151
</Message>
5252
7. Tick the checkbox to confirm that your server can be shut down in case of abuse. Then click **Reinstall Dedibox server**.
5353

bare-metal/dedibox/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ After the delivery of your server, you can begin installing it.
5555
</Message>
5656
6. Configure the system parameters. You can edit parameters such as the name of the server, and add a username, password, and SSH key.
5757
<Message type="note">
58-
To connect to your server via SSH, it is recommended that you [create and upload your SSH key](/dedibox-console/account/how-to/upload-an-ssh-key/) at this stage so that it can be transferred to your server during installation.
58+
To connect to your server via SSH, it is recommended that you [create and upload your SSH key](/dedibox-account/how-to/upload-an-ssh-key/) at this stage so that it can be transferred to your server during installation.
5959
</Message>
6060
7. Tick the checkbox to confirm that your server can be shut down in case of abuse. Then click **Install Dedibox server**.
6161

bin/clean-categories

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
11
#!/bin/bash
22

3+
CATEGORIES=(ai-data bare-metal compute console containers dedibox dedibox-console dedibox-network developer-tools environmental-footprint identity-and-access-management labs managed-databases managed-services network observability partners serverless storage)
4+
5+
# Générer une regex avec toutes les catégories
6+
CATEGORIES_REGEX="($(IFS='|'; echo "${CATEGORIES[*]}"))"
7+
8+
echo "Expression régulière utilisée : $CATEGORIES_REGEX"
9+
10+
# Parcourir les fichiers dans le dossier
311
for FILE in $(find . -type f -name '*.mdx')
412
do
513
if [ -f "$FILE" ]; then
614
echo "Traitement du fichier : $FILE"
715

8-
# Remplacer les URLs avec `sed`
9-
sed -i.bak -E '/https:\/\/www\.scaleway\.com\/en\/docs\/.*tutorial.*/!s#(https://www\.scaleway\.com/en/docs/)[^/]+(/.*)#\1\2#g' "$FILE"
16+
# remplacer dedibox-console/account par dedibox-account
17+
sed -i.bak -E "s#dedibox-console/account#dedibox-account#g" "$FILE"
18+
19+
# Traiter les URLs relatives
20+
# sed -i.bak -E "s#/$CATEGORIES_REGEX/([^/]+)#/\2#g" "$FILE"
21+
22+
# # Traiter les URLs absolues
23+
# sed -i.bak -E "s#(https://www\.scaleway\.com/en/docs)/($CATEGORIES_REGEX)/([^/]+)#\1/\3#g" "$FILE"
1024

11-
# Optionnel : Supprimer les fichiers de sauvegarde .bak
25+
# Nettoyer les doublons de slashes
26+
# sed -i.bak 's#docs//#docs/#g' "$FILE"
27+
28+
# Supprimer les fichiers de sauvegarde
1229
rm "$FILE.bak"
1330
else
1431
echo "Aucun fichier .mdx trouvé dans le dossier."
1532
fi
16-
1733
done
18-
19-

components/docs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ The above text come from a macro!
691691
692692
| Content Type | Description |
693693
| :-----------------------------------------------------: | :---------------------------------------------------------------------------: |
694-
| [Internal link](/dedibox-console/account/quickstart/) | Centered-align table |
694+
| [Internal link](/dedibox-account/quickstart/) | Centered-align table |
695695
| [External link](https://www.scaleway.com) | Problem-oriented, we take you through a series of steps to reach a real goal. |
696696
| Tutorials | Learning-oriented, we take you through a series of steps to learn a concept |
697697

dedibox-console/account/how-to/accept-outsourcing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you have a Scaleway Dedibox account, another user can grant you access to the
1919
- A Dedibox account logged into the [console](https://console.online.net)
2020

2121

22-
1. When another user [sends you an outsourcing request](/dedibox-console/account/how-to/outsource-dedibox/), you will receive a notification. Click the link provided in the outsourcing request email to open the Scaleway Dedibox console.
22+
1. When another user [sends you an outsourcing request](/dedibox-account/how-to/outsource-dedibox/), you will receive a notification. Click the link provided in the outsourcing request email to open the Scaleway Dedibox console.
2323
<Lightbox src="scaleway-dedibox-console-outsourcing-request.webp" />
2424
2. The **Outsourcing** section of the Scaleway Dedibox console displays.
2525
3. Review the services the user wants to outsource to you.

dedibox-console/account/how-to/create-a-dedibox-account.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ Follow these steps to get started with Scaleway Dedibox:
2626
3. Check your email inbox for a verification email. Click the verification link to activate your account. This will take you to the [Dedibox console](https://console.online.net/en/login) login page.
2727
4. Enter the username and password you created during registration, then click **Sign in**.
2828

29-
You are now connected to the Scaleway Dedibox console. You must add [a payment method](/dedibox-console/account/how-to/add-payment-method/) before ordering your [first Dedibox dedicated server](/dedibox/dedicated-servers/how-to/order-a-server/).
29+
You are now connected to the Scaleway Dedibox console. You must add [a payment method](/dedibox-account/how-to/add-payment-method/) before ordering your [first Dedibox dedicated server](/dedibox/dedicated-servers/how-to/order-a-server/).

dedibox-console/account/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ meta:
88
productName="Dedibox Account"
99
productLogo="dedibox"
1010
description="Scaleway Dedibox account let you manage all services from the Dedibox console."
11-
url="/dedibox-console/account/quickstart"
11+
url="/dedibox-account/quickstart"
1212
label="Dedibox Account Quickstart"
1313
/>
1414

@@ -20,20 +20,20 @@ meta:
2020
icon="rocket"
2121
description="Learn how to create and add a payment method to your Dedibox account."
2222
label="View Quickstart"
23-
url="/dedibox-console/account/quickstart/"
23+
url="/dedibox-account/quickstart/"
2424
/>
2525
<SummaryCard
2626
title="Concepts"
2727
icon="information-circle-outline"
2828
description="Core concepts that give you a better understanding of your Dedibox account."
2929
label="View Concepts"
30-
url="/dedibox-console/account/concepts/"
30+
url="/dedibox-account/concepts/"
3131
/>
3232
<SummaryCard
3333
title="How-tos"
3434
icon="help-circle-outline"
3535
description="Check our guides to manage your Dedibox account."
3636
label="View How-tos"
37-
url="/dedibox-console/account/how-to/"
37+
url="/dedibox-account/how-to/"
3838
/>
3939
</Grid>

dedibox-network/domains/how-to/change-ownership.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Before changing the ownership of the domain, you must [ensure that all contact e
2323
<Macro id="requirements" />
2424

2525
- A Dedibox account logged into the [console](https://console.online.net)
26-
- A Scaleway domain you want to transfer to a new owner, who must have [created a Dedibox account](/dedibox-console/account/how-to/create-a-dedibox-account/)
26+
- A Scaleway domain you want to transfer to a new owner, who must have [created a Dedibox account](/dedibox-account/how-to/create-a-dedibox-account/)
2727

2828
## How to check and update the contact email
2929

dedibox/dedicated-servers/how-to/connect-to-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This guide provides instructions on connecting to your Scaleway Dedibox server u
1818
<Macro id="requirements" />
1919

2020
- A Dedibox account logged into the [console](https://console.online.net)
21-
- [Created and uploaded your SSH key](/dedibox-console/account/how-to/upload-an-ssh-key/)
21+
- [Created and uploaded your SSH key](/dedibox-account/how-to/upload-an-ssh-key/)
2222
- [Created](/dedibox/dedicated-servers/how-to/order-a-server/) and [installed](/dedibox/dedicated-servers/how-to/install-a-server/) a dedicated server and transferred your SSH key to the server during installation
2323

2424
## Connecting via SSH

dedibox/dedicated-servers/how-to/install-a-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ After your Scaleway Dedibox server has been delivered, you can proceed with the
5252
</Message>
5353
8. Configure the system parameters, such as server name, username, password, SSH key, monitoring alerts, and updates.
5454
<Message type="note">
55-
To connect via SSH, we recommend [creating and uploading your SSH key](/dedibox-console/account/how-to/upload-an-ssh-key/) at this stage for transfer during installation.
55+
To connect via SSH, we recommend [creating and uploading your SSH key](/dedibox-account/how-to/upload-an-ssh-key/) at this stage for transfer during installation.
5656
</Message>
5757
9. Verify all details on the installation summary tab. Once installation is complete, your server will automatically reboot from its hard disk.
5858

0 commit comments

Comments
 (0)