|
49 | 49 | # Capitalize the first word unless it is mixed case
|
50 | 50 | $str =~ s/^([a-z][a-z0-9]*)\b/\u$1/;
|
51 | 51 |
|
52 |
| - # Handle exception |
53 |
| - $str =~ s/(ASP.NET) core/$1 Core/; |
| 52 | + # Handle exceptions |
| 53 | + $str =~ s/(.NET) (core)/$1 \u$2/; |
| 54 | + $str =~ s/(AI) (inference)/$1 \u$2/; |
| 55 | + $str =~ s|google cloud|Google Cloud|i; |
| 56 | + $str =~ s|pub/sub|Pub/Sub|; |
54 | 57 |
|
55 | 58 | return $str;
|
56 | 59 | }
|
|
88 | 91 | $linkTitle = $1;
|
89 | 92 | }
|
90 | 93 |
|
91 |
| - $linkTitle = 'Attributes' if $title eq 'General Attributes'; |
92 | 94 | $linkTitle = 'Events' if $linkTitle =~ /Mobile Events/;
|
93 | 95 | $linkTitle = 'Connect' if $title =~ /Connect RPC$/i;
|
94 | 96 | $linkTitle = 'HTTP' if $linkTitle =~ /^HTTP Client and Server/i;
|
95 | 97 | $linkTitle = 'SQL' if $title =~ /SQL Databases$/i;
|
96 | 98 | $linkTitle = 'System use cases' if $title =~ /System .*?General Use Cases/i;
|
97 |
| - $linkTitle = $1 if $title =~ /GenAI (\w+)$/i; |
| 99 | + $linkTitle = $1 if $title =~ /Gen(?:erative) ?AI (\w+)$/i && $title !~ /Systems$/i; |
| 100 | + $linkTitle = $1 if $title =~ /(OpenAI) \w+$/i; |
98 | 101 |
|
99 | 102 | # Missing an `s` in "Semantic Convention"?
|
100 | 103 | if ($title =~ /^Semantic Convention\b/i and $title !~ /Groups$/i) {
|
101 | 104 | $title =~ s/Semantic Convention\b/$&s/ig;
|
102 | 105 | printf STDOUT "> $title -> $linkTitle - added 's' to 'Conventions'\n";
|
103 | 106 | }
|
104 |
| - $linkTitle =~ s/^Database Client //; |
| 107 | + $linkTitle =~ s/^(Database|Messaging) Client //; |
105 | 108 | if ($ARGV =~ /docs\/azure/) {
|
106 | 109 | $linkTitle =~ s/ Resource Logs?//i;
|
107 | 110 | $linkTitle =~ s/Azure //i;
|
|
114 | 117 | unless $ARGV =~ /gen-ai-metrics/;
|
115 | 118 | $linkTitle =~ s/ (components|guide|queries|supplementary information|systems|platform)$//i;
|
116 | 119 | $linkTitle =~ s/ \(command line interface\)//i;
|
| 120 | + $linkTitle =~ s/ resources$//i; |
| 121 | + $linkTitle =~ s/(Process) and process runtime$/$1/i; |
117 | 122 |
|
118 | 123 | $linkTitle = '.NET' if $linkTitle =~ /.net common language runtime/i;
|
119 | 124 | $linkTitle = 'CLI' if $linkTitle =~ /\(command line interface\) programs/i;
|
|
0 commit comments