Permalink
Browse files

website; fix .important styling

  • Loading branch information...
1 parent b865480 commit 178afe29def1e4bb331597eb5434980c337e73b8 @aheckmann aheckmann committed Dec 6, 2012
Showing with 8 additions and 7 deletions.
  1. +3 −1 docs/css/guide.css
  2. +5 −6 docs/guide.jade
View
@@ -220,8 +220,10 @@ li.guide ul {
.important {
background-color: #FBFF94;
+ margin-left: 5px;
+}
+.important p {
padding: 22px;
- margin-right: -11px;
}
ul.inthewild {
View
@@ -139,18 +139,17 @@ block content
animalSchema.index({ name: 1, type: -1 });
.important
- When your application starts up, Mongoose automatically calls `ensureIndex` for each defined index. While nice for development, it is recommended this behavior be disabled in production by setting the `autoIndex` option of your schema to `false`. Index creation can have a significant performance impact on a busy production system. See the [MongoDB documentation](http://docs.mongodb.org/manual/core/indexes/#index-creation-operations) for more information.
+ :markdown
+ When your application starts up, Mongoose automatically calls `ensureIndex` for each defined index in your schema.
+ While nice for development, it is recommended this behavior be disabled in production since index creation can cause a [significant performance impact](http://docs.mongodb.org/manual/core/indexes/#index-creation-operations). Disable the behavior by setting the `autoIndex` option of your schema to `false`.
:js
animalSchema.set('autoIndex', false);
// or
new Schema({..}, { autoIndex: false });
- p
- | See also the
- a(href="./api.html#model_Model-ensureIndexes")
- code Model#ensureIndexes
- | method for more details.
+ :markdown
+ See also the [Model#ensureIndexes](./api.html#model_Model-ensureIndexes) method.
h3#virtuals Virtuals
:markdown

0 comments on commit 178afe2

Please sign in to comment.