File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
# !/usr/bin/perl -w -i
2
+ #
3
+ # cSpell:ignore oteps
2
4
3
5
$^W = 1;
4
6
169
171
next ;
170
172
}
171
173
}
172
- if (! $title ) {
174
+ if (! $title ) {
173
175
($title ) = /^# \s+(.*)/;
174
176
$linkTitle = ' ' ;
175
177
printFrontMatter() if $title ;
180
182
while (<>) { $lineNum ++; last if / <\/ details>/ ; }
181
183
next ;
182
184
}
183
- if (/ <!-- toc -->/ ) {
185
+ if (/ <!-- toc -->/ ) {
184
186
my $tocstop = ' <!-- tocstop -->' ;
185
187
while (<>) {
186
188
$lineNum ++;
227
229
# Rewrite paths that are outside of the spec folders as external links:
228
230
s |\.\.\/ README.md| $otelSpecRepoUrl /| g if $ARGV =~ / specification._index/ ;
229
231
s |\.\.\/ README.md| /docs/specs/otel/| if $ARGV =~ / specification\/ library-guidelines.md/ ;
230
-
231
- s | (\.\.\/ )+(experimental\/ [^)]+)| $otelSpecRepoUrl /tree/v$otelSpecVers /$2 | g ;
232
- s | (\.\.\/ )+(supplementary-guidelines\/ compatibility\/ [^)]+)| $otelSpecRepoUrl /tree/v$otelSpecVers /$2 | g ;
232
+ s {
233
+ (\.\.\/ )+
234
+ (
235
+ (?:oteps|supplementary-guidelines)\/
236
+ [^)]+
237
+ )
238
+ } { $otelSpecRepoUrl /tree/v$otelSpecVers /$2 } gx ;
233
239
234
240
s |\.\. /((?:examples/)?README\. md)| $otlpSpecRepoUrl /tree/v$otlpSpecVers /$1 | g if $ARGV =~ / ^tmp\/ otlp/ ;
235
241
You can’t perform that action at this time.
0 commit comments