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