diff --git a/config/redirects b/config/redirects index e7488f68..b2b75117 100644 --- a/config/redirects +++ b/config/redirects @@ -61,6 +61,7 @@ raw: docs/drivers/cpp-to-sql-to-mongo-shell -> ${cpp-driver-base} raw: docs/drivers/tutorial/download-and-compile-cpp-driver-legacy -> https://mongocxx.org/legacy-v1/ raw: docs/drivers/tutorial/authenticate-with-cpp-driver -> ${cpp-driver-base}/configuration/#configuring-authentication raw: docs/drivers/cxx -> ${cpp-driver-base} +raw: docs/drivers/cpp -> ${cpp-driver-base} raw: docs/drivers/cxx/index -> ${cpp-driver-base} raw: /docs/languages/cxx -> ${cpp-driver-base} diff --git a/source/cpp.txt b/source/cpp.txt deleted file mode 100644 index 2712b19a..00000000 --- a/source/cpp.txt +++ /dev/null @@ -1,117 +0,0 @@ -.. _cxx-language-center: - -================== -MongoDB C++ Driver -================== - -.. contents:: On this page - :local: - :backlinks: none - :depth: 1 - :class: twocols - -.. facet:: - :name: genre - :values: tutorial - -.. facet:: - :name: programming_language - :values: cpp - -.. meta:: - :keywords: tutorial, connection string, backward compatibility - -Introduction ------------- - -Welcome to the documentation site for the official MongoDB C++ driver. -You can add the driver to your application to work with MongoDB by using -the C++11 or later standard. - -- `Installation `__ - -- `Tutorial `__ - -- `Usage Guide `__ - -- `MongoDB Developer Center `__ - -- `API Reference `_ - -- `Changelog `__ - -- `Source Code `__ - -- `Examples `__ - -.. _connect-atlas-cxx-driver: - -Connect to MongoDB Atlas ------------------------- - -You can use the following connection snippet to test your connection to your -MongoDB deployment on Atlas: - -.. literalinclude:: /includes/connection-snippets/scram/cxx-connection.cpp - :language: cpp - -This connection snippet uses the {+stable-api+} feature which you can use when -connecting to MongoDB Server v5.0 and later and the C++ driver v3.7 and later. - -When you use this feature, you can update your driver or server without -worrying about backward compatibility issues with any commands covered by the -{+stable-api+}. - -.. include:: /includes/stable-api-notice.rst - -.. _connect-atlas-no-stable-api-cxx-driver: - -Connect to MongoDB Atlas Without the Stable API ------------------------------------------------ - -If you are using a version of MongoDB or the driver that lacks support for the -{+stable-api+}, you can use the following code snippet to test your connection -to your MongoDB deployment on Atlas: - -.. literalinclude:: /includes/connection-snippets/scram/cxx-connection-no-stable-api.cpp - :language: cpp - -Connect to a MongoDB Server on Your Local Machine -------------------------------------------------- - -.. include:: /includes/localhost-connection.rst - -To test whether you can connect to your server, replace the connection -string in the :ref:`Connect to MongoDB Atlas ` code -example and run it. - -Compatibility -------------- - -MongoDB Compatibility -~~~~~~~~~~~~~~~~~~~~~ - -The following compatibility table specifies the recommended version or versions -of the MongoDB C++ driver for use with a specific version of MongoDB. - -The first column lists the driver version. - -.. sharedinclude:: dbx/lifecycle-schedule-callout.rst - -.. include:: /includes/mongodb-compatibility-table-cxx.rst - -.. include:: /includes/older-server-versions-unsupported.rst - -Language Compatibility -~~~~~~~~~~~~~~~~~~~~~~ - -The following compatibility table specifies the recommended version or versions -of the MongoDB C++ driver for use with a specific version of C++. - -The first column lists the driver version. - -.. include:: /includes/language-compatibility-table-cxx.rst - -.. include:: /includes/about-driver-compatibility.rst - -.. include:: /includes/help-links-cxx.rst diff --git a/source/java.txt b/source/java.txt deleted file mode 100644 index c6675082..00000000 --- a/source/java.txt +++ /dev/null @@ -1,37 +0,0 @@ -.. _java-language-center: - -.. Do not delete: placeholder page referenced by the driver table - -==================== -MongoDB Java Drivers -==================== - -.. default-domain:: mongodb - -.. contents:: On this page - :local: - :backlinks: none - :depth: 1 - -Introduction ------------- - -The `Java Sync Driver `__ is the recommended MongoDB Java Driver. - -For asynchronous stream processing and reactive streams interoperability, -the `Java Reactive Streams Driver -`__ -is the recommended MongoDB Java Driver. - -Take the free online course taught by MongoDB ---------------------------------------------- - -.. list-table:: - - * - .. figure:: /figures/M220J_hero.jpg - :alt: MongoDB Java Course Hero - - - `Using MongoDB with Java `_ - Learn the essentials of Java application development with MongoDB. - -