Skip to content

PHPLIB-1275: Replace apiargs usage in docs with extracts #1203

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 18 commits into from
Dec 13, 2023

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Nov 27, 2023

https://jira.mongodb.org/browse/PHPLIB-1275

Note: Generated docs can be downloaded from the build artifact attached to the "Docs / Build Docs" GitHub Action, from the bottom of the "Summary" tab.

@jmikola jmikola marked this pull request as ready for review December 11, 2023 19:35
@jmikola jmikola requested review from GromNaN and alcaeus December 11, 2023 19:41
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I identified a small duplicate in createSearchIndex. After that SGTM.

Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clicked through the built documentation and it looks fine. Thanks for the huge effort on this!

function with_transaction(
MongoDB\Driver\Session $session,
callable $callback,
array $transactionOptions = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking to confirm that the missing trailing comma is intentional. This functionality was only added in PHP 8.0, so if we want to keep our docs PHP version consistent with the minimum library version, it would make sense to omit it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was intentional in that I didn't think about it at all. I was only adding line breaks to the original content, which was on a single line.

@jmikola jmikola changed the title PHPLIB-1275: Replace usage api-args in docs with basic includes PHPLIB-1275: Replace apiargs usage in docs with extracts Dec 13, 2023
@jmikola jmikola merged commit 8f562a7 into mongodb:master Dec 13, 2023
@jmikola jmikola deleted the phplib-1275 branch December 13, 2023 14:12
alcaeus added a commit to alcaeus/mongo-php-library that referenced this pull request Jan 15, 2024
* master:
  PHPLIB-1323 Implement `unlink` for GridFS stream wrapper (mongodb#1206)
  PHPLIB-1330: Sync tests for failCommand errorLabels reqs (mongodb#1214)
  PHPLIB-1246: Test PHP 8.3 on Evergreen (mongodb#1213)
  PHPLIB-1324 Implement `rename` for GridFS stream wrapper  (mongodb#1207)
  PHPLIB-1248 Add examples on GridFS (mongodb#1196)
  Deprecate setting GridFS disableMD5 to false explicitly (mongodb#1205)
  PHPLIB-1326: Use more permissive top-level runOnRequirements (mongodb#1210)
  PHPLIB-1206 Add bucket alises for context resolver using GridFS StreamWrapper (mongodb#1138)
  Bump actions/upload-artifact from 3 to 4 (mongodb#1208)
  PHPLIB-1275: Replace apiargs usage in docs with extracts (mongodb#1203)
  Fix title formatting in Client::removeSubscriber() docs (mongodb#1204)
  PHPLIB-1304: Pull mongohouse image from ECR repo (mongodb#1202)
  Fix evergreen failures (mongodb#1200)
  Enable workflows to run for GitHub Merge Queue (mongodb#1199)
  PHPLIB-1313 Ensure the GridFS stream is saved when the script ends (mongodb#1197)
  PHPLIB-1309 Add addSubscriber/removeSubscriber to Client class to ease configuration (mongodb#1195)
  Master is now 1.18-dev
jdestefano-mongo pushed a commit to jdestefano-mongo/mongo-php-library that referenced this pull request Jan 22, 2024
Use extracts for option includes and repeated option notes. Order options alphabetically.

Split up index and command options into separate tables.

* Change RST syntax for function and method params

This adds a Parameters section and uses a definition list, which is more consistent with PHPC. It also allows group the options table under the options param.

* Fix BulkWriteResult::getModifiedCount() return type

* Fix position of type map anchor

This was inadvertently moved in 1043a3a

* Use basic paragraphs for Atlas Search notes

* Move Atlas Search requirement note to Definition section
jdestefano-mongo pushed a commit to jdestefano-mongo/mongo-php-library that referenced this pull request Jan 22, 2024
Use extracts for option includes and repeated option notes. Order options alphabetically.

Split up index and command options into separate tables.

* Change RST syntax for function and method params

This adds a Parameters section and uses a definition list, which is more consistent with PHPC. It also allows group the options table under the options param.

* Fix BulkWriteResult::getModifiedCount() return type

* Fix position of type map anchor

This was inadvertently moved in 1043a3a

* Use basic paragraphs for Atlas Search notes

* Move Atlas Search requirement note to Definition section
jdestefano-mongo pushed a commit to jdestefano-mongo/mongo-php-library that referenced this pull request Jan 22, 2024
Use extracts for option includes and repeated option notes. Order options alphabetically.

Split up index and command options into separate tables.

* Change RST syntax for function and method params

This adds a Parameters section and uses a definition list, which is more consistent with PHPC. It also allows group the options table under the options param.

* Fix BulkWriteResult::getModifiedCount() return type

* Fix position of type map anchor

This was inadvertently moved in 1043a3a

* Use basic paragraphs for Atlas Search notes

* Move Atlas Search requirement note to Definition section
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.

3 participants