Skip to content

Commit 03329d5

Browse files
committed
CDRIVER-524 link from libmongoc docs to libbson
1 parent 33e24d5 commit 03329d5

File tree

76 files changed

+146
-123
lines changed

Some content is hidden

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

76 files changed

+146
-123
lines changed

build/libbson.xsl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2+
version="1.0">
3+
<!--
4+
Turn markup like this:
5+
6+
<code xref="bson:bson_t">bson_t</code>
7+
8+
... into a link like this:
9+
10+
http://api.mongodb.org/libbson/current/bson_t.html
11+
-->
12+
<xsl:template name="mal.link.target.custom">
13+
<xsl:param name="node" select="."/>
14+
<xsl:param name="xref" select="$node/@xref"/>
15+
<xsl:if test="starts-with($xref, 'bson:')">
16+
<xsl:variable name="ref"
17+
select="substring-after($xref, 'bson:')"/>
18+
<xsl:text>http://api.mongodb.org/libbson/current/</xsl:text>
19+
<xsl:value-of select="$ref"/>
20+
<xsl:text>.html</xsl:text>
21+
</xsl:if>
22+
</xsl:template>
23+
</xsl:stylesheet>

doc/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endif
2424
if ENABLE_HTML_DOCS
2525
html $(YELP_HTML_FILES):
2626
@ $(MKDIR_P) doc/html
27-
$(AM_V_GEN)$(YELP_BUILD) html -o doc/html $(wildcard $(top_srcdir)/doc/*.page)
27+
$(AM_V_GEN)$(YELP_BUILD) html -x build/libbson.xsl -o doc/html $(wildcard $(top_srcdir)/doc/*.page)
2828

2929
YELP_HTML_FILES = \
3030
doc/html/C.css \

doc/mongoc_bulk_operation_delete.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mongoc_bulk_operation_delete (mongoc_bulk_operation_t *bulk,
3232
<title>Parameters</title>
3333
<table>
3434
<tr><td><p>bulk</p></td><td><p>A <link xref="mongoc_bulk_operation_t">mongoc_bulk_operation_t</link>.</p></td></tr>
35-
<tr><td><p>selector</p></td><td><p>A bson_t.</p></td></tr>
35+
<tr><td><p>selector</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>.</p></td></tr>
3636
</table>
3737
</section>
3838

doc/mongoc_bulk_operation_delete_one.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mongoc_bulk_operation_delete_one (mongoc_bulk_operation_t *bulk,
3232
<title>Parameters</title>
3333
<table>
3434
<tr><td><p>bulk</p></td><td><p>A <link xref="mongoc_bulk_operation_t">mongoc_bulk_operation_t</link>.</p></td></tr>
35-
<tr><td><p>selector</p></td><td><p>A bson_t.</p></td></tr>
35+
<tr><td><p>selector</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>.</p></td></tr>
3636
</table>
3737
</section>
3838

doc/mongoc_bulk_operation_execute.page

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ mongoc_bulk_operation_execute (mongoc_bulk_operation_t *bulk,
2424

2525
<p>It is only valid to call <link xref="mongoc_bulk_operation_execute">mongoc_bulk_operation_execute()</link> once. The <code>mongoc_bulk_operation_t</code> must be destroyed afterwards.</p>
2626

27-
<note style="warning"><p><code>reply</code> is always initialized, even upon failure. Callers <em>must</em> call <link xref="bson_destroy">bson_destroy()</link> to release this potential allocation.</p></note>
27+
<note style="warning"><p><code>reply</code> is always initialized, even upon failure. Callers <em>must</em> call <code xref="bson:bson_destroy">bson_destroy()</code> to release this potential allocation.</p></note>
2828
</section>
2929

3030
<section id="parameters">
3131
<title>Parameters</title>
3232
<table>
3333
<tr><td><p>bulk</p></td><td><p>A <link xref="mongoc_bulk_operation_t">mongoc_bulk_operation_t</link>.</p></td></tr>
34-
<tr><td><p>reply</p></td><td><p>A bson_t.</p></td></tr>
35-
<tr><td><p>error</p></td><td><p>An optional location for a <link xref="bson_error_t">bson_error_t</link> or <code>NULL</code>.</p></td></tr>
34+
<tr><td><p>reply</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>.</p></td></tr>
35+
<tr><td><p>error</p></td><td><p>An optional location for a <code xref="bson:bson_error_t">bson_error_t</code> or <code>NULL</code>.</p></td></tr>
3636
</table>
3737
</section>
3838

doc/mongoc_bulk_operation_insert.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mongoc_bulk_operation_insert (mongoc_bulk_operation_t *bulk,
2424
<title>Parameters</title>
2525
<table>
2626
<tr><td><p>bulk</p></td><td><p>A <link xref="mongoc_bulk_operation_t">mongoc_bulk_operation_t</link>.</p></td></tr>
27-
<tr><td><p>document</p></td><td><p>A bson_t.</p></td></tr>
27+
<tr><td><p>document</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>.</p></td></tr>
2828
</table>
2929
</section>
3030

doc/mongoc_bulk_operation_remove.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mongoc_bulk_operation_remove (mongoc_bulk_operation_t *bulk,
2323
<title>Parameters</title>
2424
<table>
2525
<tr><td><p>bulk</p></td><td><p>A <link xref="mongoc_bulk_operation_t">mongoc_bulk_operation_t</link>.</p></td></tr>
26-
<tr><td><p>selector</p></td><td><p>A bson_t.</p></td></tr>
26+
<tr><td><p>selector</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>.</p></td></tr>
2727
</table>
2828
</section>
2929

doc/mongoc_bulk_operation_remove_one.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mongoc_bulk_operation_remove_one (mongoc_bulk_operation_t *bulk,
2323
<title>Parameters</title>
2424
<table>
2525
<tr><td><p>bulk</p></td><td><p>A <link xref="mongoc_bulk_operation_t">mongoc_bulk_operation_t</link>.</p></td></tr>
26-
<tr><td><p>selector</p></td><td><p>A bson_t.</p></td></tr>
26+
<tr><td><p>selector</p></td><td><p>A <code xref="bson:bson_t">bson_t</code>.</p></td></tr>
2727
</table>
2828
</section>
2929

doc/mongoc_bulk_operation_replace_one.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ mongoc_bulk_operation_replace_one (mongoc_bulk_operation_t *bulk,
2828
<title>Parameters</title>
2929
<table>
3030
<tr><td><p>bulk</p></td><td><p>A <link xref="mongoc_bulk_operation_t">mongoc_bulk_operation_t</link>.</p></td></tr>
31-
<tr><td><p>selector</p></td><td><p>A bson_t containing the selector to query.</p></td></tr>
32-
<tr><td><p>document</p></td><td><p>A bson_t containing the replacement document.</p></td></tr>
31+
<tr><td><p>selector</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the selector to query.</p></td></tr>
32+
<tr><td><p>document</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the replacement document.</p></td></tr>
3333
<tr><td><p>upsert</p></td><td><p><code>true</code> if this should be an <code>upsert</code>.</p></td></tr>
3434
</table>
3535
<note style="warning"><p><code>document</code> may not contain fields with keys containing <code>.</code> or <code>$</code>.</p></note>

doc/mongoc_bulk_operation_update.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ mongoc_bulk_operation_update (mongoc_bulk_operation_t *bulk,
2727
<title>Parameters</title>
2828
<table>
2929
<tr><td><p>bulk</p></td><td><p>A <link xref="mongoc_bulk_operation_t">mongoc_bulk_operation_t</link>.</p></td></tr>
30-
<tr><td><p>selector</p></td><td><p>A bson_t containing the selector to query.</p></td></tr>
31-
<tr><td><p>document</p></td><td><p>A bson_t containing the update document.</p></td></tr>
30+
<tr><td><p>selector</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the selector to query.</p></td></tr>
31+
<tr><td><p>document</p></td><td><p>A <code xref="bson:bson_t">bson_t</code> containing the update document.</p></td></tr>
3232
<tr><td><p>upsert</p></td><td><p><code>true</code> if an <code>upsert</code> should be performed.</p></td></tr>
3333
</table>
3434
</section>

0 commit comments

Comments
 (0)