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