-
Notifications
You must be signed in to change notification settings - Fork 1.7k
chore: address product documentation in googleapis-common-protos #16841
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # Copyright 2026 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| description: Remove inappropriate product documentation lines in googleapis-common-protos readme | ||
| url: https://github.com/googleapis/librarian/issues/5670 | ||
| replacements: | ||
| - paths: [ | ||
| packages/googleapis-common-protos/README.rst | ||
| ] | ||
| before: "`Google APIs Common Protos`_: Lets you define and config your API service.\n\n" | ||
| after: "" | ||
| count: 1 | ||
| - paths: [ | ||
| packages/googleapis-common-protos/README.rst | ||
| ] | ||
| before: "- `Product Documentation`_\n" | ||
| after: "" | ||
| count: 1 | ||
| - paths: [ | ||
| packages/googleapis-common-protos/README.rst | ||
| ] | ||
| before: ".. _Google APIs Common Protos: \n" | ||
| after: "" | ||
| count: 1 | ||
| - paths: [ | ||
| packages/googleapis-common-protos/README.rst | ||
| ] | ||
| before: ".. _Product Documentation: \n" | ||
| after: "" | ||
| count: 1 | ||
| - paths: [ | ||
| packages/googleapis-common-protos/README.rst | ||
| ] | ||
| before: | | ||
| 3. `Enable the Google APIs Common Protos.`_ | ||
| 4. `Set up Authentication.`_ | ||
| after: | | ||
| 3. `Set up Authentication.`_ | ||
| count: 1 | ||
| - paths: [ | ||
| packages/googleapis-common-protos/README.rst | ||
| ] | ||
| before: ".. _Enable the Google APIs Common Protos.: \n" | ||
| after: "" | ||
| count: 1 | ||
| - paths: [ | ||
| packages/googleapis-common-protos/README.rst | ||
| ] | ||
| before: | | ||
| - Read the `Google APIs Common Protos Product documentation`_ to learn | ||
| more about the product and see How-to Guides. | ||
| after: "" | ||
| count: 1 | ||
| - paths: [ | ||
| packages/googleapis-common-protos/README.rst | ||
| ] | ||
| before: ".. _Google APIs Common Protos Product documentation: \n" | ||
| after: "" | ||
| count: 1 | ||
|
Comment on lines
+64
to
+69
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’m concerned about introducing additional post-processing steps at this stage of the librarian migration. Since the common protos README was previously maintained by hand, could we revert to the manual version for now? I’d prefer to wait until we have a robust way to support autogeneration for
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd be happy to revert to a manual version, yes - there's a lot about this file which isn't great. But how do we stop the post-processor from generating the readme?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My mistake, the README is autogenerated from synthtool here: https://github.com/googleapis/synthtool/blob/ba9afbd284495433734b84686ef8ef6785c60128/synthtool/languages/python_mono_repo.py#L231-L254 To switch to a handwritten README, we would need to modify synthtool to skip this logic for proto-only libraries. Since this is an existing issue, perhaps we don't need all of the post processing here unless we want to fix it properly. In that case, the fix should be in synthtool where we skip the code below for proto-only packages
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'd rather fix it "hackily" for now (with this PR), and then do it properly when we rewrite bits of synthtool in Go (and ideally remove all kinds of string replacements - including this one). Are you okay with that?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ack. I see the follow up work is captured in googleapis/librarian#5670 (comment). I'll approve this so that it doesn't block the overall migration effort. |
||
Uh oh!
There was an error while loading. Please reload this page.