Skip to content

Commit

Permalink
update url path to include -drivers suffix for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-mack committed Nov 3, 2023
1 parent 36f9cc7 commit 1b33af0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
12 changes: 9 additions & 3 deletions config/redirects
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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/
2 changes: 1 addition & 1 deletion snooty.toml
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down
12 changes: 6 additions & 6 deletions source/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -152,9 +152,9 @@ Don’t see your desired language? Browse more `community-supported libraries <h
Java Drivers </java-drivers>
Kotlin Drivers </kotlin-drivers>
Node.js Driver <https://www.mongodb.com/docs/drivers/node/current/>
PHP Driver </php>
Python Drivers </python>
Ruby Drivers </ruby>
PHP Driver </php-drivers>
Python Drivers </python-drivers>
Ruby Drivers </ruby-drivers>
Rust Driver <https://www.mongodb.com/docs/drivers/rust/current/>
Scala Driver </scala>
Swift Driver </swift>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1b33af0

Please sign in to comment.