Skip to content

Commit 96b922e

Browse files
author
Christian Hergert
committed
doc: use output for prompt.
1 parent ee999a2 commit 96b922e

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

doc/aggregate.page

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
<p>Let's check if everything is installed.</p>
1616
<p>Use the following command to load zips.json data set into mongod instance:</p>
1717

18-
<screen><input style="prompt">$ </input><input>mongoimport --drop -d test -c zipcodes zips.json</input></screen>
18+
<screen><output style="prompt">$ </output><input>mongoimport --drop -d test -c zipcodes zips.json</input></screen>
1919

2020
<p>Let's use the MongoDB shell to verify that everything was imported successfully.</p>
2121

22-
<screen><input style="prompt">$ </input><input>mongo test</input>
22+
<screen><output style="prompt">$ </output><input>mongo test</input>
2323
<output>MongoDB shell version: 2.6.1
2424
connecting to: test</output>
25-
<input style="prompt">&gt; </input><input>db.zipcodes.count()</input>
25+
<output style="prompt">&gt; </output><input>db.zipcodes.count()</input>
2626
<output>29467</output>
27-
<input style="prompt">&gt; </input><input>db.zipcodes.findOne()</input>
27+
<output style="prompt">&gt; </output><input>db.zipcodes.findOne()</input>
2828
<output><![CDATA[{
2929
"_id" : "35004",
3030
"city" : "ACMAR",

doc/authentication.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ client = mongoc_client_new ("mongodb://mongodbuser%[email protected]/?au
5353

5454
<note style="warning"><p>Kerberos support is only provided in environments supported by the <code>cyrus-sasl</code> kerberos implementation. This currently limits support to UNIX-like environments.</p></note>
5555

56-
<note style="info"><p>If you see an error such as <code>Invalid net address</code>, you might be behind a NAT (Network Address Translation) firewall. In this case, you might need to create a ticket that uses <code>forwardable</code> and <code>addressless</code> Kerberos tickets. This can be done by passing <code>-f -A</code> to <code>kinit</code>.</p><screen><input style="prompt">$ </input><input>kinit -f -A [email protected]</input></screen></note>
56+
<note style="info"><p>If you see an error such as <code>Invalid net address</code>, you might be behind a NAT (Network Address Translation) firewall. In this case, you might need to create a ticket that uses <code>forwardable</code> and <code>addressless</code> Kerberos tickets. This can be done by passing <code>-f -A</code> to <code>kinit</code>.</p><screen><output style="prompt">$ </output><input>kinit -f -A [email protected]</input></screen></note>
5757

5858
</section>
5959

doc/cursors.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ print_all_documents (mongoc_collection_t *collection)
5959

6060
<p>Let's compile and run this example against a <link href="">replicaSet</link> to see updates as they are made.</p>
6161

62-
<screen><input style="prompt">$ </input><input>gcc -Wall -o mongoc-tail mongoc-tail.c $(pkg-config --cflags --libs libmongoc-1.0)</input>
63-
<input style="prompt">$ </input><input>./mongoc-tail mongodb://example.com/?replicaSet=myReplSet</input>
62+
<screen><output style="prompt">$ </output><input>gcc -Wall -o mongoc-tail mongoc-tail.c $(pkg-config --cflags --libs libmongoc-1.0)</input>
63+
<output style="prompt">$ </output><input>./mongoc-tail mongodb://example.com/?replicaSet=myReplSet</input>
6464
<output>{ "ts" : { "$timestamp" : { "t" : 1400023818, "i" : 1 } }, "h" : -8458503739429355503, "v" : 2, "op" : "i", "ns" : "test.test", "o" : { "_id" : { "$oid" : "5372ab0a25164be923d10d50" } } }</output></screen>
6565

6666
<note style="tip"><p>The line of output is a sample from performing <code>db.test.insert({})</code> from the mongo shell on the given replicaSet.</p></note>

doc/installing.page

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,16 @@ Python (experimental) : no
106106

107107
<p>We can now build the driver with the venerable <code>make</code> program.</p>
108108

109-
<screen><input style="prompt">$ </input><input>make</input></screen>
109+
<screen><output style="prompt">$ </output><input>make</input></screen>
110110

111111
<note>
112112
<p>You can optionally build code objects in parallel using the <code>-j</code> option to GNU make. Some implementations of <code>make</code> do not support this option, such as Sun's make on Solaris 10. To build in parallel on an 8 core machine, you might use:</p>
113-
<screen><input style="prompt">$ </input><input>gmake -j8</input></screen>
113+
<screen><output style="prompt">$ </output><input>gmake -j8</input></screen>
114114
</note>
115115

116116
<p>To install the driver, we use <code>make</code> with the <code>install</code> target.</p>
117117

118-
<screen><input style="prompt">$ </input><input>sudo make install</input></screen>
118+
<screen><output style="prompt">$ </output><input>sudo make install</input></screen>
119119

120120
<note>
121121
<p>On systems that do not support the <code>sudo</code> command, we can use <code>su -c 'make install'</code>.</p>

doc/matcher.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
<p>To test this, perform a <code>mongodump</code> of a single collection and pipe it to the program.</p>
2828

2929
<screen>
30-
<input style="prompt">$ </input><input>echo "db.test.insert({hello:'world'})" | mongo</input>
30+
<output style="prompt">$ </output><input>echo "db.test.insert({hello:'world'})" | mongo</input>
3131
<output>MongoDB shell version: 2.6.1
3232
connecting to: test
3333
WriteResult({ "nInserted" : 1 })
3434
bye</output>
35-
<input style="prompt">$ </input><input>mongodump -d test -c test -o - | filter-bsondump</input>
35+
<output style="prompt">$ </output><input>mongodump -d test -c test -o - | filter-bsondump</input>
3636
<output>{ "_id" : { "$oid" : "537afac9a70e5b4d556153bc" }, "hello" : "world" }</output></screen>
3737

3838
</section>

0 commit comments

Comments
 (0)