Skip to content

Commit 1f450d0

Browse files
Tony Sansoneatsansone
authored andcommitted
(DOCSP-6719): Updated Style Guide starting with port of Rackspace Style Guide.
1 parent abc4018 commit 1f450d0

File tree

93 files changed

+12888
-569
lines changed

Some content is hidden

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

93 files changed

+12888
-569
lines changed

conf.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def has(self, *args):
6565
'.. |hardlink| replace:: {0}/{1}'.format(conf.project.url, conf.git.branches.current),
6666
'.. |branch| replace:: ``{0}``'.format(conf.git.branches.current),
6767
'.. |bi| replace:: MongoDB Connector for BI',
68+
'.. |mdbsg| replace:: MongoDB Style Guide'
6869
])
6970

7071
pygments_style = 'sphinx'
@@ -79,9 +80,33 @@ def has(self, *args):
7980
'mms-docs': ('https://docs.cloudmanager.mongodb.com%s', ''),
8081
'mms-home': ('https://www.mongodb.com/cloud/cloud-manager%s', ''),
8182
'opsmgr': ('https://docs.opsmanager.mongodb.com/current%s', ''),
83+
'cldmgr': ('https://docs.cloudmanager.mongodb.com/%s', ''),
84+
'atlas': ('https://docs.atlas.mongodb.com/%s', ''),
8285
'products': ('https://www.mongodb.com/products%s', ''),
8386
'wtdocs': ('http://source.wiredtiger.com/mongodb-3.4%s', ''),
84-
87+
'v2.2': ('https://docs.mongodb.com/v2.2%s', ''),
88+
'v2.4': ('https://docs.mongodb.com/v2.4%s', ''),
89+
'v2.6': ('https://docs.mongodb.com/v2.6%s', ''),
90+
'v3.0': ('https://docs.mongodb.com/v3.0%s', ''),
91+
'v3.2': ('https://docs.mongodb.com/v3.2%s', ''),
92+
'v3.4': ('https://docs.mongodb.com/v3.4%s', ''),
93+
'v3.6': ('https://docs.mongodb.com/v3.6%s', ''),
94+
'v4.0': ('https://docs.mongodb.com/v4.0%s', ''),
95+
'bic': ('https://docs.mongodb.com/bi-connector/current%s',''),
96+
'k8s': ('https://docs.mongodb.com/kubernetes-operator/stable%s',''),
97+
'product': ('http://www.mongodb.com/products/%s?jmp=docs',''),
98+
'website': ('https://www.mongodb.com%s?jmp=docs',''),
99+
'dl': ('http://www.mongodb.com/download-center/%s?jmp=docs',''),
100+
'aws': ('http://docs.aws.amazon.com%s',''),
101+
'driver' : ('https://docs.mongodb.com/ecosystem/drivers%s', ''),
102+
'wikipedia' : ('https://en.wikipedia.org/wiki%s', ''),
103+
'mw' : ('https://www.merriam-webster.com/dictionary/%s',''),
104+
'mdbdrivers' : ('https://docs.mongodb.com/ecosystem/drivers/%s',''),
105+
'cmos17' : ('https://www.chicagomanualofstyle.org/book/ed17%s',''),
106+
'sphinx-rst' : ('https://www.sphinx-doc.org/en/master/usage/restructuredtext%s', ''),
107+
'sphinx' : ('https://www.sphinx-doc.org/en/master%s', ''),
108+
'rst' : ('http://docutils.sourceforge.net/docs/ref/rst%s',''),
109+
'cc' : ('https://creativecommons.org/licenses%s','')
85110
}
86111

87112
## add `extlinks` for each published version.

source/includes/steps-guides.yaml

Lines changed: 56 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@ title: "Add guides to your sphinx extensions."
22
ref: add-guides
33
content: |
44
Add 'guides' to the extensions list in conf.py in your repo root.
5-
5+
66
.. code-block:: sh
7-
7+
88
extensions = [
9-
'sphinx.ext.extlinks',
10-
'sphinx.ext.todo',
11-
'mongodb',
12-
'directives',
13-
'intermanual',
14-
'testcode',
15-
'tabs',
16-
'markdown',
17-
'fasthtml',
18-
'source_constants',
19-
'icon'
20-
'guides'
21-
]
9+
'sphinx.ext.extlinks',
10+
'sphinx.ext.todo',
11+
'mongodb',
12+
'directives',
13+
'intermanual',
14+
'testcode',
15+
'tabs',
16+
'markdown',
17+
'fasthtml',
18+
'source_constants',
19+
'icon'
20+
'guides'
21+
]
2222
---
23-
title: Copy the guides directive template into a file in your repo.
24-
ref: copy-guide
23+
title: Copy the guides directive template into a file in your repo.
24+
ref: copy-guide
2525
content: |
2626
Copy the following directive template into a file to begin
2727
writing your guide. Make sure it's under the source directory and
2828
give it a .txt extension. Otherwise it won't build.
2929
3030
.. note::
31-
31+
3232
While the spacing makes this example look a bit like a .yaml
3333
file, it's really a sphinx directive. This guide should compile as-is.
3434
35-
.. code-block:: sh
35+
.. code-block:: sh
3636
37-
.. guide::
38-
title: This is your guide title
37+
.. guide::
38+
title: This is your guide title
3939
author: MongoDB Documentation Team
40-
type: Getting Started
40+
type: Getting Started
4141
level: beginner
4242
product_version: 4.0
4343
languages:
@@ -50,26 +50,26 @@ content: |
5050
csharp
5151
result_description:
5252
This is a handy description of the result you will achieve
53-
if you successfully create this guide.
54-
time: 15
53+
if you successfully create this guide.
54+
time: 15
5555
prerequisites:
56-
- first do this guide
57-
- then do this one
56+
- first do this guide
57+
- then do this one
5858
- make sure you have installed some stuff
5959
check_your_environment:
6060
Check to see if your environment has everything it needs.
6161
List things you need to complete this guide
6262
- binaries installed
6363
- permissions
64-
- drivers or libraries
64+
- drivers or libraries
6565
procedure:
6666
Feel free to put the steps include here.
67-
67+
6868
At the moment, tabbed content does not display properly when put
6969
directly in the procedure section. Use an include file for tabbed
70-
content.
70+
content.
7171
summary:
72-
Congrats! You accomplished something.
72+
Congrats! You accomplished something.
7373
whats_next:
7474
- check out the `guide on such and such </guide/such-and-such>`
7575
@@ -84,20 +84,21 @@ content: |
8484
(tabs-drivers) to toggle.
8585
8686
The following sections are required:
87+
8788
.. list-table::
8889
:header-rows: 1
89-
:widths: auto
90-
:class: guide-tablenate
91-
90+
:widths: 10 20 70
91+
:class: guide-tablenate
92+
9293
* - field
93-
- type
94+
- type
9495
- possible values
9596
9697
* - title
9798
- string
9899
- any
99100
100-
* - author
101+
* - author
101102
- string
102103
- any
103104
@@ -106,59 +107,59 @@ content: |
106107
- beginner, intermediate, advanced
107108
108109
* - time
109-
- number
110+
- number
110111
- any
111-
112+
112113
* - type
113114
- string
114115
- Getting Started, Use Case, Deep Dive
115-
116+
116117
* - product_version
117118
- number
118119
- any
119120
120121
* - prerequisites
121-
- text
122+
- text
122123
- any
123-
124+
124125
* - summary
125126
- text
126127
- any
127-
128+
128129
* - procedure
129-
- text
130+
- text
130131
- any
131-
132+
132133
* - result_description
133134
- text
134135
- any
135136
---
136-
title: Document the content with steps required to complete the tutorial
137-
ref: make-steps
137+
title: Document the content with steps required to complete the tutorial
138+
ref: make-steps
138139
content: |
139140
Document the steps required for your guide. If you'd like content
140141
with numbered steps, use a step file.
141-
142+
142143
Step files are *.yaml* files that get converted during the build process
143144
to *.rst* files and
144145
are included as `/<dir>/steps/<something>.rst`. When you create the .yaml
145146
step file, name it according to the convention:
146147
147148
.. note::
148-
149+
149150
Guides use headings to delineate sections. If you would like to provide
150151
subsections for your guides sections, use subheadings.
151152
152-
153+
153154
.. code-block:: sh
154-
155+
155156
<dir>/steps-<something>.yaml
156157
157158
Here is an example of a .yaml steps file. Notice that you can
158159
nest includes within the step content if you wish.
159160
160-
.. code-block:: sh
161-
161+
.. code-block:: sh
162+
162163
title: Find the ``mongo`` Shell
163164
ref: mongo-shell
164165
content: |
@@ -182,7 +183,7 @@ content: |
182183
183184
---
184185
title: Add What's Next and See Also (optional) sections
185-
ref: whats-next
186+
ref: whats-next
186187
content: |
187188
188189
The *What's Next* and *See Also* sections are important for
@@ -208,20 +209,20 @@ content: |
208209
can be referenced using the fully qualified url:
209210
210211
.. code-block:: sh
211-
212+
212213
`Site to link to <http://fully.qualified.domain/stuff>`__.
213214
214215
---
215216
title: Add the Guide to a Table of Contents
216-
ref: add-to-toc
217+
ref: add-to-toc
217218
content: |
218219
219220
To add the guide to a table of contents, use the same method you would
220221
use for any standard docs content.
221222
222223
In the .txt file for the TOC in question, add the link.
223224
224-
.. code-block:: none
225+
.. code-block:: none
225226
226227
.. toctree::
227228
:titlesonly:

source/reference/cond.txt

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,41 @@ evaluate suppressed content.
2222

2323
.. code-block:: rst
2424

25+
Access :guilabel:`Data Explorer`
26+
--------------------------------
27+
28+
.. cond:: cloud
29+
30+
.. note::
31+
32+
To access :guilabel:`Data Explorer`, you must have been
33+
granted access through one of the following roles:
34+
35+
- :authrole:`Project Owner` or
36+
:authrole:`Organization Owner`
37+
38+
- :authrole:`Project Data Access Admin`
39+
40+
- :authrole:`Project Data Access Read/Write`
41+
42+
- :authrole:`Project Data Access Read Only`
43+
44+
45+
Data Explorer is not available for trial versions of |mms|
46+
after the initial 30 day trial period.
47+
2548
.. cond:: onprem
2649

27-
.. include:: /release-notes/changelogs/changelog-backup-agent-onprem.rst
50+
.. note::
51+
52+
To access :guilabel:`Data Explorer`, you must have been
53+
granted access through one of the following roles:
54+
55+
- :authrole:`Project Owner` or
56+
:authrole:`Organization Owner`
57+
58+
- :authrole:`Project Data Access Admin`
59+
60+
- :authrole:`Project Data Access Read/Write`
61+
62+
- :authrole:`Project Data Access Read Only`

0 commit comments

Comments
 (0)