Skip to content

Commit f7d3598

Browse files
authored
CSHARP-4124: Replaced docs.mongodb.com with www.mongodb.com/docs and similar URL redirect fixes. (mongodb#782)
1 parent d9c4c21 commit f7d3598

File tree

85 files changed

+174
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+174
-174
lines changed

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
- 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.
66
- Fork the [repo](https://github.com/mongodb/mongo-csharp-driver).
7-
- Ensure your core.autocrlf settings are set to true. [see here](http://www.mongodb.org/display/DOCS/CSharp+Driver+Tutorial#CSharpDriverTutorial-Downloading)
7+
- Ensure your core.autocrlf settings are set to true.
88
- Follow the general coding style of the rest of the project.
9-
- Write tests and make sure they pass. [see here](http://www.mongodb.org/display/DOCS/CSharp+Driver+Tutorial#CSharpDriverTutorial-Runningunittests)
9+
- Write tests and make sure they pass.
1010
- 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)
11-
- Submit a pull request from github.
11+
- Submit a pull request from github.

Docs/landing/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To run the server call the hugo command:
1515
| Options explained ||
1616
| --------------------------- |--------------------------------------------------------------------------|
1717
| server | Hugo runs its own webserver to render the files |
18-
| --baseUrl=http://localhost/ | Normally the base url will be /mongo-java-driver for gh-pages |
18+
| --baseUrl=http://localhost/ | Normally the base url will be /mongo-csharp-driver for gh-pages |
1919
| --buildDrafts | Include draft posts in the output - these won't be published to gh-pages |
2020
| -- watch | Automatically reloads on file change |
2121

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="footer">
22
<div class="copyright">
3-
<p>Copyright © 2010–<script type="text/javascript">document.write(new Date().getFullYear());</script> <a class="smalltext" href="http://www.mongodb.com">MongoDB, Inc</a>.
3+
<p>Copyright © 2010–<script type="text/javascript">document.write(new Date().getFullYear());</script> <a class="smalltext" href="https://www.mongodb.com">MongoDB, Inc</a>.
44
Licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/ ">Creative Commons</a>.
5-
MongoDB, Mongo, and the leaf logo are registered trademarks of <a class="smalltext" href="http://www.mongodb.com">MongoDB, Inc</a>.
5+
MongoDB, Mongo, and the leaf logo are registered trademarks of <a class="smalltext" href="https://www.mongodb.com">MongoDB, Inc</a>.
66
</p>
77
</div>
88
</div>

Docs/landing/layouts/partials/header/main.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!--logo start-->
44
<div class="logo pull-left">
55
<a href="{{.Site.BaseUrl}}">
6-
<img src="{{.Site.BaseUrl}}/s/img/logo-mongodb-header.png", alt="MongoDB.org" />
6+
<img src="{{.Site.BaseUrl}}/s/img/logo-mongodb-header.png", alt="MongoDB" />
77
</a>
88
</div>
99
<!--logo end-->
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div>
22
<div class="nav-items pull-right">
3-
<a href="http://try.mongodb.org/">Try it Out</a>
4-
<a href="http://www.mongodb.org/downloads">Downloads</a>
5-
<a href="http://www.mongodb.org/get-involved">Community</a>
6-
<a href="http://blog.mongodb.org">Blog</a>
3+
<a href="https://university.mongodb.com">Learn</a>
4+
<a href="https://www.mongodb.com/try">Downloads</a>
5+
<a href="https://www.mongodb.com/community">Community</a>
6+
<a href="https://www.mongodb.com/blog">Blog</a>
77
</div>
88
</div>

Docs/landing/static/404.html

+21-21
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
<meta name="author" content="">
88
<meta name="keyword" content="">
99

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

1212
<title>404 Page not found</title>
1313

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

2121
</head>
2222

@@ -26,17 +26,17 @@
2626
<div class="header-content">
2727

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

3434
<div>
3535
<div class="nav-items pull-right">
36-
<a href="http://try.mongodb.org/">Try it Out</a>
37-
<a href="http://www.mongodb.org/downloads">Downloads</a>
38-
<a href="http://www.mongodb.org/get-involved">Community</a>
39-
<a href="http://blog.mongodb.org">Blog</a>
36+
<a href="https://university.mongodb.com">Learn</a>
37+
<a href="https://www.mongodb.com/try">Downloads</a>
38+
<a href="https://www.mongodb.com/community">Community</a>
39+
<a href="https://www.mongodb.com/blog">Blog</a>
4040
</div>
4141
</div>
4242

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

7979

8080

81-
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/js/jquery.js"></script>
82-
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/bootstrap.js"></script>
83-
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/highlight/highlight.pack.js"></script>
84-
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/bootstrap-select/bootstrap-select.min.js"></script>
85-
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/bootstrap-toggle/bootstrap-toggle.min.js"></script>
86-
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/lib/zeroclipboard/ZeroClipboard.min.js"></script>
87-
<script type="text/javascript" src="http://localhost:1313/mongo-java-driver/s/js/frontpage.js"></script>
81+
<script type="text/javascript" src="/mongo-csharp-driver/s/js/jquery.js"></script>
82+
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/bootstrap.js"></script>
83+
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/highlight/highlight.pack.js"></script>
84+
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/bootstrap-select/bootstrap-select.min.js"></script>
85+
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/bootstrap-toggle/bootstrap-toggle.min.js"></script>
86+
<script type="text/javascript" src="/mongo-csharp-driver/s/lib/zeroclipboard/ZeroClipboard.min.js"></script>
87+
<script type="text/javascript" src="/mongo-csharp-driver/s/js/frontpage.js"></script>
8888

8989

9090
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=UA-7301842-14"

Docs/reference/content/getting_started/installation.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ The NuGet packages include support for three target framework monikers (TFMs): n
1515

1616
## NuGet Installation
1717

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

20-
- [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" >}}).
21-
- [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" >}}).
22-
- [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" >}}).
23-
- [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" >}}).
24-
- [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);
20+
- [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" >}}).
21+
- [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" >}}).
22+
- [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" >}}).
23+
- [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" >}}).
24+
- [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);

Docs/reference/content/getting_started/quick_tour.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Console.WriteLine(document.ToString());
294294

295295
## Updating Documents
296296

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

299299
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`:
300300

Docs/reference/content/issues_help.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ If you require assistance with this driver, please see our paid support resource
1616
- Bug Reports that are reproducible can be filed in [JIRA](https://jira.mongodb.org/browse/CSHARP)
1717
- Feature requests for the driver can be requested in our [Feedback Engine](https://feedback.mongodb.com/forums/924286-drivers)
1818

19-
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).
19+
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).

Docs/reference/content/reference/bson/bson.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ using (var writer = new JsonWriter(output))
9393

9494
[`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.
9595

96-
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.
96+
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.
9797

9898
```csharp
9999
var settings = new JsonWriterSettings

0 commit comments

Comments
 (0)