Skip to content

Commit

Permalink
build: turn comments into debug calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Nov 9, 2023
1 parent 90eceac commit 2d6b2bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/_tools/scripts/publish_packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1243,17 +1243,17 @@ function publish( pkg, clbk ) {
}
}

// Replace GitHub MathJax equations with SVGs:
debug( 'Replace GitHub MathJax equations with SVGs...' );
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/```math\\n([\\s\\S]+?)\\n```\\n\\n//g\'';
shell( command, opts );
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/<!-- <div class="equation"(.*)(<\\/div>\\s*-->)/<div class="equation"$1<\\/div>/sg\'';
shell( command, opts );

// Replace GitHub links to individual packages with npm links:
debug( 'Replace GitHub links to individual packages with npm links...' );
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 sed -Ei \'/tree\\/main/b; s/@stdlib\\/([^:]*)\\]: https:\\/\\/github.com\\/stdlib-js/@stdlib\\/\\1\\]: https:\\/\\/www.npmjs.com\\/package\\/@stdlib/g\'';
shell( command, opts );

// Replace list with links to other branches from installation section:
debug( 'Replace list with links to other branches from installation section...' );
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe "s/\\`\\`\\`\n\nAlternatively,[^<]+<\\/section>/\\`\\`\\`\n\n<\\/section>/"';
shell( command, opts );

Expand Down

0 comments on commit 2d6b2bc

Please sign in to comment.