From aed039f31c78940964cdca8764a147a9f122eb15 Mon Sep 17 00:00:00 2001 From: Rachel Mackintosh Date: Fri, 27 Oct 2023 11:18:38 -0400 Subject: [PATCH] update url path to include -drivers suffix for consistency --- config/redirects | 12 +++++++++--- snooty.toml | 2 +- source/index.txt | 12 ++++++------ source/{php.txt => php-drivers.txt} | 0 source/{python.txt => python-drivers.txt} | 0 source/{ruby.txt => ruby-drivers.txt} | 0 6 files changed, 16 insertions(+), 10 deletions(-) rename source/{php.txt => php-drivers.txt} (100%) rename source/{python.txt => python-drivers.txt} (100%) rename source/{ruby.txt => ruby-drivers.txt} (100%) diff --git a/config/redirects b/config/redirects index 74a127859..0e2af82d3 100644 --- a/config/redirects +++ b/config/redirects @@ -212,10 +212,10 @@ raw: docs/drivers/drivers/go/ -> ${base}/go/current/ raw: docs/drivers/drivers/java/ -> ${base}/java-drivers/ raw: docs/drivers/drivers/kotlin/ -> ${base}/kotlin-drivers/ raw: docs/drivers/drivers/node/ -> $${base}/node/current/ -raw: docs/drivers/drivers/php/ -> ${base}/php/ -raw: docs/drivers/drivers/python/ -> ${base}/python/ +raw: docs/drivers/drivers/php/ -> ${base}/php-drivers/ +raw: docs/drivers/drivers/python/ -> ${base}/python-drivers/ raw: docs/drivers/drivers/pymongo/ -> ${base}/pymongo/ -raw: docs/drivers/drivers/ruby/ -> https://www.mongodb.com/docs/ruby-driver/current/ +raw: docs/drivers/drivers/ruby/ -> ${base}/ruby-drivers/ raw: docs/drivers/drivers/rust/ -> ${base}/rust/current/ raw: docs/drivers/drivers/scala/ -> ${base}/scala/ raw: docs/drivers/drivers/swift/ -> ${base}/swift/ @@ -226,3 +226,9 @@ raw: docs/drivers/drivers/driver-compatibility-reference -> ${base}/ # Redirect for outdated Community Drivers page raw: docs/drivers/community-supported-drivers/ -> ${base}/ + +# Redirects for consistent language-spcific driver landing pages + +raw: docs/drivers/php/ -> ${base}/php-drivers/ +raw: docs/drivers/python/ -> ${base}/python-drivers/ +raw: docs/drivers/ruby/ -> ${base}/ruby-drivers/ \ No newline at end of file diff --git a/snooty.toml b/snooty.toml index 0e08aadde..910f25a68 100644 --- a/snooty.toml +++ b/snooty.toml @@ -1,7 +1,7 @@ name = "drivers" title = "MongoDB Drivers" -toc_landing_pages = ["/python", "/php", "/java-drivers", "/kotlin-drivers", "/use-cases", "/ruby"] +toc_landing_pages = ["/python-drivers", "/php-drivers", "/java-drivers", "/kotlin-drivers", "/use-cases", "/ruby-drivers"] intersphinx = ["https://www.mongodb.com/docs/manual/objects.inv"] sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/" diff --git a/source/index.txt b/source/index.txt index c62e70dd0..344b0e7a0 100644 --- a/source/index.txt +++ b/source/index.txt @@ -67,19 +67,19 @@ security patches to them. .. card:: :headline: PHP - :url: /php/ + :url: /php-drivers/ :icon: /icons/php.svg :icon-alt: PHP Driver icon .. card:: :headline: Python - :url: /python/ + :url: /python-drivers/ :icon: /icons/python.svg :icon-alt: Python Driver icon .. card:: :headline: Ruby - :url: /ruby/ + :url: /ruby-drivers/ :icon: /icons/ruby.svg :icon-alt: Ruby Driver icon @@ -152,9 +152,9 @@ Don’t see your desired language? Browse more `community-supported libraries Kotlin Drivers Node.js Driver - PHP Driver - Python Drivers - Ruby Drivers + PHP Driver + Python Drivers + Ruby Drivers Rust Driver Scala Driver Swift Driver diff --git a/source/php.txt b/source/php-drivers.txt similarity index 100% rename from source/php.txt rename to source/php-drivers.txt diff --git a/source/python.txt b/source/python-drivers.txt similarity index 100% rename from source/python.txt rename to source/python-drivers.txt diff --git a/source/ruby.txt b/source/ruby-drivers.txt similarity index 100% rename from source/ruby.txt rename to source/ruby-drivers.txt