Skip to content

Commit

Permalink
Fix broken links
Browse files Browse the repository at this point in the history
Also add automatic detection of ReSpec errors moving forward
  • Loading branch information
dontcallmedom committed Jun 13, 2024
1 parent 373654f commit 553c8fb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Validate and Auto Publish

on:
push:
paths:
- index.html
branches:
- main
pull_request: {}

jobs:
validate-and-publish:
name: Validate and Publish
runs-on: ubuntu-20.04 # only linux supported at present
steps:
- uses: actions/checkout@v4
- uses: w3c/spec-prod@v2 # use the action
with:
TOOLCHAIN: respec
W3C_NOTIFICATIONS_CC: "[email protected]"
VALIDATE_LINKS: false
10 changes: 4 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,8 @@ <h3>Algorithms</h3>
<li>
<p>Let <var>descriptor</var> be a {{PermissionDescriptor}}
with its {{PermissionDescriptor/name}} member set to the permission name
associated with <var>kind</var> (e.g. {{PermissionName/"camera"}} for
<code>"video"</code>, {{PermissionName/"microphone"}} for <code>"audio"</code>), and,
optionally, consider its {{DevicePermissionDescriptor/deviceId}} member set to any appropriate
device's <var>deviceId</var>.</p>
associated with <var>kind</var> (e.g. [="camera"=] for
<code>"video"</code>, [="microphone"=] for <code>"audio"</code>).</p>
</li>
<li>
<p>If the number of unique devices sourcing tracks of
Expand Down Expand Up @@ -402,7 +400,7 @@ <h3>Transferable MediaStreamTrack</h3>
<li><p>Set <var>dataHolder</var>.`[[constraints]]` to <var>value</var> active constraints.</p></li>
<li><p>Set <var>dataHolder</var>.`[[contentHint]]` to <var>value</var> application-set content hint.</p></li>
<li><p>Set <var>value</var>.`[[IsDetached]]` to <code>true</code>.</p></li>
<li><p>Set <var>value</var>.{{MediaStreamTrack/[[ReadyState]]}} to <a data-cite="!mediacapture-streams/#track-ended">"ended"</a> (without stopping the underlying source or firing an `ended` event).</p></li>
<li><p>Set <var>value</var>.<a data-cite="mediacapture-streams#dfn-readystate" data-link-type="attribute">[[\ReadyState]]</a> to {{MediaStreamTrackState/"ended"}} (without stopping the underlying source or firing an `ended` event).</p></li>
</ol>
</div>
<div><p>{{MediaStreamTrack}} <a data-cite="!HTML/#transfer-receiving-steps">transfer-receiving steps</a>, given <var>dataHolder</var> and <var>track</var>, are:</p>
Expand All @@ -414,7 +412,7 @@ <h3>Transferable MediaStreamTrack</h3>
<li><p>Initialize <var>track</var>.{{MediaStreamTrack/enabled}} to <var>dataHolder</var>.`[[enabled]]`.</p></li>
<li><p>Initialize <var>track</var>.{{MediaStreamTrack/muted}} to <var>dataHolder</var>.`[[muted]]`.</p></li>
<li><p>Set <var>track</var> application-set content hint to <var>dataHolder</var>.`[[contentHint]]`.</p></li>
<li><p>[=MediaStreamTrack/Initialize the underlying source=] of <var>track</var> to <var>dataHolder</var>.`[[source]]`.</p></li>
<li><p>[=Initialize the underlying source=] of <var>track</var> to <var>dataHolder</var>.`[[source]]`.</p></li>
<li><p>Set <var>track</var>'s constraints to <var>dataHolder</var>.`[[constraints]]`.</p></li>
</ol>
</div>
Expand Down

0 comments on commit 553c8fb

Please sign in to comment.