File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -272,13 +272,14 @@ for (let l in lines) {
272
272
// fix relative links (to examples)
273
273
if ( ! inCodeBlock && line . indexOf ( '](../examples/' ) >= 0 ) {
274
274
line = line . replace ( / \( \. \. \/ e x a m p l e s \/ ( [ ^ ) ] + ) \) / g, function ( match , group1 ) {
275
+ console . warn ( "example link" , group1 ) ;
275
276
//TODO: group1 = group1.replace('.yaml','.html');
276
277
return `(https://learn.openapis.org/examples/${ group1 } )` ;
277
278
} )
278
279
} else if ( ! inCodeBlock && line . indexOf ( '](../' ) >= 0 ) {
279
280
const regExp = / \( ( \. \. [ ^ ) ] + ) \) / g;
280
281
line = line . replace ( regExp , function ( match , group1 ) {
281
- console . warn ( 'Fixing relative link' , group1 , line ) ;
282
+ console . warn ( 'relative link' , group1 ) ;
282
283
return '(' + url . resolve ( 'https://github.com/OAI/OpenAPI-Specification/tree/main/versions/foo' , group1 ) + ')' ;
283
284
} ) ;
284
285
}
You can’t perform that action at this time.
0 commit comments