Skip to content

Commit 191d21c

Browse files
committed
Remove docs.mongodb.com from content
1 parent ce7d7a2 commit 191d21c

File tree

9 files changed

+38
-38
lines changed

9 files changed

+38
-38
lines changed

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def has(self, *args):
7474
pygments_style = 'sphinx'
7575

7676
extlinks = {
77-
'hardlink' : ( 'http://docs.mongodb.com/{0}/%s'.format(conf.git.branches.current), ''),
77+
'hardlink' : ( 'http://www.mongodb.com/docs/{0}/%s'.format(conf.git.branches.current), ''),
7878
'issue': ('https://jira.mongodb.org/browse/%s', '' ),
7979
'api': ('https://api.mongodb.com/%s', ''),
8080
'gettingstarted': ('https://www.mongodb.com/docs/getting-started%s', ''),

config/build_conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ git:
55
project:
66
name: 'meta'
77
tag: 'meta'
8-
url: 'https://docs.mongodb.com/meta'
8+
url: 'https://www.mongodb.com/docs/meta'
99
title: 'MongoDB Meta Documentation'
1010
branched: false
1111
system:

source/includes/steps-repo.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
title: "Clone a repo similar to the repository you wish to create."
22
ref: clone-repo
33
content: |
4-
4+
55
First, clone a repository that is similar to the repository you wish to create.
66
77
For this example, we will clone the docs-meta repository. Clone the repo to the name you wish to give your new repo.
8-
8+
99
.. code-block:: sh
10-
10+
1111
git clone [email protected]:mongodb/docs-meta.git <docs-yourrepo>
1212
1313
1414
Run:
1515
1616
.. code-block:: sh
17-
17+
1818
cd <docs-yourrepo>
1919
2020
---
2121
title: Delete the .git directory
22-
ref: delete-git
22+
ref: delete-git
2323
content: |
2424
25-
25+
2626
2727
Delete the .git directory in your local, cloned version of the repository so that you can begin with your own repository.
2828
29-
.. code-block:: sh
30-
29+
.. code-block:: sh
30+
3131
rm -rf .git
3232
3333
Check to make sure you have deleted the .git file:
3434
3535
.. code-block:: sh
3636
3737
git branch
38-
38+
3939
You should see the following error:
4040
4141
.. code-block:: sh
4242
:copyable: false
4343
4444
fatal: Not a git repository (or any of the parent directories): .git
4545
46-
46+
4747
---
4848
title: Check to make sure you have removed the .git directory
4949
ref: check-rm
@@ -62,25 +62,25 @@ content: |
6262
total 32
6363
drwxr-xr-x 7 you staff 238 Mar 11 05:05 .
6464
drwxr-xr-x 85 you staff 2890 Mar 11 05:02 ..
65-
-rw-r--r-- 1 you staff 2424 Mar 11 05:02 .gitignore
65+
-rw-r--r-- 1 you staff 2424 Mar 11 05:02 .gitignore
6666
-rw-r--r-- 1 you staff 2243 Mar 11 05:02 Makefile
6767
-rw-r--r-- 1 you staff 7087 Mar 11 05:02 conf.py
6868
drwxr-xr-x 8 you staff 272 Mar 11 05:02 config
6969
drwxr-xr-x 17 you staff 578 Mar 11 05:02 source
70-
70+
7171
---
7272
title: Reinitialize the repo
7373
ref: git-reinit
7474
content: |
7575
Run git init to reinitialize the repo:
7676
7777
.. code-block:: sh
78-
78+
7979
git init
8080
8181
You will see the following output:
8282
83-
.. code-block:: sh
83+
.. code-block:: sh
8484
:copyable: false
8585
8686
Initialized empty Git repository in <yourdirectorystructure>/docs-yourrepo/.git/
@@ -115,7 +115,7 @@ content: |
115115
---
116116

117117
title: Fork the repo
118-
ref: fork-repo
118+
ref: fork-repo
119119
content: |
120120
121121
Go ahead and fork the repo on github if you wish to follow the docs model of github usage. `Fork a repo <https://help.github.com/en/articles/fork-a-repo>`_.
@@ -125,7 +125,7 @@ content: |
125125
Add the origin remote for your forked repo:
126126
127127
.. code-block:: sh
128-
128+
129129
git remote add origin https://github.com/<fork>/docs-yourrepo
130130
131131
Add the upstream remote:
@@ -148,10 +148,10 @@ content: |
148148
149149
rm redirects
150150
151-
151+
152152
---
153153
title: Edit conf.py
154-
ref: edit-confpy
154+
ref: edit-confpy
155155
content: |
156156
157157
Edit the conf.py as needed. ``conf.py`` is where you can add sphinx extensions and roles that you might require for your docs.
@@ -191,11 +191,11 @@ content: |
191191
project:
192192
name: 'yourprojectname'
193193
tag: 'ypt'
194-
url: 'https://docs.mongodb.com/projectname'
194+
url: 'https://www.mongodb.com/docs/projectname'
195195
title: 'MongoDB Project Documentation'
196196
branched: false
197197
198-
198+
199199
---
200200
title: Install Build Tools
201201
ref: install-build

source/redirects.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Example
9898
# You should define variables to reduce duplication and make future maintenance
9999
# easier. The *base* variable is common, and indicates the base for where
100100
# redirects should point.
101-
define: base https://docs.mongodb.com/bi-connector
101+
define: base https://www.mongodb.com/docs/bi-connector
102102

103103
# The *versions* variable is special: it contains a whitespace-delimited
104104
# list of versions over which to generate redirects. Version ordering

source/style-guide/style/links-and-cross-references.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ the topic.
9191

9292
- If a link points to a location other than the current site (for
9393
example, out of the Support website or away from
94-
docs.mongodb.com), provide context that describes the location.
94+
www.mongodb.com/docs), provide context that describes the location.
9595

9696
.. _sg-link-formatting:
9797

@@ -165,7 +165,7 @@ Link and Cross-Reference Examples
165165
:mdbdrivers:`MongoDB Drivers site </>`.
166166
- The most current versions of all drivers are located on the
167167
MongoDB Developer Docs site:
168-
https://docs.mongodb.com/ecosystem/drivers/.
168+
https://www.mongodb.com/docs/drivers/.
169169

170170
* - You can obtain the API key by logging in to
171171
:mdbcloud:`Atlas </>` and clicking the

source/tutorials/install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
whats_next:
1818
Congratulations! Now that you've installed the Build Tools, you are ready to start building your site.
1919
seealso:
20-
- `check out the guides site for examples <http://docs.mongodb.com/guides>`__.
20+
- `check out the guides site for examples <http://www.mongodb.com/docs/guides>`__.
2121
- :doc:`Tabbed Content Tutorial </tutorials/tabbed-content>`
2222
- :doc:`Create a Docstools-Enabled Repo </tutorials/repo>`

source/tutorials/repo.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. guide::
2-
title: How to Create a Docstools-Enabled Repository
2+
title: How to Create a Docstools-Enabled Repository
33
author: MongoDB Documentation Team
4-
type: Deep Dive
5-
level: intermediate
4+
type: Deep Dive
5+
level: intermediate
66
product_version: 4.0
77
result_description:
88
In this guide you will learn how to create a docstools-enabled repository.
@@ -14,10 +14,10 @@
1414
procedure:
1515
.. include:: /includes/steps/repo.rst
1616
summary:
17-
If you have successfully completed this guide, you have
18-
created a MongoDB docstools-enabled repository.
17+
If you have successfully completed this guide, you have
18+
created a MongoDB docstools-enabled repository.
1919
whats_next:
2020
Congratulations! Now that you've created your repository, you can create your docstools-enabled content.
2121
seealso:
22-
- `check out the guides site for examples <http://docs.mongodb.com/guides>`__.
22+
- `check out the guides site for examples <http://www.mongodb.com/docs/guides>`__.
2323
- :doc:`Tabbed Content Tutorial </tutorials/tabbed-content>`

source/tutorials/tabbed-content.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ immediately follows a code block:
309309
:tabid: shell
310310

311311
For more information on the syntax of the method, see
312-
`db.collection.find() <https://docs.mongodb.com/manual/reference/method/db.collection.find/#db.collection.find>`_.
312+
`db.collection.find() <https://www.mongodb.com/docs/manual/reference/method/db.collection.find/#db.collection.find>`_.
313313

314314
.. tab::
315315
:tabid: python
@@ -342,7 +342,7 @@ immediately follows a code block:
342342
:tabid: shell
343343

344344
For more information on the syntax of the method, see
345-
`db.collection.find() <https://docs.mongodb.com/manual/reference/method/db.collection.find/#db.collection.find>`_.
345+
`db.collection.find() <https://www.mongodb.com/docs/manual/reference/method/db.collection.find/#db.collection.find>`_.
346346

347347
.. tab::
348348
:tabid: python

source/tutorials/version-bumping.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Step 3: Update published branches configuration
6464
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6565

6666
a. Create a new local branch in the ``docs-tools`` repository:
67-
67+
6868
.. code-block:: sh
69-
69+
7070
git checkout -B bi-v2.3 upstream/master
7171
git pull --rebase
7272

@@ -158,7 +158,7 @@ Before
158158
.. code-block:: none
159159

160160
define: prefix bi-connector
161-
define: base https://docs.mongodb.com/${prefix}
161+
define: base https://www.mongodb.com/docs/${prefix}
162162
define: versions v1.1 v2.0 v2.1 master
163163
symlink: v2.2 -> master
164164
symlink: current -> master
@@ -167,7 +167,7 @@ After
167167
:emphasize-lines: 3,4,5,6,8
168168

169169
define: prefix bi-connector
170-
define: base https://docs.mongodb.com/${prefix}
170+
define: base https://www.mongodb.com/docs/${prefix}
171171
define: versions v1.1 v2.0 v2.1 v2.2 master
172172
symlink: v2.3 -> master
173173
symlink: upcoming -> master

0 commit comments

Comments
 (0)