Skip to content

Commit a49dcb2

Browse files
committed
fixup! Combine build.sh and build-src.sh
1 parent d121c98 commit a49dcb2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"license": "Apache-2.0",
1515
"scripts": {
1616
"build": "bash ./scripts/md2html/build.sh",
17-
"build-src": "npm run validate-markdown && bash ./scripts/md2html/build.sh oas",
17+
"build-src": "npm run validate-markdown && bash ./scripts/md2html/build.sh src",
1818
"test": "c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh",
1919
"validate-markdown": "npx mdv src/oas.md && npx markdownlint-cli src/oas.md"
2020
},

scripts/md2html/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# run this script from the root of the repo
66
# It is designed to be run by a GitHub workflow
77

8-
# Usage: build.sh [version | "latest" | "oas"]
8+
# Usage: build.sh [version | "latest" | "src"]
99
# When run with no arguments, it builds artifacts for all published specification versions.
1010
# It may also be run with a specific version argument, such as "3.1.1" or "latest"
11-
# Finally, it may be run with "oas" to build "src/oas.md"
11+
# Finally, it may be run with "src" to build "src/oas.md"
1212
#
1313
# It contains bashisms
1414

@@ -56,7 +56,7 @@ if [ -z "$1" ]; then
5656
specifications=$(ls -1 versions/[23456789].*.md | sort -r)
5757
elif [ "$1" = "latest" ]; then
5858
specifications=$(ls -1 versions/$latest.md)
59-
elif [ "$1" = "oas" ]; then
59+
elif [ "$1" = "src" ]; then
6060
specifications="src/oas.md"
6161
else
6262
specifications=$(ls -1 versions/$1.md)
@@ -70,7 +70,7 @@ for specification in $specifications; do
7070
destination="$deploydir/$version.html"
7171
tempfile="$deploydir/temp/$version.html"
7272

73-
if [ "$1" = "oas" ]; then
73+
if [ "$1" = "src" ]; then
7474
maintainers="EDITORS.md"
7575
else
7676
maintainers="history/MAINTAINERS_v$version.md"

0 commit comments

Comments
 (0)