Skip to content

Commit 95bc4ef

Browse files
authored
move to mongodb.com/docs (#5189)
1 parent f672984 commit 95bc4ef

14 files changed

+63
-63
lines changed

docs/additional-resources.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Additional Resources
1313
This page lists some of the third-party guides and blog posts about Mongoid,
1414
as well as sample Mongoid applications. Additional resources for the driver
1515
are listed on the `respective driver page
16-
<https://docs.mongodb.com/ruby-driver/current/reference/additional-resources/>`_.
16+
<https://mongodb.com/docs/ruby-driver/current/reference/additional-resources/>`_.
1717

1818

1919
Screencasts
@@ -22,15 +22,15 @@ Screencasts
2222
- `RailsCasts: Mongoid (revised)
2323
<https://www.youtube.com/watch?v=L0RqU2MdqXU>`_
2424

25-
An overview of Mongoid, by Ryan Bates including the basics
26-
of setting up an app, querying for records, adding embedded
25+
An overview of Mongoid, by Ryan Bates including the basics
26+
of setting up an app, querying for records, adding embedded
2727
associations, overriding the id, and more.
2828

2929
- `Ruby on Rails Web Services and Integration with MongoDB, Week 3: Mongoid
3030
<https://www.youtube.com/watch?v=9LylgiMYsUM>`_
3131

3232
A detailed introduction to Mongoid and Ruby on Rails web services.
33-
33+
3434
- `Create a search bar in Rails with Mongoid
3535
<https://www.youtube.com/watch?v=zusWR8jS5-A>`_
3636

@@ -51,7 +51,7 @@ Articles
5151
- `Converting an existing Ruby on Rails application to MongoDB <https://ibraheem.ca/posts/convert-rails-to-mongodb>`_
5252

5353
How to Convert an existing Ruby on Rails application to use MongoDB and Mongoid.
54-
54+
5555

5656
Sample Applications
5757
===================

docs/index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ for MongoDB in Ruby.
1616
tutorials
1717
schema-configuration
1818
working-with-data
19-
API <https://docs.mongodb.com/mongoid/master/api/>
19+
API <https://mongodb.com/docs/mongoid/master/api/>
2020
release-notes
2121
additional-resources
2222
ecosystem

docs/reference/associations.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ often a good idea to use embedded associations.
554554

555555
Using embedded associations allows using MongoDB tools like the
556556
`aggregation pipeline
557-
<https://docs.mongodb.com/manual/core/aggregation-pipeline/>`_ to query
557+
<https://mongodb.com/docs/manual/core/aggregation-pipeline/>`_ to query
558558
these documents in a powerful way.
559559

560560
Because embedded documents are stored as part of their parent top-level
@@ -696,8 +696,8 @@ is not implemented for :ref:`text search <text-search>`, :manual:`geospatial que
696696
operators </reference/operator/query-geospatial/>`,
697697
operators that execute JavaScript code (:manual:`$where </reference/operator/query/where/>`)
698698
and operators that are implemented via other server functionality such as
699-
:manual:`$expr <https://docs.mongodb.com/manual/reference/operator/query/expr/>`
700-
and :manual:`$jsonSchema <https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/>`.
699+
:manual:`$expr <https://mongodb.com/docs/manual/reference/operator/query/expr/>`
700+
and :manual:`$jsonSchema <https://mongodb.com/docs/manual/reference/operator/query/jsonSchema/>`.
701701

702702
The following operators are supported:
703703

@@ -1635,9 +1635,9 @@ Mongoid provides limited support for constructing the aggregation pipeline
16351635
itself using a high-level DSL. The following aggregation pipeline operators
16361636
are supported:
16371637

1638-
- `$group <https://docs.mongodb.com/manual/reference/operator/aggregation/group/>`_
1639-
- `$project <https://docs.mongodb.com/manual/reference/operator/aggregation/project/>`_
1640-
- `$unwind <https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/>`_
1638+
- `$group <https://mongodb.com/docs/manual/reference/operator/aggregation/group/>`_
1639+
- `$project <https://mongodb.com/docs/manual/reference/operator/aggregation/project/>`_
1640+
- `$unwind <https://mongodb.com/docs/manual/reference/operator/aggregation/unwind/>`_
16411641

16421642
To construct a pipeline, call the corresponding aggregation pipeline methods
16431643
on a ``Criteria`` instance. Aggregation pipeline operations are added to the
@@ -1686,7 +1686,7 @@ group
16861686
`````
16871687

16881688
The ``group`` method adds a `$group aggregation pipeline stage
1689-
<https://docs.mongodb.com/manual/reference/operator/aggregation/group/>`_.
1689+
<https://mongodb.com/docs/manual/reference/operator/aggregation/group/>`_.
16901690

16911691
The field expressions support Mongoid symbol-operator syntax:
16921692

@@ -1706,7 +1706,7 @@ project
17061706
```````
17071707

17081708
The ``project`` method adds a `$project aggregation pipeline stage
1709-
<https://docs.mongodb.com/manual/reference/operator/aggregation/project/>`_.
1709+
<https://mongodb.com/docs/manual/reference/operator/aggregation/project/>`_.
17101710

17111711
The argument should be a Hash specifying the projection:
17121712

@@ -1722,7 +1722,7 @@ unwind
17221722
``````
17231723

17241724
The ``unwind`` method adds an `$unwind aggregation pipeline stage
1725-
<https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/>`_.
1725+
<https://mongodb.com/docs/manual/reference/operator/aggregation/unwind/>`_.
17261726

17271727
The argument can be a field name, specifiable as a symbol or a string, or
17281728
a Hash or a ``BSON::Document`` instance:

docs/reference/compatibility.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Ruby MongoDB Driver Compatibility
1414
=================================
1515

1616
The following compatibility table specifies the versions of `Ruby driver for
17-
MongoDB <https://docs.mongodb.com/ruby-driver/current/>`_
17+
MongoDB <https://mongodb.com/docs/ruby-driver/current/>`_
1818
(the ``mongo`` gem) supported by the most recent patch releases of the
1919
specified Mongoid versions.
2020

@@ -182,7 +182,7 @@ version(s) of Mongoid for use with a specific version of MongoDB server.
182182
Note that in order to use features of a particular MongoDB server version,
183183
both the driver and Mongoid must support that server version.
184184
Please refer to `the driver compatibility page
185-
<https://docs.mongodb.com/ruby-driver/current/reference/driver-compatibility/>`_
185+
<https://mongodb.com/docs/ruby-driver/current/reference/driver-compatibility/>`_
186186
for driver compatibility matrices.
187187

188188
"D" in a column means support for that MongoDB server version is deprecated

docs/reference/configuration.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The following annotated example ``mongoid.yml`` demonstrates how Mongoid
117117
can be configured.
118118

119119
Mongoid delegates to the Ruby driver for client configuration. Please review
120-
`the driver documentation <https://docs.mongodb.com/ruby-driver/current/reference/create-client/>`_
120+
`the driver documentation <https://mongodb.com/docs/ruby-driver/current/reference/create-client/>`_
121121
for details on driver options.
122122

123123
.. code-block:: yaml
@@ -143,7 +143,7 @@ for details on driver options.
143143
- myhost3.mydomain.com:27017
144144
options:
145145
# These options are Ruby driver options, documented in
146-
# https://docs.mongodb.com/ruby-driver/current/reference/create-client/
146+
# https://mongodb.com/docs/ruby-driver/current/reference/create-client/
147147

148148
# Change the default write concern. (default = { w: 1 })
149149
write:
@@ -177,10 +177,10 @@ for details on driver options.
177177
# Specify the auth source, i.e. the database or other source which
178178
# contains the user's login credentials. Allowed values for auth source
179179
# depend on the authentication mechanism, as explained in the server documentation:
180-
# https://docs.mongodb.com/manual/reference/connection-string/#mongodb-urioption-urioption.authSource
180+
# https://mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource
181181
# If no auth source is specified, the default auth source as
182182
# determined by the driver will be used. Please refer to:
183-
# https://docs.mongodb.com/ruby-driver/current/reference/authentication/#auth-source
183+
# https://mongodb.com/docs/ruby-driver/current/reference/authentication/#auth-source
184184
auth_source: admin
185185

186186
# Connect directly to and perform all operations on the specified
@@ -723,7 +723,7 @@ be executed sequentially during socket creation.
723723
in an application.
724724

725725
For more information about TLS context hooks, including best practices for
726-
assigning and removing them, see `the Ruby driver documentation <https://docs.mongodb.com/ruby-driver/current/reference/create-client/#modifying-sslcontext>`_.
726+
assigning and removing them, see `the Ruby driver documentation <https://mongodb.com/docs/ruby-driver/current/reference/create-client/#modifying-sslcontext>`_.
727727

728728
Usage with Forking Servers
729729
==========================

docs/reference/fields.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Field Types
1919
===========
2020

2121
MongoDB stores underlying document data using
22-
`BSON types <https://docs.mongodb.com/manual/reference/bson-types/>`_, and
22+
`BSON types <https://mongodb.com/docs/manual/reference/bson-types/>`_, and
2323
Mongoid converts BSON types to Ruby types at runtime in your application.
2424
For example, a field defined with `type: :float` will use the Ruby ``Float``
2525
class in-memory and will persist in the database as the the BSON ``double`` type.
@@ -1327,7 +1327,7 @@ names containing the dot and dollar characters, however it is recommended to
13271327
avoid these characters for ease of querying.
13281328

13291329
MongoDB 5.0 adds `special operators
1330-
<https://docs.mongodb.com/manual/core/dot-dollar-considerations/#std-label-crud-concepts-dot-dollar-considerations>`_
1330+
<https://mongodb.com/docs/manual/core/dot-dollar-considerations/#std-label-crud-concepts-dot-dollar-considerations>`_
13311331
for querying and modifying documents using field names containing dots and
13321332
dollars. Previous MongoDB versions do not provide a mechanism for querying
13331333
documents on fields whose names contain dots and dollars, though such documents

docs/reference/indexes.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ second options hash parameter:
2424
class Person
2525
include Mongoid::Document
2626
field :ssn
27-
27+
2828
index({ ssn: 1 }, { unique: true, name: "ssn_index" })
2929
end
3030

@@ -46,7 +46,7 @@ You can index on multiple fields and provide direction:
4646
include Mongoid::Document
4747
field :first_name
4848
field :last_name
49-
49+
5050
index({ first_name: 1, last_name: 1 }, { unique: true })
5151
end
5252

@@ -57,7 +57,7 @@ Indexes can be sparse:
5757
class Person
5858
include Mongoid::Document
5959
field :ssn
60-
60+
6161
index({ ssn: -1 }, { sparse: true })
6262
end
6363

@@ -89,7 +89,7 @@ already have duplicate values by specifying the ``drop_dups`` option:
8989
end
9090

9191
The ``drop_dups`` option has been `removed as of MongoDB 3.0
92-
<https://docs.mongodb.com/manual/release-notes/3.0-compatibility/#remove-dropdups-option>`_.
92+
<https://mongodb.com/docs/manual/release-notes/3.0-compatibility/#remove-dropdups-option>`_.
9393

9494
For geospatial indexes, make sure the field being indexed is of type Array:
9595

@@ -98,7 +98,7 @@ For geospatial indexes, make sure the field being indexed is of type Array:
9898
class Person
9999
include Mongoid::Document
100100
field :location, type: Array
101-
101+
102102
index({ location: "2d" }, { min: -200, max: 200 })
103103
end
104104

@@ -150,7 +150,7 @@ in Rails console:
150150

151151
# Create indexes for Model
152152
Model.create_indexes
153-
153+
154154
# Remove indexes for Model
155155
Model.remove_indexes
156156

@@ -165,10 +165,10 @@ providing an ``:environment`` task to load your application's models:
165165
.. code-block:: ruby
166166

167167
# Rakefile
168-
168+
169169
require 'mongoid'
170170
load 'mongoid/tasks/database.rake'
171-
171+
172172
task :environment do
173173
# Require/load your application's models here
174174
end
@@ -179,10 +179,10 @@ explicitly requiring ``mongoid``:
179179
.. code-block:: ruby
180180

181181
# Rakefile
182-
182+
183183
require 'bundler/setup'
184184
load 'mongoid/tasks/database.rake'
185-
185+
186186
task :environment do
187187
# Require/load your application's models here
188188
end

docs/reference/queries.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ an ``{'$and' => [{'$nor' => ...}]}`` construct:
488488

489489
If using ``not`` with arrays or regular expressions, please note the
490490
caveats/limitations of ``$not`` `stated in the MongoDB server documentation
491-
<https://docs.mongodb.com/manual/reference/operator/query/not/>`_.
491+
<https://mongodb.com/docs/manual/reference/operator/query/not/>`_.
492492

493493

494494
Incremental Query Construction
@@ -1038,7 +1038,7 @@ to be combined with :ref:`ordering <ordering>` to ensure consistent results.
10381038

10391039
When executing large queries, or when iterating over query results with an enumerator method such as
10401040
``Criteria#each``, Mongoid automatically uses the `MongoDB getMore command
1041-
<https://docs.mongodb.com/manual/reference/command/getMore/>`_ to load results in batches.
1041+
<https://mongodb.com/docs/manual/reference/command/getMore/>`_ to load results in batches.
10421042
The default ``batch_size`` is 1000, however you may set it explicitly:
10431043

10441044
.. code-block:: ruby
@@ -2017,7 +2017,7 @@ with driver versions 2.13.x and earlier, Mongoid utilizes its own, legacy,
20172017
query cache implementation.
20182018

20192019
Please review the `driver query cache documentation
2020-
<https://docs.mongodb.com/ruby-driver/current/reference/query-cache/>`_
2020+
<https://mongodb.com/docs/ruby-driver/current/reference/query-cache/>`_
20212021
for details about the driver's query cache behavior.
20222022

20232023
.. warning::

docs/reference/sharding.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ advantage of.
4141

4242
Mongoid supports two syntaxes for declaring shard keys. The standard syntax
4343
follows the format of MongoDB `shardCollection shell helper
44-
<https://docs.mongodb.com/manual/reference/method/sh.shardCollection/#sh.shardCollection>`_
44+
<https://mongodb.com/docs/manual/reference/method/sh.shardCollection/#sh.shardCollection>`_
4545
and allows specifying ranged and hashed shard keys, compound shard keys and
4646
collection sharding options:
4747

@@ -125,5 +125,5 @@ sharding collections:
125125
sharding collections as described in this document, or creating or dropping
126126
collections or databases, cluster nodes may end up with out of date local
127127
configuration-related cache data. Execute the `flushRouterConfig
128-
<https://docs.mongodb.com/manual/reference/command/flushRouterConfig/>`_
128+
<https://mongodb.com/docs/manual/reference/command/flushRouterConfig/>`_
129129
command on each ``mongos`` node to clear these caches.

docs/reference/text-search.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Defining Text Search Index
3737

3838
Index definition through Mongoid is described in detail on the `indexes
3939
<indexes>`_ page. Text search indexes are described in detail
40-
under `text indexes <https://docs.mongodb.com/manual/core/index-text/>`_
40+
under `text indexes <https://mongodb.com/docs/manual/core/index-text/>`_
4141
in the MongoDB manual. Below is an example definition of a Band model with
4242
a text index utilizing the description field:
4343

@@ -69,7 +69,7 @@ Querying Using Text Index
6969
-------------------------
7070

7171
To find bands whose description contains "ounces" or its variations, use the
72-
`$text operator <https://docs.mongodb.com/manual/reference/operator/query/text/#op._S_text>`_:
72+
`$text operator <https://mongodb.com/docs/manual/reference/operator/query/text/#op._S_text>`_:
7373

7474
.. code-block:: ruby
7575

0 commit comments

Comments
 (0)