Polber commented on code in PR #33124:
URL: https://github.com/apache/beam/pull/33124#discussion_r1851028326
##########
sdks/python/apache_beam/yaml/generate_yaml_docs.py:
##########
@@ -196,12 +196,28 @@ def io_grouping_key(transform_name):
]
+def add_transform_links(transform, description, provider_list):
+ """
+ Convert references of Providers to urls that link to their respective pages.
+ Avoid self-linking within a Transform page.
+ """
+ for p in provider_list:
+ description = re.sub(
+ rf"(?<!type: )\b(?!{transform}\b)\b{p}\b",
+ f'<a href="#{p.lower()}">{p}</a>',
Review Comment:
Added both
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]