-
Notifications
You must be signed in to change notification settings - Fork 266
Various documentation updates #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
If you added an example to |
caedb40
to
3cc5732
Compare
aef4c8f
to
8e9a89b
Compare
2daf862
to
b8a80af
Compare
|
||
.. .. figure:: img/save-flowchart.png | ||
.. .. figure:: /images/save-flowchart.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schmalliso: When I uncommented this, I received a build warning for image file not readable: images/save-flowchart.png
. Any ideas?
On a side note, I also get another build warning for logo file '.static/logo-mongodb.png' does not exist
. Is this related to the empty /docs/.static/.mongodb
file? Should we leave that in place for the upstream build process?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to put the flowchart image into our docs-assets folder and hook that up, for the moment it's commented out so that the error doesn't happen.
The logo-mongodb.png error doesn't happen when one actually publishes, but is does happen when building locally (for reasons that I can't recall). I'd recommend leaving it in place for the moment, and I'll poke Andrew/Kay about why we've not killed it off yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you mean leave the comment in place? Is /images/
the correct path here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits and a formatting suggestion, but otherwise LGTM.
|
||
The index of each ID in the map corresponds to each document's position in the | ||
bulk operation. If a document had an ID prior to inserting (i.e. the driver did | ||
not generate an ID), this will contain its ``_id`` field value. Any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] s/this/the index/
|
||
The index of each ID in the map corresponds to each document's position in the | ||
bulk operation. If a document had an ID prior to upserting (i.e. the server did | ||
not generate an ID), this will contain its ``_id`` field value. Any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] s/this/the index/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done for all occurrences.
Return Values | ||
------------- | ||
|
||
Return whether the write was acknowledged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be clearer to say "Boolean indicating if the write was acknowledged"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done for all methods returning a boolean.
Connecting with SSL and Authentication | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The following example demonstrates how to connect to a MongoDB replica set with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to mention here that the URI is a standard MongoDB connection string and link to those docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A link to Connection String URI Format was already in the parameter documentation, but I've also added it do the general "See Also" list at the bottom of the page.
|
||
.. .. figure:: img/save-flowchart.png | ||
.. .. figure:: /images/save-flowchart.png |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to put the flowchart image into our docs-assets folder and hook that up, for the moment it's commented out so that the error doesn't happen.
The logo-mongodb.png error doesn't happen when one actually publishes, but is does happen when building locally (for reasons that I can't recall). I'd recommend leaving it in place for the moment, and I'll poke Andrew/Kay about why we've not killed it off yet.
/reference/method/MongoDBModelCollectionInfo-getOptions | ||
/reference/method/MongoDBModelCollectionInfo-isCapped | ||
|
||
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've never included horizontal lines in the docs, so I'm not sure how this might go crazy when we overhaul the CSS.
If you're not married to them, it would be more consistent with the rest of the docs to not include the horizontal lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the interest of keeping the left-hand TOC column concise, I wanted to bundle these insignificant classes into a single page. Without the horizontal lines, each class seemed to run right into the next, since we don't have large paragraphs to break things up like a tutorial page.
I'd love to discuss how we can improve the TOC for this later on. One oddity I noticed is that when you open one of these methods, the left-hand column will show methods for all classes that were on this page (which is likely because they all have the same TOC parent).
For now, I'd prefer to keep the horizontal lines in and clean it up if the CSS overhaul breaks something. HR tags are usually ignored, so it's low risk.
https://jira.mongodb.org/browse/PHPLIB-174
https://jira.mongodb.org/browse/PHPLIB-187
https://jira.mongodb.org/browse/PHPLIB-195
https://jira.mongodb.org/browse/PHPLIB-234
https://jira.mongodb.org/browse/PHPLIB-235
https://jira.mongodb.org/browse/DOCS-8719