Skip to content

chore: address product documentation in googleapis-common-protos#16841

Merged
jskeet merged 2 commits intogoogleapis:mainfrom
jskeet:remove-googleapis-common-protos-documentation
Apr 28, 2026
Merged

chore: address product documentation in googleapis-common-protos#16841
jskeet merged 2 commits intogoogleapis:mainfrom
jskeet:remove-googleapis-common-protos-documentation

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented Apr 28, 2026

  • Remove the product_documentation_override
  • Add a string replacement to remove inappropriate lines

Completes the google-cloud-python part of #5466

Filed googleapis/librarian#5670 to remove the need for the string replacement when we migrate synthtool code into librarian.

@jskeet jskeet requested a review from parthea April 28, 2026 09:40
@jskeet jskeet requested review from a team as code owners April 28, 2026 09:40
@jskeet jskeet marked this pull request as draft April 28, 2026 09:41
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes product documentation metadata and associated links for the googleapis-common-protos package. While the changes successfully remove the intended documentation lines, they leave behind empty hyperlink targets and references in both the root and documentation README.rst files, which results in invalid reStructuredText syntax. Feedback recommends expanding the post-processing configuration to cover both README files and to remove these broken references and targets to ensure a clean build.

Comment thread packages/googleapis-common-protos/README.rst Outdated
Comment thread packages/googleapis-common-protos/docs/README.rst Outdated
@jskeet jskeet force-pushed the remove-googleapis-common-protos-documentation branch from 9fa8cea to f379582 Compare April 28, 2026 09:44
@jskeet jskeet marked this pull request as ready for review April 28, 2026 09:44
@jskeet jskeet force-pushed the remove-googleapis-common-protos-documentation branch 3 times, most recently from 8597f6c to 087091a Compare April 28, 2026 14:09
@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Apr 28, 2026

Will fix the merge conflict

Comment on lines +64 to +69
- paths: [
packages/googleapis-common-protos/README.rst
]
before: ".. _Google APIs Common Protos Product documentation: \n"
after: ""
count: 1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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 proto-only libraries rather than adding more customizations.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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

https://github.com/googleapis/synthtool/blob/ba9afbd284495433734b84686ef8ef6785c60128/synthtool/languages/python_mono_repo.py#L231-L254

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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.

jskeet added 2 commits April 28, 2026 14:35
- Remove the product_documentation_override
- Add a string replacement to remove the missing link line

Completes the google-cloud-python part of googleapis#5466

Filed googleapis/librarian#5670 to remove
the need for the string replacement when we migrate synthtool code
into librarian.
@jskeet jskeet force-pushed the remove-googleapis-common-protos-documentation branch from 087091a to e7cb3bb Compare April 28, 2026 14:35
@jskeet jskeet merged commit 8495d3f into googleapis:main Apr 28, 2026
31 of 32 checks passed
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