Skip to content

Commit afa28c4

Browse files
committed
Auto-generated commit
1 parent b256346 commit afa28c4

File tree

35 files changed

+1183
-760
lines changed

35 files changed

+1183
-760
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2021 The Stdlib Authors.
4+
# Copyright (c) 2023 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@ jobs:
4646
publish:
4747

4848
# Define display name:
49-
name: 'Publish package to npm'
49+
name: 'Publish top-level package to npm'
5050

5151
# Define the type of virtual host machine on which to run the job:
5252
runs-on: ubuntu-latest
@@ -103,54 +103,6 @@ jobs:
103103
SLUG=${{ github.repository }}
104104
git push "https://$GITHUB_ACTOR:[email protected]/$SLUG.git" --follow-tags
105105
106-
# Remove CLI:
107-
- name: 'Remove CLI'
108-
if: ${{ github.ref == 'refs/heads/main' }}
109-
run: |
110-
# Exit if the package does not have a CLI:
111-
if ! grep -q '"bin":' package.json; then
112-
exit 0
113-
fi
114-
rm -rf ./bin/cli
115-
rm -f test/test.cli.js
116-
rm -f etc/cli_opts.json
117-
rm -f docs/usage.txt
118-
119-
# For all dependencies, check in all *.js files if they are still used; if not, remove them:
120-
jq -r '.dependencies | keys[]' ./package.json | while read -r dep; do
121-
dep=$(echo "$dep" | xargs)
122-
if ! grep -q "$dep" lib/** && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
123-
jq --indent 2 "del(.dependencies[\"$dep\"])" ./package.json > ./package.json.tmp
124-
mv ./package.json.tmp ./package.json
125-
fi
126-
done
127-
jq -r '.devDependencies | keys[]' ./package.json | while read -r dep; do
128-
if [[ "$dep" != "@stdlib"* ]]; then
129-
continue
130-
fi
131-
dep=$(echo "$dep" | xargs)
132-
if ! grep -q "$dep" lib/** && ! grep -q -s "$dep" manifest.json && ! grep -q -s "$dep" include.gypi; then
133-
jq --indent 2 "del(.devDependencies[\"$dep\"])" ./package.json > ./package.json.tmp
134-
mv ./package.json.tmp ./package.json
135-
fi
136-
done
137-
138-
# Remove CLI section:
139-
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?<section class=\"cli\">[\s\S]+?<\!\-\- \/.cli \-\->//"
140-
141-
# Remove CLI from package.json:
142-
jq -r 'del(.bin)' package.json > package.json.tmp
143-
mv package.json.tmp package.json
144-
145-
# Add entry for CLI package to See Also section of README.md:
146-
cliPkgName=$(jq -r '.name' package.json)-cli
147-
escapedPkg=$(echo "$cliPkgName" | sed -e 's/\//\\\//g')
148-
escapedPkg=$(echo "$escapedPkg" | sed -e 's/\@/\\\@/g')
149-
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"related\">(?:\n\n\* \* \*\n\n## See Also\n\n)?/<section class=\"related\">\n\n## See Also\n\n- <span class=\"package-name\">[\`$escapedPkg\`][$escapedPkg]<\/span><span class=\"delimiter\">: <\/span><span class=\"description\">CLI package for use as a command-line utility.<\/span>\n/"
150-
151-
# Add link definition for CLI package to README.md:
152-
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/<section class=\"links\">/<section class=\"links\">\n\n[$escapedPkg]: https:\/\/www.npmjs.com\/package\/$escapedPkg/"
153-
154106
# Replace GitHub MathJax equations with SVGs:
155107
- name: 'Replace GitHub MathJax equations with SVGs'
156108
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
154154
[npm-image]: http://img.shields.io/npm/v/@stdlib/strided.svg
155155
[npm-url]: https://npmjs.org/package/@stdlib/strided
156156

157-
[test-image]: https://github.com/stdlib-js/strided/actions/workflows/test.yml/badge.svg?branch=v0.1.1
158-
[test-url]: https://github.com/stdlib-js/strided/actions/workflows/test.yml?query=branch:v0.1.1
157+
[test-image]: https://github.com/stdlib-js/strided/actions/workflows/test.yml/badge.svg?branch=main
158+
[test-url]: https://github.com/stdlib-js/strided/actions/workflows/test.yml?query=branch:main
159159

160160
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/strided/main.svg
161161
[coverage-url]: https://codecov.io/github/stdlib-js/strided?branch=main

base/binary-dtype-signatures/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ console.log( str );
142142

143143
<section class="related">
144144

145+
* * *
146+
147+
## See Also
148+
149+
- <span class="package-name">[`@stdlib/strided/base/binary-signature-callbacks`][@stdlib/strided/base/binary-signature-callbacks]</span><span class="delimiter">: </span><span class="description">assign callbacks to binary interfaces according to type promotion rules.</span>
150+
145151
</section>
146152

147153
<!-- /.related -->
@@ -152,7 +158,13 @@ console.log( str );
152158

153159
[@stdlib/strided/dtypes]: https://github.com/stdlib-js/strided/tree/main/dtypes
154160

155-
[@stdlib/ndarray/promotion-rules]: https://github.com/stdlib-js/stdlib
161+
[@stdlib/ndarray/promotion-rules]: https://github.com/stdlib-js/ndarray-promotion-rules
162+
163+
<!-- <related-links> -->
164+
165+
[@stdlib/strided/base/binary-signature-callbacks]: https://github.com/stdlib-js/strided/tree/main/base/binary-signature-callbacks
166+
167+
<!-- </related-links> -->
156168

157169
</section>
158170

base/binary-signature-callbacks/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ var clbks = callbacks( table, sigs );
151151

152152
<section class="related">
153153

154+
* * *
155+
156+
## See Also
157+
158+
- <span class="package-name">[`@stdlib/strided/base/binary-dtype-signatures`][@stdlib/strided/base/binary-dtype-signatures]</span><span class="delimiter">: </span><span class="description">generate a list of binary interface signatures from strided array data types.</span>
159+
154160
</section>
155161

156162
<!-- /.related -->
@@ -159,7 +165,13 @@ var clbks = callbacks( table, sigs );
159165

160166
<section class="links">
161167

162-
[@stdlib/ndarray/promotion-rules]: https://github.com/stdlib-js/stdlib
168+
[@stdlib/ndarray/promotion-rules]: https://github.com/stdlib-js/ndarray-promotion-rules
169+
170+
<!-- <related-links> -->
171+
172+
[@stdlib/strided/base/binary-dtype-signatures]: https://github.com/stdlib-js/strided/tree/main/base/binary-dtype-signatures
173+
174+
<!-- </related-links> -->
163175

164176
</section>
165177

0 commit comments

Comments
 (0)