Skip to content

CSHARP-4124: Replaced docs.mongodb.com with www.mongodb.com/docs and similar URL redirect fixes. #782

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

Merged
merged 2 commits into from
Apr 29, 2022
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

- Before starting to write code, look for existing [tickets](https://jira.mongodb.org/browse/CSHARP#selectedTab=com.atlassian.jira.plugin.system.project%3Asummary-panel) or create one for your specific issue. That way you avoid working on something that might not be of interest or that has been addressed already in a different branch.
- Fork the [repo](https://github.com/mongodb/mongo-csharp-driver).
- Ensure your core.autocrlf settings are set to true. [see here](http://www.mongodb.org/display/DOCS/CSharp+Driver+Tutorial#CSharpDriverTutorial-Downloading)
- Ensure your core.autocrlf settings are set to true.
- Follow the general coding style of the rest of the project.
- Write tests and make sure they pass. [see here](http://www.mongodb.org/display/DOCS/CSharp+Driver+Tutorial#CSharpDriverTutorial-Runningunittests)
- Write tests and make sure they pass.
- Your final commit should have the JIRA issue number as the first part of the commit message. [see here](https://github.com/mongodb/mongo-csharp-driver/commit/40e69fe1cf45b0ed9d68a551b0222a140fa26ba2)
- Submit a pull request from github.
- Submit a pull request from github.
2 changes: 1 addition & 1 deletion Docs/landing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To run the server call the hugo command:
| Options explained ||
| --------------------------- |--------------------------------------------------------------------------|
| server | Hugo runs its own webserver to render the files |
| --baseUrl=http://localhost/ | Normally the base url will be /mongo-java-driver for gh-pages |
| --baseUrl=http://localhost/ | Normally the base url will be /mongo-csharp-driver for gh-pages |
| --buildDrafts | Include draft posts in the output - these won't be published to gh-pages |
| -- watch | Automatically reloads on file change |

Expand Down
4 changes: 2 additions & 2 deletions Docs/landing/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="footer">
<div class="copyright">
<p>Copyright © 2010–<script type="text/javascript">document.write(new Date().getFullYear());</script> <a class="smalltext" href="http://www.mongodb.com">MongoDB, Inc</a>.
<p>Copyright © 2010–<script type="text/javascript">document.write(new Date().getFullYear());</script> <a class="smalltext" href="https://www.mongodb.com">MongoDB, Inc</a>.
Licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/ ">Creative Commons</a>.
MongoDB, Mongo, and the leaf logo are registered trademarks of <a class="smalltext" href="http://www.mongodb.com">MongoDB, Inc</a>.
MongoDB, Mongo, and the leaf logo are registered trademarks of <a class="smalltext" href="https://www.mongodb.com">MongoDB, Inc</a>.
</p>
</div>
</div>
2 changes: 1 addition & 1 deletion Docs/landing/layouts/partials/header/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--logo start-->
<div class="logo pull-left">
<a href="{{.Site.BaseUrl}}">
<img src="{{.Site.BaseUrl}}/s/img/logo-mongodb-header.png", alt="MongoDB.org" />
<img src="{{.Site.BaseUrl}}/s/img/logo-mongodb-header.png", alt="MongoDB" />
</a>
</div>
<!--logo end-->
Expand Down
8 changes: 4 additions & 4 deletions Docs/landing/layouts/partials/header/topRight.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div>
<div class="nav-items pull-right">
<a href="http://try.mongodb.org/">Try it Out</a>
<a href="http://www.mongodb.org/downloads">Downloads</a>
<a href="http://www.mongodb.org/get-involved">Community</a>
<a href="http://blog.mongodb.org">Blog</a>
<a href="https://university.mongodb.com">Learn</a>
<a href="https://www.mongodb.com/try">Downloads</a>
<a href="https://www.mongodb.com/community">Community</a>
<a href="https://www.mongodb.com/blog">Blog</a>
</div>
</div>
42 changes: 21 additions & 21 deletions Docs/landing/static/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<meta name="author" content="">
<meta name="keyword" content="">

<link rel="shortcut icon" href="http://localhost:1313/mongo-java-driver/img/favicon.png">
<link rel="shortcut icon" href="/mongo-csharp-driver/favicon.ico">

<title>404 Page not found</title>

<link rel="stylesheet" href="http://localhost:1313/mongo-java-driver/s/lib/bootstrap.min.css" type="text/css" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

<link rel="stylesheet" href="http://localhost:1313/mongo-java-driver/s/lib/font-awesome/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="http://localhost:1313/mongo-java-driver/s/lib/highlight/styles/vs.css" type="text/css" />
<link rel="stylesheet" href="http://localhost:1313/mongo-java-driver/s/lib/bootstrap-select/bootstrap-select.min.css" type="text/css" />
<link rel="stylesheet" href="http://localhost:1313/mongo-java-driver/s/lib/bootstrap-toggle/bootstrap-toggle.min.css" type="text/css" />
<link rel="stylesheet" href="http://localhost:1313/mongo-java-driver/s/css/frontpage.css" type="text/css" />
<link rel="stylesheet" href="/mongo-csharp-driver/s/lib/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/mongo-csharp-driver/s/lib/font-awesome/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/mongo-csharp-driver/s/lib/highlight/styles/vs.css" type="text/css" />
<link rel="stylesheet" href="/mongo-csharp-driver/s/lib/bootstrap-select/bootstrap-select.min.css" type="text/css" />
<link rel="stylesheet" href="/mongo-csharp-driver/s/lib/bootstrap-toggle/bootstrap-toggle.min.css" type="text/css" />
<link rel="stylesheet" href="/mongo-csharp-driver/s/css/frontpage.css" type="text/css" />

</head>

Expand All @@ -26,17 +26,17 @@
<div class="header-content">

<div class="logo pull-left">
<a href="http://localhost:1313/mongo-java-driver">
<img src="http://localhost:1313/mongo-java-driver/s/img/logo-mongodb-header.png", alt="MongoDB.org" />
<a href="/mongo-csharp-driver">
<img src="/mongo-csharp-driver/s/img/logo-mongodb-header.png", alt="MongoDB" />
</a>
</div>

<div>
<div class="nav-items pull-right">
<a href="http://try.mongodb.org/">Try it Out</a>
<a href="http://www.mongodb.org/downloads">Downloads</a>
<a href="http://www.mongodb.org/get-involved">Community</a>
<a href="http://blog.mongodb.org">Blog</a>
<a href="https://university.mongodb.com">Learn</a>
<a href="https://www.mongodb.com/try">Downloads</a>
<a href="https://www.mongodb.com/community">Community</a>
<a href="https://www.mongodb.com/blog">Blog</a>
</div>
</div>

Expand Down Expand Up @@ -64,7 +64,7 @@ <h1>404: Page not found</h1>
<div class="col-md-12">
<div class="footer">
<div class="copyright">
<p>Copyright © 2010–<script type="text/javascript">document.write(new Date().getFullYear());</script> <a class="smalltext" href="http://www.mongodb.com">MongoDB, Inc</a>.
<p>Copyright © 2010–<script type="text/javascript">document.write(new Date().getFullYear());</script> <a class="smalltext" href="https://www.mongodb.com">MongoDB, Inc</a>.
Licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/ ">Creative Commons</a>.
MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.
</p>
Expand All @@ -78,13 +78,13 @@ <h1>404: Page not found</h1>



<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/js/jquery.js"></script>
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/bootstrap.js"></script>
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/highlight/highlight.pack.js"></script>
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/bootstrap-select/bootstrap-select.min.js"></script>
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/bootstrap-toggle/bootstrap-toggle.min.js"></script>
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/zeroclipboard/ZeroClipboard.min.js"></script>
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/js/frontpage.js"></script>
<script type="text/javascript" src="/mongo-csharp-driver/s/js/jquery.js"></script>
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/bootstrap.js"></script>
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/highlight/highlight.pack.js"></script>
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/bootstrap-select/bootstrap-select.min.js"></script>
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/bootstrap-toggle/bootstrap-toggle.min.js"></script>
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/zeroclipboard/ZeroClipboard.min.js"></script>
<script type="text/javascript" src="/mongo-csharp-driver/s/js/frontpage.js"></script>


<noscript><iframe src="//www.googletagmanager.com/ns.html?id=UA-7301842-14"
Expand Down
12 changes: 6 additions & 6 deletions Docs/reference/content/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ The NuGet packages include support for three target framework monikers (TFMs): n

## NuGet Installation

[NuGet](http://www.nuget.org/) is the simplest way to get the driver. There are 5 packages available on nuget.
[NuGet](https://www.nuget.org/) is the simplest way to get the driver. There are 5 packages available on nuget.

- [MongoDB.Driver](http://www.nuget.org/packages/mongodb.driver): The new driver. It is mostly free of any legacy code and should be used for all new projects. More documentation can be found in the [reference guide]({{< relref "reference\driver\index.md" >}}).
- [MongoDB.Driver.Core](http://www.nuget.org/packages/mongodb.driver.core): The core of the driver and a dependency of MongoDB.Driver. You will probably not use this package directly. More documentation can be found in the [reference guide]({{< relref "reference\driver_core\index.md" >}}).
- [MongoDB.Driver.GridFS](http://www.nuget.org/packages/mongodb.driver.gridfs): The GridFS package. More documentation can be found in the [reference guide]({{< relref "reference\gridfs\index.md" >}}).
- [MongoDB.Bson](http://www.nuget.org/packages/mongodb.bson): The BSON layer. It is a dependency of MongoDB.Driver.Core. It may be used by itself. More documentation can be found in the [reference guide]({{< relref "reference\bson\index.md" >}}).
- [mongocsharpdriver](http://www.nuget.org/packages/mongocsharpdriver): The compatibility layer for those upgrading from our 1.x series. This should not be used for new projects. More information can be found in the [1.x documentation](http://mongodb.github.io/mongo-csharp-driver/1.11);
- [MongoDB.Driver](https://www.nuget.org/packages/mongodb.driver): The new driver. It is mostly free of any legacy code and should be used for all new projects. More documentation can be found in the [reference guide]({{< relref "reference\driver\index.md" >}}).
- [MongoDB.Driver.Core](https://www.nuget.org/packages/mongodb.driver.core): The core of the driver and a dependency of MongoDB.Driver. You will probably not use this package directly. More documentation can be found in the [reference guide]({{< relref "reference\driver_core\index.md" >}}).
- [MongoDB.Driver.GridFS](https://www.nuget.org/packages/mongodb.driver.gridfs): The GridFS package. More documentation can be found in the [reference guide]({{< relref "reference\gridfs\index.md" >}}).
- [MongoDB.Bson](https://www.nuget.org/packages/mongodb.bson): The BSON layer. It is a dependency of MongoDB.Driver.Core. It may be used by itself. More documentation can be found in the [reference guide]({{< relref "reference\bson\index.md" >}}).
- [mongocsharpdriver](https://www.nuget.org/packages/mongocsharpdriver): The compatibility layer for those upgrading from our 1.x series. This should not be used for new projects. More information can be found in the [1.x documentation](https://mongodb.github.io/mongo-csharp-driver/1.11);
2 changes: 1 addition & 1 deletion Docs/reference/content/getting_started/quick_tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Console.WriteLine(document.ToString());

## Updating Documents

There are numerous [update operators](http://docs.mongodb.org/manual/reference/operator/update-field/) supported by MongoDB.
There are numerous [update operators](https://www.mongodb.com/docs/manual/reference/operator/update-field/) supported by MongoDB.

To update at most 1 document (may be 0 if none match the filter), use the [`UpdateOne`]({{< apiref "M_MongoDB_Driver_IMongoCollection_1_UpdateOne" >}}) or [`UpdateOneAsync`]({{< apiref "M_MongoDB_Driver_IMongoCollection_1_UpdateOneAsync" >}}) methods to specify the filter and the update document. Here we update the first document that meets the filter `i == 10` and set the value of `i` to `110`:

Expand Down
2 changes: 1 addition & 1 deletion Docs/reference/content/issues_help.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ If you require assistance with this driver, please see our paid support resource
- Bug Reports that are reproducible can be filed in [JIRA](https://jira.mongodb.org/browse/CSHARP)
- Feature requests for the driver can be requested in our [Feedback Engine](https://feedback.mongodb.com/forums/924286-drivers)

If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the [instructions here](http://docs.mongodb.org/manual/tutorial/create-a-vulnerability-report).
If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the [instructions here](https://www.mongodb.com/docs/manual/tutorial/create-a-vulnerability-report).
2 changes: 1 addition & 1 deletion Docs/reference/content/reference/bson/bson.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ using (var writer = new JsonWriter(output))

[`JsonWriter`]({{< apiref "T_MongoDB_Bson_IO_JsonWriter" >}}) supports writing strict JSON as well as both flavors of [MongoDB Extended JSON]({{< docsref "reference/mongodb-extended-json/" >}}). This, and other things, can be customized with the [`JsonWriterSettings`]({{< apiref "T_MongoDB_Bson_IO_JsonWriterSettings" >}}) class.

For instance, to write in a format for the [MongoDB Shell](http://docs.mongodb.org/manual/administration/scripting/), you can set the [`OutputMode`]({{< apiref "P_MongoDB_Bson_IO_JsonWriterSettings_OutputMode" >}}) to `Shell` and also set the [`ShellVersion`]({{< apiref "P_MongoDB_Bson_IO_JsonWriterSettings_ShellVersion" >}}) to the desired shell version.
For instance, to write in a format for the [MongoDB Shell](https://www.mongodb.com/docs/manual/administration/scripting/), you can set the [`OutputMode`]({{< apiref "P_MongoDB_Bson_IO_JsonWriterSettings_OutputMode" >}}) to `Shell` and also set the [`ShellVersion`]({{< apiref "P_MongoDB_Bson_IO_JsonWriterSettings_ShellVersion" >}}) to the desired shell version.

```csharp
var settings = new JsonWriterSettings
Expand Down
Loading