Skip to content

Commit 677f45d

Browse files
authored
Merge pull request #12 from skerschb/admonishment
warning about redirects
2 parents e56ed81 + fb35963 commit 677f45d

File tree

5 files changed

+111
-14
lines changed

5 files changed

+111
-14
lines changed

source/includes/steps-install.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
title: "Install Xcode from the App Store."
2+
ref: install-xcode
3+
content: |
4+
5+
Install Xcode. This installation may take awhile. In the meantime, you can follow the rest of the steps.
6+
7+
---
8+
title: Download and install Homebrew
9+
ref: install-homebrew
10+
content: |
11+
12+
If homebrew is not installed, download it `here <https://brew.sh>`_.
13+
14+
Then run:
15+
16+
.. code-block:: sh
17+
18+
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
19+
20+
When this completes, run the following two commands:
21+
22+
.. code-block:: sh
23+
24+
brew update
25+
brew doctor
26+
27+
---
28+
title: Install Python 2 and Python 3
29+
ref: install-python
30+
content: |
31+
32+
To run the build tools you need both python and python 2. Install them both by running:
33+
34+
.. code-block:: sh
35+
36+
brew install python python2
37+
38+
You also need Pip, the Python package manager. Note you may need to run this in a new shell:
39+
40+
.. code-block:: sh
41+
42+
easy_install pip
43+
44+
---
45+
title: Install Giza and Mut
46+
ref: install-giza
47+
content: |
48+
49+
Install the Python modules that Giza requires:
50+
51+
.. code-block:: sh
52+
53+
python2 -m pip install requests virtualenv virtualenvwrapper jira py-dateutil
54+
55+
Install Giza:
56+
57+
.. code-block:: sh
58+
59+
python2 -m pip install giza
60+
61+
After Giza installation is complete, install Mut:
62+
63+
.. code-block:: sh
64+
65+
bash -c "$(curl -fsSL https://raw.githubusercontent.com/mongodb/mut/master/install.sh)"
66+
67+
...

source/includes/steps-repo.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ content: |
101101
Create the repo you would like to use on GitHub.
102102
103103
You will then need to commit some files and add your local repository to github. If you add all of the files, you will
104-
nned to remove the ones that are not relevant to your repository later, but this is a perfectly acceptable way to start your repository.
104+
need to remove the ones that are not relevant to your repository later, but this is a perfectly acceptable way to start your repository.
105105
106106
Make sure you add a README.md file to your repo. Add a sentence to the file to describe your project. Then save the file and run:
107107
@@ -133,7 +133,22 @@ content: |
133133
.. code-block:: sh
134134
135135
git remote add upstream https://github.com/<repoOwner>/<remoteRepoRoot>.git
136+
---
137+
title: Remove the redirects file
138+
ref: remove-redirects
139+
content: |
140+
141+
Some of our repositories have a ``redirects`` file that redirects browsers permanently to a new location.
142+
143+
Please remove the file in order to prevent inadvertant redirects on your site.
144+
145+
In the config directory of your repo, run:
146+
147+
.. code-block:: sh
136148
149+
rm redirects
150+
151+
137152
---
138153
title: Edit conf.py
139154
ref: edit-confpy
@@ -186,7 +201,7 @@ title: Install Build Tools
186201
ref: install-build
187202
content: |
188203
189-
You will need to `install the build tools <https://gist.github.com/atsansone/aa6b793da9ca30fe7d46#install-the-documentation-software>`_ in order to build your repository.
204+
You will need to :doc:`install the build tools </tutorials/install>` in order to build your repository.
190205
191206
Once you have installed the build tools, you can attempt to build your repository.
192207
@@ -203,14 +218,4 @@ content: |
203218
204219
You will see output pertaining to your build in the ``build/<branch>`` directory local to your repository.
205220
206-
---
207-
title: Deploying Your Site
208-
ref: edit-makefile
209-
content: |
210-
211-
If you wish to deploy your site to ``mongodb.com`` and leverage the existing staging servers. you will `need to request a token
212-
<https://gist.github.com/atsansone/aa6b793da9ca30fe7d46#systems-authentication-and-authorization>`_ to be able to publish to the S3 buckets.
213-
214-
Modify the fields in the Makefile that pertain to the location of your deployed site if you wish to do so.
215-
216221
...

source/tutorials.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ Tutorials
1111
/tutorials/version-bumping
1212
/tutorials/generating-a-browser-list
1313
/error-kb
14+
/tutorials/install
1415
/tutorials/repo
1516
/tutorials/guide

source/tutorials/install.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.. guide::
2+
title: Installing MongoDB Documentation Build Tools
3+
author: MongoDB Documentation Team
4+
type: Deep Dive
5+
level: intermediate
6+
product_version: 4.0
7+
result_description:
8+
In this guide you will learn how to install the MongoDB Documentation Build Tools. Note that this guide only applies to macOS.
9+
time: 45
10+
prerequisites:
11+
- Access to git
12+
check_your_environment:
13+
- Check to make sure you have git installed
14+
procedure:
15+
.. include:: /includes/steps/install.rst
16+
summary:
17+
If you have successfully completed this guide, you have
18+
installed the MongoDB Build Tools.
19+
whats_next:
20+
Congratulations! Now that you've installed the Build Tools, you are ready to start building your site.
21+
seealso:
22+
- `check out the guides site for examples <http://docs.mongodb.com/guides>`__.
23+
- :doc:`Tabbed Content Tutorial </tutorials/tabbed-content>`
24+
- :doc:`Create a Docstools-Enabled Repo </tutorials/repo>`

source/tutorials/repo.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
In this guide you will learn how to create a docstools-enabled repository.
99
time: 45
1010
prerequisites:
11-
- access to git
11+
- Access to git
1212
check_your_environment:
13-
- check to make sure you have git installed
13+
- Check to make sure you have git installed
1414
procedure:
1515
.. include:: /includes/steps/repo.rst
1616
summary:

0 commit comments

Comments
 (0)