Skip to content

Commit 9e14206

Browse files
committed
Emit biblio.json during build so downstream proposals can build on this one
Add --write-biblio build/biblio.json to the ecmarkup invocation, and set the spec's location metadata so biblio entries resolve to absolute URLs. Since the existing publish workflow deploys the build/ directory to gh-pages, the biblio will be available at https://tc39.es/proposal-fma/biblio.json for other proposals to load via ecmarkup's --load-biblio.
1 parent 51146f9 commit 9e14206

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"start": "npm run build-loose -- --watch",
77
"build": "npm run build-loose -- --strict",
8-
"build-loose": "node -e 'fs.mkdirSync(\"build\", { recursive: true })' && ecmarkup --load-biblio @tc39/ecma262-biblio --verbose spec.emu build/index.html --lint-spec"
8+
"build-loose": "node -e 'fs.mkdirSync(\"build\", { recursive: true })' && ecmarkup --load-biblio @tc39/ecma262-biblio --write-biblio build/biblio.json --verbose spec.emu build/index.html --lint-spec"
99
},
1010
"homepage": "https://github.com/tc39/template-for-proposals#readme",
1111
"repository": {

spec.emu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
title: Fused Multiply Add
88
stage: 2
99
contributors: Waldemar Horwat
10+
location: https://tc39.es/proposal-fma/
1011
</pre>
1112

1213
<emu-clause id="sec-fmamultiply" type="abstract operation">

0 commit comments

Comments
 (0)