Skip to content

Commit 0fa7ebe

Browse files
authored
fix(docs): remove extra preceeding slash, which was breaking the references (#8585)
1 parent 1fae34a commit 0fa7ebe

9 files changed

Lines changed: 37 additions & 37 deletions

dev/src/DocFx/Node/MethodNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MethodNode
3030
use ParentNodeTrait;
3131
use VisibilityTrait;
3232

33-
private const ENUM_REGEX = '/Generated from protobuf field <code>(\.google\.[\w\.]+)/';
33+
private const ENUM_REGEX = '/Generated from protobuf field <code>\.(google\.[\w\.]+)/';
3434

3535
public function __construct(
3636
private SimpleXMLElement $xmlNode,

dev/tests/fixtures/docfx/Vision/V1.BatchOperationMetadata.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ items:
6868
returns:
6969
-
7070
var_type: int
71-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\BatchOperationMetadata\State">State</xref>.'
71+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\BatchOperationMetadata\State">State</xref>.'
7272
-
7373
uid: '\Google\Cloud\Vision\V1\BatchOperationMetadata::setState()'
7474
name: setState
@@ -83,7 +83,7 @@ items:
8383
-
8484
id: var
8585
var_type: int
86-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\BatchOperationMetadata\State">State</xref>. '
86+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\BatchOperationMetadata\State">State</xref>. '
8787
returns:
8888
-
8989
var_type: $this

dev/tests/fixtures/docfx/Vision/V1.Block.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ items:
234234
returns:
235235
-
236236
var_type: int
237-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Block\BlockType">BlockType</xref>.'
237+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Block\BlockType">BlockType</xref>.'
238238
-
239239
uid: '\Google\Cloud\Vision\V1\Block::setBlockType()'
240240
name: setBlockType
@@ -249,7 +249,7 @@ items:
249249
-
250250
id: var
251251
var_type: int
252-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Block\BlockType">BlockType</xref>. '
252+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Block\BlockType">BlockType</xref>. '
253253
returns:
254254
-
255255
var_type: $this

dev/tests/fixtures/docfx/Vision/V1.FaceAnnotation.Landmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ items:
5757
returns:
5858
-
5959
var_type: int
60-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\FaceAnnotation\Landmark\Type">Type</xref>.'
60+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\FaceAnnotation\Landmark\Type">Type</xref>.'
6161
-
6262
uid: '\Google\Cloud\Vision\V1\FaceAnnotation\Landmark::setType()'
6363
name: setType
@@ -72,7 +72,7 @@ items:
7272
-
7373
id: var
7474
var_type: int
75-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\FaceAnnotation\Landmark\Type">Type</xref>. '
75+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\FaceAnnotation\Landmark\Type">Type</xref>. '
7676
returns:
7777
-
7878
var_type: $this

dev/tests/fixtures/docfx/Vision/V1.FaceAnnotation.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ items:
461461
returns:
462462
-
463463
var_type: int
464-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
464+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
465465
-
466466
uid: '\Google\Cloud\Vision\V1\FaceAnnotation::setJoyLikelihood()'
467467
name: setJoyLikelihood
@@ -476,7 +476,7 @@ items:
476476
-
477477
id: var
478478
var_type: int
479-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
479+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
480480
returns:
481481
-
482482
var_type: $this
@@ -493,7 +493,7 @@ items:
493493
returns:
494494
-
495495
var_type: int
496-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
496+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
497497
-
498498
uid: '\Google\Cloud\Vision\V1\FaceAnnotation::setSorrowLikelihood()'
499499
name: setSorrowLikelihood
@@ -508,7 +508,7 @@ items:
508508
-
509509
id: var
510510
var_type: int
511-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
511+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
512512
returns:
513513
-
514514
var_type: $this
@@ -525,7 +525,7 @@ items:
525525
returns:
526526
-
527527
var_type: int
528-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
528+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
529529
-
530530
uid: '\Google\Cloud\Vision\V1\FaceAnnotation::setAngerLikelihood()'
531531
name: setAngerLikelihood
@@ -540,7 +540,7 @@ items:
540540
-
541541
id: var
542542
var_type: int
543-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
543+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
544544
returns:
545545
-
546546
var_type: $this
@@ -557,7 +557,7 @@ items:
557557
returns:
558558
-
559559
var_type: int
560-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
560+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
561561
-
562562
uid: '\Google\Cloud\Vision\V1\FaceAnnotation::setSurpriseLikelihood()'
563563
name: setSurpriseLikelihood
@@ -572,7 +572,7 @@ items:
572572
-
573573
id: var
574574
var_type: int
575-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
575+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
576576
returns:
577577
-
578578
var_type: $this
@@ -589,7 +589,7 @@ items:
589589
returns:
590590
-
591591
var_type: int
592-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
592+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
593593
-
594594
uid: '\Google\Cloud\Vision\V1\FaceAnnotation::setUnderExposedLikelihood()'
595595
name: setUnderExposedLikelihood
@@ -604,7 +604,7 @@ items:
604604
-
605605
id: var
606606
var_type: int
607-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
607+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
608608
returns:
609609
-
610610
var_type: $this
@@ -621,7 +621,7 @@ items:
621621
returns:
622622
-
623623
var_type: int
624-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
624+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
625625
-
626626
uid: '\Google\Cloud\Vision\V1\FaceAnnotation::setBlurredLikelihood()'
627627
name: setBlurredLikelihood
@@ -636,7 +636,7 @@ items:
636636
-
637637
id: var
638638
var_type: int
639-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
639+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
640640
returns:
641641
-
642642
var_type: $this
@@ -653,7 +653,7 @@ items:
653653
returns:
654654
-
655655
var_type: int
656-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
656+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
657657
-
658658
uid: '\Google\Cloud\Vision\V1\FaceAnnotation::setHeadwearLikelihood()'
659659
name: setHeadwearLikelihood
@@ -668,7 +668,7 @@ items:
668668
-
669669
id: var
670670
var_type: int
671-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
671+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
672672
returns:
673673
-
674674
var_type: $this

dev/tests/fixtures/docfx/Vision/V1.Feature.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ items:
6363
returns:
6464
-
6565
var_type: int
66-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Feature\Type">Type</xref>.'
66+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Feature\Type">Type</xref>.'
6767
-
6868
uid: '\Google\Cloud\Vision\V1\Feature::setType()'
6969
name: setType
@@ -78,7 +78,7 @@ items:
7878
-
7979
id: var
8080
var_type: int
81-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Feature\Type">Type</xref>. '
81+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Feature\Type">Type</xref>. '
8282
returns:
8383
-
8484
var_type: $this

dev/tests/fixtures/docfx/Vision/V1.OperationMetadata.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ items:
6565
returns:
6666
-
6767
var_type: int
68-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\OperationMetadata\State">State</xref>.'
68+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\OperationMetadata\State">State</xref>.'
6969
-
7070
uid: '\Google\Cloud\Vision\V1\OperationMetadata::setState()'
7171
name: setState
@@ -80,7 +80,7 @@ items:
8080
-
8181
id: var
8282
var_type: int
83-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\OperationMetadata\State">State</xref>. '
83+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\OperationMetadata\State">State</xref>. '
8484
returns:
8585
-
8686
var_type: $this

dev/tests/fixtures/docfx/Vision/V1.SafeSearchAnnotation.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ items:
9090
returns:
9191
-
9292
var_type: int
93-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
93+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
9494
-
9595
uid: '\Google\Cloud\Vision\V1\SafeSearchAnnotation::setAdult()'
9696
name: setAdult
@@ -108,7 +108,7 @@ items:
108108
-
109109
id: var
110110
var_type: int
111-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
111+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
112112
returns:
113113
-
114114
var_type: $this
@@ -128,7 +128,7 @@ items:
128128
returns:
129129
-
130130
var_type: int
131-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
131+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
132132
-
133133
uid: '\Google\Cloud\Vision\V1\SafeSearchAnnotation::setSpoof()'
134134
name: setSpoof
@@ -146,7 +146,7 @@ items:
146146
-
147147
id: var
148148
var_type: int
149-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
149+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
150150
returns:
151151
-
152152
var_type: $this
@@ -163,7 +163,7 @@ items:
163163
returns:
164164
-
165165
var_type: int
166-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
166+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
167167
-
168168
uid: '\Google\Cloud\Vision\V1\SafeSearchAnnotation::setMedical()'
169169
name: setMedical
@@ -178,7 +178,7 @@ items:
178178
-
179179
id: var
180180
var_type: int
181-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
181+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
182182
returns:
183183
-
184184
var_type: $this
@@ -198,7 +198,7 @@ items:
198198
returns:
199199
-
200200
var_type: int
201-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
201+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
202202
-
203203
uid: '\Google\Cloud\Vision\V1\SafeSearchAnnotation::setViolence()'
204204
name: setViolence
@@ -216,7 +216,7 @@ items:
216216
-
217217
id: var
218218
var_type: int
219-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
219+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
220220
returns:
221221
-
222222
var_type: $this
@@ -237,7 +237,7 @@ items:
237237
returns:
238238
-
239239
var_type: int
240-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
240+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>.'
241241
-
242242
uid: '\Google\Cloud\Vision\V1\SafeSearchAnnotation::setRacy()'
243243
name: setRacy
@@ -256,7 +256,7 @@ items:
256256
-
257257
id: var
258258
var_type: int
259-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
259+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\Likelihood">Likelihood</xref>. '
260260
returns:
261261
-
262262
var_type: $this

dev/tests/fixtures/docfx/Vision/V1.TextAnnotation.DetectedBreak.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ items:
5555
returns:
5656
-
5757
var_type: int
58-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak\BreakType">BreakType</xref>.'
58+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak\BreakType">BreakType</xref>.'
5959
-
6060
uid: '\Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak::setType()'
6161
name: setType
@@ -70,7 +70,7 @@ items:
7070
-
7171
id: var
7272
var_type: int
73-
description: 'Enum of type <xref uid="\\Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak\BreakType">BreakType</xref>. '
73+
description: 'Enum of type <xref uid="\Google\Cloud\Vision\V1\TextAnnotation\DetectedBreak\BreakType">BreakType</xref>. '
7474
returns:
7575
-
7676
var_type: $this

0 commit comments

Comments
 (0)