Skip to content

Commit

Permalink
chore: add cpc to some pages that were missing it
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 2, 2018
1 parent 8f16b67 commit 551a75b
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/api.jade
Expand Up @@ -2,11 +2,23 @@ extends layout

append style
link(rel="stylesheet", href="/docs/css/api.css")
link(rel="stylesheet", href="/docs/css/inlinecpc.css")
script(type="text/javascript" src="/docs/js/native.js")

block content
h1 API Docs

div.
<script>
_native.init("CK7DT53U",{
targetClass: 'native-inline'
});
</script>

<div class="native-inline">
<a href="#native_link#"><span class="sponsor">Sponsor</span> #native_company# — #native_desc#</a>
</div>

div.api-nav
div.api-nav-content
each item in docs
Expand Down
14 changes: 14 additions & 0 deletions docs/compatibility.jade
@@ -1,9 +1,23 @@
extends layout

append style
link(rel="stylesheet", href="/docs/css/inlinecpc.css")
script(type="text/javascript" src="/docs/js/native.js")

block content
:markdown
## MongoDB Server Version Compatibility

<script>
_native.init("CK7DT53U",{
targetClass: 'native-inline'
});
</script>

<div class="native-inline">
<a href="#native_link#"><span class="sponsor">Sponsor</span> #native_company# — #native_desc#</a>
</div>

Mongoose relies on the [MongoDB Node.js Driver](http://mongodb.github.io/node-mongodb-native/)
to talk to MongoDB. You can refer to
[this table](https://docs.mongodb.com/ecosystem/drivers/driver-compatibility-reference/#node-js-driver-compatibility)
Expand Down
14 changes: 14 additions & 0 deletions docs/faq.jade
@@ -1,5 +1,9 @@
extends layout

append style
link(rel="stylesheet", href="/docs/css/inlinecpc.css")
script(type="text/javascript" src="/docs/js/native.js")

block append style
style.
hr {
Expand All @@ -16,6 +20,16 @@ block content
:markdown
## FAQ

<script>
_native.init("CK7DT53U",{
targetClass: 'native-inline'
});
</script>

<div class="native-inline">
<a href="#native_link#"><span class="sponsor">Sponsor</span> #native_company# — #native_desc#</a>
</div>

**Q**. Why don't my changes to arrays get saved when I update an element
directly?

Expand Down
14 changes: 14 additions & 0 deletions docs/middleware.jade
@@ -1,9 +1,23 @@
extends layout

append style
link(rel="stylesheet", href="/docs/css/inlinecpc.css")
script(type="text/javascript" src="/docs/js/native.js")

block content
:markdown
## Middleware

<script>
_native.init("CK7DT53U",{
targetClass: 'native-inline'
});
</script>

<div class="native-inline">
<a href="#native_link#"><span class="sponsor">Sponsor</span> #native_company# — #native_desc#</a>
</div>

Middleware (also called pre and post *hooks*) are functions which are passed
control during execution of asynchronous functions. Middleware is specified
on the schema level and is useful for writing [plugins](./plugins.html).
Expand Down
15 changes: 15 additions & 0 deletions docs/plugins.jade
@@ -1,8 +1,23 @@
extends layout

append style
link(rel="stylesheet", href="/docs/css/inlinecpc.css")
script(type="text/javascript" src="/docs/js/native.js")

block content
:markdown
## Plugins

<script>
_native.init("CK7DT53U",{
targetClass: 'native-inline'
});
</script>

<div class="native-inline">
<a href="#native_link#"><span class="sponsor">Sponsor</span> #native_company# — #native_desc#</a>
</div>

Schemas are pluggable, that is, they allow for applying pre-packaged capabilities to extend their functionality. This is a very powerful feature.

Suppose that we have several collections in our database and want to add last-modified functionality to each one. With plugins this is easy. Just create a plugin once and apply it to each `Schema`:
Expand Down

0 comments on commit 551a75b

Please sign in to comment.