Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(categories): drop categories folder for pages #4252

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 0 additions & 8 deletions ai-data/index.mdx

This file was deleted.

32 changes: 0 additions & 32 deletions bare-metal/dedibox/how-to/configure-failover-ip.mdx

This file was deleted.

8 changes: 0 additions & 8 deletions bare-metal/index.mdx

This file was deleted.

89 changes: 89 additions & 0 deletions bin/clean-categories
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#!/bin/bash

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)

CATEGORIES_REGEX="($(IFS='|'; echo "${CATEGORIES[*]}"))"

#echo "Capturing group : $CATEGORIES_REGEX"

for FILE in $(find . -type f -name '*.mdx')
do
if [ -f "$FILE" ]; then
echo "Traitement du fichier : $FILE"

# Remplacer les exceptions

# dedibox-console
sed -i.bak -E "s#dedibox-console/account#dedibox-account#g" "$FILE"
# dedibox/vps/quickstart.mdx
sed -i.bak -E "s#dedibox-console/classic-hosting/#classic-hosting/#g" "$FILE"
# dedibox-console/classic-hosting/how-to/change-password-mysql-database.mdx
sed -i.bak -E "s#dedibox-console/cpanel-hosting/#cpanel-hosting/#g" "$FILE"
# dedibox-console/cpanel-hosting/reference-content.mdx

# dedibox-network
sed -i.bak -E "s#dedibox-network/network/#dedibox-network/#g" "$FILE"
# dedibox-network/network/index.mdx
sed -i.bak -E "s#dedibox-network/rpn/#dedibox-rpn/#g" "$FILE"
# dedibox-network/rpn/index.mdx
sed -i.bak -E "s#dedibox-network/ipv6/#dedibox-ipv6/#g" "$FILE"
# dedibox-network/ipv6/concepts.mdx
sed -i.bak -E "s#dedibox-network/domains/#dedibox-domains/#g" "$FILE"
# dedibox-network/dns/concepts.mdx
sed -i.bak -E "s#dedibox-network/dns/#dedibox-dns/#g" "$FILE"
# dedibox-network/dns/index.mdx
sed -i.bak -E "s#dedibox-network/ip-failover/#dedibox-ip-failover/#g" "$FILE"
# dedibox-network/ipv6/concepts.mdx

# dedibox
sed -i.bak -E "s#dedibox/vps/#dedibox-vps/#g" "$FILE"
# dedibox/vps/how-to/delete-vps.mdx
sed -i.bak -E "s#dedibox/kvm-over-ip/#dedibox-kvm-over-ip/#g" "$FILE"
# dedibox/kvm-over-ip/how-to/dell-idrac9.mdx

# storage
sed -i.bak -E "s#storage/object/#object-storage/#g" "$FILE"
# compute/instances/api-cli/snapshot-import-export-feature.mdx
sed -i.bak -E "s#storage/block/#block-storage/#g" "$FILE"
# compute/gpu/how-to/use-gpu-with-docker.mdx

# serverless
sed -i.bak -E "s#serverless/sql-databases/#serverless-sql-databases/#g" "$FILE"
# faq/serverless-sql-databases.mdx
sed -i.bak -E "s#serverless/functions/#serverless-functions/#g" "$FILE"
# faq/serverless-jobs.mdx
sed -i.bak -E "s#serverless/containers/#serverless-containers/#g" "$FILE"
# serverless/containers/concepts.mdx
sed -i.bak -E "s#serverless/jobs/#serverless-jobs/#g" "$FILE"
# changelog/november2024/2024-11-05-jobs-added-serverless-jobs-integrates-secret-manager.mdx

# managed-database
sed -i.bak -E "s#managed-databases/postgresql-and-mysql/#managed-databases-for-postgresql-and-mysql/#g" "$FILE"
# changelog/august2024/2024-08-02-postgresql-and-mysql-added-encryption-at-rest-available.mdx
sed -i.bak -E "s#managed-databases/redis/#managed-databases-for-redis/#g" "$FILE"
# faq/databases-for-redis.mdx
sed -i.bak -E "s#managed-databases/mongodb/#managed-mongodb-databases/#g" "$FILE"
# managed-databases/mongodb/how-to/manage-snapshots.mdx

# bare-metal
sed -i.bak -E "s#bare-metal/dedibox/#dedibox-scaleway/#g" "$FILE"
# bare-metal/dedibox/how-to/activate-ipv6-block.mdx

# Dans le markdown & les compodants mdx :
# On supprime la catégorie des url relatives
# 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
sed -i.bak -E "s#\(/$CATEGORIES_REGEX/([^/\)]+)#\(/\2#g" "$FILE"
sed -i.bak -E "s#\"/$CATEGORIES_REGEX/([^/\)]+)#\"/\2#g" "$FILE"

# Remplacer les URLs absolues
sed -i.bak -E "s#(https://www\.scaleway\.com/en/docs)/($CATEGORIES_REGEX)/([^/]+)#\1/\4#g" "$FILE"

# Nettoyer les doublons de slashes
sed -i.bak 's#docs//#docs/#g' "$FILE"

# Supprimer les fichiers .bak
rm "$FILE.bak"
else
echo "Aucun fichier trouvé."
fi
done
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ HTTP redirects come as a new type of ACL configured within a frontend. You can f

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.

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.
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.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ product: cockpit

Limitations for our Mimir metrics ingestor is now available!

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ product: object-storage

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.

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).
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).

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ category: managed-services
product: transactional-email
---

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

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ category: managed-services
product: transactional-email
---

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:
We have integrated the following [IAM permissions,](/iam/reference-content/permission-sets/) allowing separate management of emails and domains on Transactional Email:
- `TransactionalEmailDomainFullAccess`
- `TransactionalEmailDomainReadyOnly`
- `TransactionalEmailEmailFullAccess`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ product: secret-manager

Secret Manager is now in General Availability.

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/)
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/)

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Your monitoring experience just got even better with the addition of a Transacti

Gain insights into every aspect of your email delivery with a comprehensive array of metrics, including:

- **Current [domain reputation](/managed-services/transactional-email/concepts/#reputation-score):** Stay informed about your domain's reputation score.
- **Reputation score evolution:** Track how your reputation score evolves, and make informed decisions to maintain or enhance it. Read [our dedicated documentation](/managed-services/transactional-email/reference-content/understanding-tem-reputation-score/) to find out how.
- **Current [domain reputation](/transactional-email/concepts/#reputation-score):** Stay informed about your domain's reputation score.
- **Reputation score evolution:** Track how your reputation score evolves, and make informed decisions to maintain or enhance it. Read [our dedicated documentation](/transactional-email/reference-content/understanding-tem-reputation-score/) to find out how.
- **Total emails sent:** Keep track of the volume of emails your system is processing.
- **Total email drops:** Identify delivery issues and take proactive measures to address them.
- **General activity overview:** Get a bird's-eye view of your email activity trends over time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ category: network
product: load-balancers
---

You can now add a public IPv6 address to both new and existing Load Balancers. This feature is available for all regions, and IPv6 addresses can be attached in addition to existing IPv4 addresses. Find out more in our [documentation](https://www.scaleway.com/en/docs/network/load-balancer/how-to/create-manage-flex-ips/).
You can now add a public IPv6 address to both new and existing Load Balancers. This feature is available for all regions, and IPv6 addresses can be attached in addition to existing IPv4 addresses. Find out more in our [documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/create-manage-flex-ips/).

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ category: managed-services
product: transactional-email
---

After SPF, DKIM, and MX, we are introducing the DMARC policy to provide further protection for your domains against identity theft and phishing attacks. [Read our dedicated documentation](/managed-services/transactional-email/how-to/add-dmarc-record/) to understand DMARC, and learn how to configure it.
After SPF, DKIM, and MX, we are introducing the DMARC policy to provide further protection for your domains against identity theft and phishing attacks. [Read our dedicated documentation](/transactional-email/how-to/add-dmarc-record/) to understand DMARC, and learn how to configure it.


Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ You can now send XML attachments in your transactional emails. The following MIM
- `application/xml`
- `text/xml`

Find out about the full range of available attachment types in our [documentation](https://www.scaleway.com/en/docs/managed-services/transactional-email/reference-content/tem-capabilities-and-limits/).
Find out about the full range of available attachment types in our [documentation](https://www.scaleway.com/en/docs/transactional-email/reference-content/tem-capabilities-and-limits/).


Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Scaleway Messaging and Queuing is evolving. We have increased the limitations on

This update empowers you to handle larger workloads and enables more robust communication.

For detailed information on the limitations and capabilities of our Messaging and Queuing protocols, please refer to the [Messaging and Queuing documentation](/serverless/messaging/reference-content/limitations/).
For detailed information on the limitations and capabilities of our Messaging and Queuing protocols, please refer to the [Messaging and Queuing documentation](/messaging/reference-content/limitations/).

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ product: console

We are happy to announce that you can now find resources thanks to the new search in the console.
Find them by their name or ID. More product integrations will come.
Refer to our [dedicated documentation](/console/account/how-to/use-the-search-bar/) to see which products are available now.
Refer to our [dedicated documentation](/account/how-to/use-the-search-bar/) to see which products are available now.


Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ product: cockpit
---

We are happy to announce that we closed one of the [most wanted features](https://feature-request.scaleway.com/posts/38/log-centralization-and-management) at Scaleway (open since Jan. 21).
Almost every Scaleway products are available in Cockpit for metrics and/or logs. New features and capabilities will be added to the product. Refer to our [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/reference-content/cockpit-limitations/#product-integration-into-cockpit) to see what is already available or planned.
Almost every Scaleway products are available in Cockpit for metrics and/or logs. New features and capabilities will be added to the product. Refer to our [product documentation](https://www.scaleway.com/en/docs/cockpit/reference-content/cockpit-limitations/#product-integration-into-cockpit) to see what is already available or planned.

For all future feature requirements, we encourage you to open a specific feature request of what you need to integrate into Cockpit.

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ product: postgresql-and-mysql

You can now promote a Read Replica node to a standalone Database Instance. This is useful for database failure recovery or sharding.

For more information, refer to the [How to manage Read Replica](/managed-databases/postgresql-and-mysql/how-to/manage-read-replica/#how-to-promote-a-read-replica) documentation page.
For more information, refer to the [How to manage Read Replica](/managed-databases-for-postgresql-and-mysql/how-to/manage-read-replica/#how-to-promote-a-read-replica) documentation page.

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ category: databases
product: postgresql-and-mysql
---

Encryption-at-rest can now be activated on new PostgreSQL & MySQL instances. Read [this documentation](https://www.scaleway.com/en/docs/managed-databases/postgresql-and-mysql/concepts/#encryption-at-rest) for more information.
Encryption-at-rest can now be activated on new PostgreSQL & MySQL instances. Read [this documentation](https://www.scaleway.com/en/docs/managed-databases-for-postgresql-and-mysql/concepts/#encryption-at-rest) for more information.

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Managed Inference endpoints now return usage stats (number of tokens in prompt,

For streaming responses, the usage field is incremented in each chunk, and completed in the very last chunk of the response.

More details and examples in our [OpenAI API compatibility documentation](https://www.scaleway.com/en/docs/ai-data/managed-inference/reference-content/openai-compatibility/).
More details and examples in our [OpenAI API compatibility documentation](https://www.scaleway.com/en/docs/managed-inference/reference-content/openai-compatibility/).


Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ product: postgresql-and-mysql

With this feature, you can:

* [Change storage and node size](/managed-databases/postgresql-and-mysql/how-to/create-a-database/) independently to optimize your costs and adapt to your application's traffic.
* [Change storage and node size](/managed-databases-for-postgresql-and-mysql/how-to/create-a-database/) independently to optimize your costs and adapt to your application's traffic.
* Scale up your storage volume from 5GB to 10TB with no downtime.
* Make Snapshots of your data in seconds for any size of the volume and recover a previous state of your data in case of accidental data alteration.

Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ category: databases
product: redistm
---

[Managed Database for Redis™](/managed-databases/redis/quickstart/) is now available in the Availability Zone `nl-ams-2`!
[Managed Database for Redis™](/managed-databases-for-redis/quickstart/) is now available in the Availability Zone `nl-ams-2`!

Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ category: databases
product: postgresql-and-mysql
---

Add up to three Read Replicas to your PostgreSQL or MySQL Instance and offload your main node from read requests. Follow the how-to to [create your first Read Replica](/managed-databases/postgresql-and-mysql/how-to/create-read-replica/).
Add up to three Read Replicas to your PostgreSQL or MySQL Instance and offload your main node from read requests. Follow the how-to to [create your first Read Replica](/managed-databases-for-postgresql-and-mysql/how-to/create-read-replica/).
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ category: databases
product: redistm
---

[Managed Database for Redis™](/managed-databases/redis/how-to/create-a-database-for-redis/) is now in General Availability in the following Availability Zones:
[Managed Database for Redis™](/managed-databases-for-redis/how-to/create-a-database-for-redis/) is now in General Availability in the following Availability Zones:
* `fr-par-1`
* `fr-par-2`
* `nl-ams-1`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ category: databases
product: postgresql-and-mysql
---

Read Replicas are now available for Managed Database for PostgreSQL and MySQL. Follow the how-to to [create your first Read Replica](/managed-databases/postgresql-and-mysql/how-to/create-read-replica/).
Read Replicas are now available for Managed Database for PostgreSQL and MySQL. Follow the how-to to [create your first Read Replica](/managed-databases-for-postgresql-and-mysql/how-to/create-read-replica/).
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ product: transactional-email

Effective December 1st 2023, we have removed the hourly quota for our service, transitioning to a model based on individual customer behavior and traffic.
This change is designed to enhance user flexibility while upholding service quality.
Find out more about Transactional Email's capabilities and limits on our [dedicated documentation](/managed-services/transactional-email/reference-content/tem-capabilities-and-limits/).
Find out more about Transactional Email's capabilities and limits on our [dedicated documentation](/transactional-email/reference-content/tem-capabilities-and-limits/).

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ product: postgresql-and-mysql

Block Storage Low Latency with high resiliency and 5k IOPs is now available in Public Beta on PLAY2, PRO2 & POP2 offers in the Paris and Amsterdam regions.

For more information, refer to [Scaleway Documentation](/managed-databases/postgresql-and-mysql/concepts/#block-storage-low-latency).
For more information, refer to [Scaleway Documentation](/managed-databases-for-postgresql-and-mysql/concepts/#block-storage-low-latency).

Loading
Loading