Skip to content

Commit d3f38fd

Browse files
authored
docs(talent): Fix PersonNameFilter docs by removing a link that was crashing YARD
1 parent b473372 commit d3f38fd

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

  • google-cloud-talent

google-cloud-talent/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ module ResumeType
305305
# so on.)
306306
# @!attribute [rw] preferred_name
307307
# @return [String]
308-
# Preferred name for the person. This field is ignored if {Google::Cloud::Talent::V4beta1::PersonName#structured_name structured_name}
308+
# Preferred name for the person. This field is ignored if `structured_name`
309309
# is provided.
310310
#
311311
# Number of characters allowed is 100.

google-cloud-talent/synth.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,5 +264,14 @@
264264
'http://cldr.unicode.org'
265265
)
266266

267+
# YARD 0.9.24 crashes when trying to resolve this particular link.
268+
# Work around it by disabling the link.
269+
# See https://github.com/googleapis/google-cloud-ruby/issues/5187
270+
s.replace(
271+
'lib/**/profile.rb',
272+
'\\{Google::Cloud::Talent::V4beta1::PersonName#structured_name structured_name\\}',
273+
'`structured_name`'
274+
)
275+
267276
# Generate the helper methods
268277
call(f'bundle update && bundle exec rake generate_partials TALENT_SERVICES={",".join(services)}', shell=True)

0 commit comments

Comments
 (0)