Skip to content

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

Merged
merged 23 commits into from
Nov 17, 2016
Merged

Various documentation updates #281

merged 23 commits into from
Nov 17, 2016

Conversation

@schmalliso
Copy link
Contributor

If you added an example to MongoDB\Client::__construct showing the use of the SSL options, that would be super awesome (and as a bonus, would let me close an open DOCS ticket to do so 😺 ).

@jmikola jmikola force-pushed the docs branch 2 times, most recently from caedb40 to 3cc5732 Compare November 15, 2016 15:47
@jmikola jmikola force-pushed the docs branch 2 times, most recently from aef4c8f to 8e9a89b Compare November 16, 2016 14:42
@jmikola jmikola force-pushed the docs branch 2 times, most recently from 2daf862 to b8a80af Compare November 16, 2016 22:28

.. .. figure:: img/save-flowchart.png
.. .. figure:: /images/save-flowchart.png
Copy link
Member Author

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?

Copy link
Contributor

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.

Copy link
Member Author

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?

Copy link
Contributor

@schmalliso schmalliso left a 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
Copy link
Contributor

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
Copy link
Contributor

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/

Copy link
Member Author

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.
Copy link
Contributor

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"?

Copy link
Member Author

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
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

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

----
Copy link
Contributor

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.

Copy link
Member Author

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.

@jmikola jmikola merged commit 3828fbc into mongodb:master Nov 17, 2016
jmikola added a commit that referenced this pull request Nov 17, 2016
@jmikola jmikola deleted the docs branch November 17, 2016 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants