Skip to content

Commit c77b1b5

Browse files
Slashgearatissedrescaleway
authored andcommitted
chore(categories): drop categories folder for pages
1 parent cdc6c94 commit c77b1b5

File tree

2,712 files changed

+6330
-6181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,712 files changed

+6330
-6181
lines changed

ai-data/index.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.

bare-metal/dedibox/how-to/configure-failover-ip.mdx

Lines changed: 0 additions & 32 deletions
This file was deleted.

bare-metal/index.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.

bin/clean-categories

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
#!/bin/bash
2+
3+
CATEGORIES=(ai-data bare-metal compute console containers dedibox dedibox-console developer-tools environmental-footprint identity-and-access-management labs managed-databases managed-services network observability partners serverless storage)
4+
5+
CATEGORIES_REGEX="($(IFS='|'; echo "${CATEGORIES[*]}"))"
6+
7+
#echo "Capturing group : $CATEGORIES_REGEX"
8+
9+
for FILE in $(find . -type f -name '*.mdx')
10+
do
11+
if [ -f "$FILE" ]; then
12+
echo "Traitement du fichier : $FILE"
13+
14+
# Remplacer les exceptions
15+
16+
# dedibox-console
17+
sed -i.bak -E "s#dedibox-console/account#dedibox-account#g" "$FILE"
18+
# dedibox/vps/quickstart.mdx
19+
sed -i.bak -E "s#dedibox-console/classic-hosting/#classic-hosting/#g" "$FILE"
20+
# dedibox-console/classic-hosting/how-to/change-password-mysql-database.mdx
21+
sed -i.bak -E "s#dedibox-console/cpanel-hosting/#cpanel-hosting/#g" "$FILE"
22+
# dedibox-console/cpanel-hosting/reference-content.mdx
23+
24+
# dedibox-network
25+
sed -i.bak -E "s#dedibox-network/network/#dedibox-network/#g" "$FILE"
26+
# dedibox-network/network/index.mdx
27+
sed -i.bak -E "s#dedibox-network/rpn/#dedibox-rpn/#g" "$FILE"
28+
# dedibox-network/rpn/index.mdx
29+
sed -i.bak -E "s#dedibox-network/ipv6/#dedibox-ipv6/#g" "$FILE"
30+
# dedibox-network/ipv6/concepts.mdx
31+
sed -i.bak -E "s#dedibox-network/domains/#dedibox-domains/#g" "$FILE"
32+
# dedibox-network/dns/concepts.mdx
33+
sed -i.bak -E "s#dedibox-network/dns/#dedibox-dns/#g" "$FILE"
34+
# dedibox-network/dns/index.mdx
35+
sed -i.bak -E "s#dedibox-network/ip-failover/#dedibox-ip-failover/#g" "$FILE"
36+
# dedibox-network/ipv6/concepts.mdx
37+
38+
# dedibox
39+
sed -i.bak -E "s#dedibox/vps/#dedibox-vps/#g" "$FILE"
40+
# dedibox/vps/how-to/delete-vps.mdx
41+
sed -i.bak -E "s#dedibox/kvm-over-ip/#dedibox-kvm-over-ip/#g" "$FILE"
42+
# dedibox/kvm-over-ip/how-to/dell-idrac9.mdx
43+
44+
# storage
45+
sed -i.bak -E "s#storage/object/#object-storage/#g" "$FILE"
46+
# compute/instances/api-cli/snapshot-import-export-feature.mdx
47+
sed -i.bak -E "s#storage/block/#block-storage/#g" "$FILE"
48+
# compute/gpu/how-to/use-gpu-with-docker.mdx
49+
50+
# serverless
51+
sed -i.bak -E "s#serverless/sql-databases/#serverless-sql-databases/#g" "$FILE"
52+
# faq/serverless-sql-databases.mdx
53+
sed -i.bak -E "s#serverless/functions/#serverless-functions/#g" "$FILE"
54+
# faq/serverless-jobs.mdx
55+
sed -i.bak -E "s#serverless/containers/#serverless-containers/#g" "$FILE"
56+
# serverless/containers/concepts.mdx
57+
sed -i.bak -E "s#serverless/jobs/#serverless-jobs/#g" "$FILE"
58+
# changelog/november2024/2024-11-05-jobs-added-serverless-jobs-integrates-secret-manager.mdx
59+
60+
# managed-database
61+
sed -i.bak -E "s#managed-databases/postgresql-and-mysql/#managed-databases-for-postgresql-and-mysql/#g" "$FILE"
62+
# changelog/august2024/2024-08-02-postgresql-and-mysql-added-encryption-at-rest-available.mdx
63+
sed -i.bak -E "s#managed-databases/redis/#managed-databases-for-redis/#g" "$FILE"
64+
# faq/databases-for-redis.mdx
65+
sed -i.bak -E "s#managed-databases/mongodb/#managed-mongodb-databases/#g" "$FILE"
66+
# managed-databases/mongodb/how-to/manage-snapshots.mdx
67+
68+
# bare-metal
69+
sed -i.bak -E "s#bare-metal/dedibox/#dedibox-scaleway/#g" "$FILE"
70+
# bare-metal/dedibox/how-to/activate-ipv6-block.mdx
71+
72+
# Dans le markdown & les compodants mdx :
73+
# On supprime la catégorie des url relatives
74+
# On prends garde à ne pas modifier les pages catégories (ex: /managed-databases/) ces URL n'ayant que la catégorie, si on la supprime on se retrouve avec une redirection sur la home
75+
sed -i.bak -E "s#\(/$CATEGORIES_REGEX/([^/\)]+)#\(/\2#g" "$FILE"
76+
sed -i.bak -E "s#\"/$CATEGORIES_REGEX/([^/\)]+)#\"/\2#g" "$FILE"
77+
78+
# Remplacer les URLs absolues
79+
sed -i.bak -E "s#(https://www\.scaleway\.com/en/docs)/($CATEGORIES_REGEX)/([^/]+)#\1/\4#g" "$FILE"
80+
81+
# Nettoyer les doublons de slashes
82+
sed -i.bak 's#docs//#docs/#g' "$FILE"
83+
84+
# Supprimer les fichiers .bak
85+
rm "$FILE.bak"
86+
else
87+
echo "Aucun fichier trouvé."
88+
fi
89+
done

changelog/april2023/2023-04-11-load-balancers-added-http-redirect-and-unconditional.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ HTTP redirects come as a new type of ACL configured within a frontend. You can f
1515

1616
Furthermores, we are introducing the ability to create unconditioned ACLs, allowing you to explicitly define a default and catch all behavior for your frontend’s ACL.
1717

18-
Check out our documentation to find out [how to create and manage your ACLs](/network/load-balancer/how-to/create-manage-acls/) to get started, or our [reference documentation](/network/load-balancer/reference-content/acls/) for a deeper dive into ACLs.
18+
Check out our documentation to find out [how to create and manage your ACLs](/load-balancer/how-to/create-manage-acls/) to get started, or our [reference documentation](/load-balancer/reference-content/acls/) for a deeper dive into ACLs.
1919

changelog/april2023/2023-04-19-cockpit-added-observability---documentation--.mdx

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

1212
Limitations for our Mimir metrics ingestor is now available!
1313

14-
Refer to [our Mimir metrics documentation](/observability/cockpit/reference-content/cockpit-limitations/#limits-for-mimir) to find out about the limitations for Mimir.
14+
Refer to [our Mimir metrics documentation](/cockpit/reference-content/cockpit-limitations/#limits-for-mimir) to find out about the limitations for Mimir.
1515

1616
If you need custom limitations, feel free to [reach out to us](https://www.scaleway.com/fr/betas/#observability).
1717

changelog/april2023/2023-04-26-object-storage-added-iam-at-the-resource.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ product: object-storage
1111

1212
It is now possible to designate users or applications as principals of bucket policies, providing access management granularity at the resource level on top of IAM.
1313

14-
Check out our documentation to start [setting up granular access to Object Storage](https://www.scaleway.com/en/docs/storage/object/api-cli/combining-iam-and-object-storage).
14+
Check out our documentation to start [setting up granular access to Object Storage](https://www.scaleway.com/en/docs/object-storage/api-cli/combining-iam-and-object-storage).
1515

changelog/april2023/2023-04-27-transactional-email-added-domain-reputation-management-policy.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ category: managed-services
99
product: transactional-email
1010
---
1111

12-
Find out [how we protect the reputation of your domain](/managed-services/transactional-email/reference-content/protecting-your-domain-reputation/) with progressive emailing!
12+
Find out [how we protect the reputation of your domain](/transactional-email/reference-content/protecting-your-domain-reputation/) with progressive emailing!
1313

changelog/april2023/2023-04-27-transactional-email-added-new-iam-permissions-set.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ category: managed-services
99
product: transactional-email
1010
---
1111

12-
We have integrated the following [IAM permissions,](/identity-and-access-management/iam/reference-content/permission-sets/) allowing separate management of emails and domains on Transactional Email:
12+
We have integrated the following [IAM permissions,](/iam/reference-content/permission-sets/) allowing separate management of emails and domains on Transactional Email:
1313
- `TransactionalEmailDomainFullAccess`
1414
- `TransactionalEmailDomainReadyOnly`
1515
- `TransactionalEmailEmailFullAccess`

changelog/april2023/2023-04-28-secret-manager-added-secret-manager-is-generally.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ product: secret-manager
1111

1212
Secret Manager is now in General Availability.
1313

14-
For more information, refer to the [Secret Manager product documentation](/identity-and-access-management/secret-manager/quickstart/) or the [Secret Manager product website](https://www.scaleway.com/en/secret-manager/)
14+
For more information, refer to the [Secret Manager product documentation](/secret-manager/quickstart/) or the [Secret Manager product website](https://www.scaleway.com/en/secret-manager/)
1515

0 commit comments

Comments
 (0)