Skip to content

Commit 634b785

Browse files
authored
bump tooling and update doc (#2)
1 parent 8e6236f commit 634b785

File tree

6 files changed

+147
-103
lines changed

6 files changed

+147
-103
lines changed

.github/workflows/main.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build SMPTE document
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
AWS_REGION: us-east-1
7+
AWS_S3_BUCKET: html-doc-pub
8+
AWS_ROLE: arn:aws:iam::189079736792:role/gh-actions-html-pub
9+
CANONICAL_LINK_PREFIX: https://doc.smpte-doc.org/
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'pull_request'
15+
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
16+
permissions:
17+
id-token: write
18+
contents: write
19+
pull-requests: write
20+
21+
steps:
22+
23+
- name: Checkout repo
24+
uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 0
27+
ref: ${{ github.event.pull_request.head.sha }}
28+
submodules: true
29+
30+
- name: Set repository name
31+
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
32+
33+
- name: Check out all branches with the exception of the current branch
34+
run: CUR_BRANCH=$(git rev-parse --abbrev-ref HEAD); for i in `git branch -a | grep remote | grep -v HEAD | grep -v ${CUR_BRANCH}`; do git branch --track ${i#remotes/origin/} $i; done
35+
36+
- name: Configure AWS Credentials
37+
uses: aws-actions/configure-aws-credentials@v1-node16
38+
with:
39+
role-to-assume: ${{ env.AWS_ROLE }}
40+
aws-region: ${{ env.AWS_REGION }}
41+
42+
- name: Build and deploy document (local)
43+
uses: ./tooling/workflows
44+
if: github.repository != 'SMPTE/html-pub'
45+
with:
46+
AWS_S3_REGION: ${{env.AWS_REGION}}
47+
AWS_S3_BUCKET: ${{env.AWS_S3_BUCKET}}
48+
AWS_S3_KEY_PREFIX: "${{env.REPOSITORY_NAME}}/"
49+
CANONICAL_LINK_PREFIX: ${{env.CANONICAL_LINK_PREFIX}}
50+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
51+
52+
- name: Build and deploy document (HTML Pub repo)
53+
uses: ./workflows
54+
if: github.repository == 'SMPTE/html-pub'
55+
with:
56+
AWS_S3_REGION: ${{env.AWS_REGION}}
57+
AWS_S3_BUCKET: ${{env.AWS_S3_BUCKET}}
58+
AWS_S3_KEY_PREFIX: "${{env.REPOSITORY_NAME}}/"
59+
CANONICAL_LINK_PREFIX: ${{env.CANONICAL_LINK_PREFIX}}
60+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SMPTE HTML Publication artifacts
2+
/build
3+
/package.json
4+
/package-lock.json
5+
6+
# MacOS
7+
.DS_Store
8+
._*
9+
10+
# Unix
11+
*~
12+
13+
# Windows
14+
Thumbs.db
15+
.vscode
16+
17+
# npm
18+
/node_modules

.smpte-build.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"latestEditionTag": null
3+
}

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
_This repository is *public*._
44

5-
Rendered at [https://smpte.github.io/ag-24/](https://smpte.github.io/ag-24/).
5+
* [Latest version](https://doc.smpte-doc.org/ag-24/main/)
6+
* [Redline against the latest edition](https://doc.smpte-doc.org/ag-24/main/pub-rl.html)
67

78
Please consult [CONTRIBUTING.md](./CONTRIBUTING.md), [CONFIDENTIALITY.md](./CONFIDENTIALITY.md), [LICENSE.md](./LICENSE.md) and
89
[PATENTS.md](./PATENTS.md) for important notices.

index.html doc/main.html

+63-101
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,21 @@
1-
<!DOCTYPE html lang="en">
1+
<!DOCTYPE html>
22
<html>
33

44
<head itemscope="itemscope" itemtype="http://smpte.org/standards/documents">
55
<meta charset="utf-8" />
66
<meta http-equiv="x-ua-compatible" content="ie=edge" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
<script src="tooling/smpte.js"></script>
9-
<link rel="stylesheet" href="tooling/smpte.css" />
10-
<!-- Do not edit above this line -->
11-
<!-- Start of editable section in header-->
12-
<!-- Update only content attributes in each meta element below as needed -->
8+
<script src="../tooling/smpte.js"></script>
139
<meta itemprop="pubType" content="AG" />
1410
<meta itemprop="pubNumber" content="24" />
1511
<meta itemprop="pubState" content="draft" />
1612
<meta itemprop="pubDateTime" content="20XX-XX-XX" />
17-
<!-- update text for title element as needed -->
1813
<title>MXF UL Style Guidelines</title>
19-
<!-- End of editable section in header-->
2014
</head>
2115

2216
<body>
2317

24-
<!-- Start of TOC - Do not remove or add anything in this section, generation is automated -->
25-
<section id="sec-toc"></section>
26-
<!-- End of TOC -->
27-
28-
<!-- Start of Forward - Do not remove or add anything in this section, generation is automated -->
29-
<section id="sec-foreword"></section>
30-
<!-- End of Forward -->
31-
32-
<!-- Start of Scope - Do not remove this section -->
3318
<section id="sec-scope">
34-
<!-- Add paragraphs in this section as needed for scope -->
3519
<p>
3620
This Administrative Guideline is a collection of guidelines and policies that are intended to help SMPTE Engineering Document authors and editors when defining Universal Labels.
3721
</p>
@@ -42,16 +26,8 @@
4226
<a href="#bib-smpte-ag-02"></a> describes file names, dates and file packages for documents in development. <a href="#bib-smpte-ag-16"></a> describes the Styles that are recommended for authoring Engineering Documents.
4327
</p>
4428
</section>
45-
<!-- End of Scope -->
4629

47-
<!-- Start of Conformance - Do not remove or add anything in this section, generation is automated -->
48-
<section id="sec-conformance"></section>
49-
<!-- End of Conformance -->
50-
51-
<!-- Start of Normative references - Do not remove this section -->
5230
<section id="sec-normative-references">
53-
54-
<!-- Add `li` sub elements as needed in this section as needed for references. If no Normative references, remove the entire `ul` element. Pre text for this section is auto generated based on `ul` present or not. -->
5531
<ul>
5632
<li><cite id="bib-smpte-standards-operation-manual">SMPTE Standards Operation Manual</cite>, v3.1
5733
<a>https://f.hubspotusercontent00.net/hubfs/5253154/SMPTE%20Standards%20OM%20v3.1.pdf</a></li>
@@ -67,7 +43,7 @@
6743
<a>https://f.hubspotusercontent00.net/hubfs/5253154/Standards%20Files/AG-04-EG-Engineering%20Guideline%20Template.dotx</a></li>
6844
<li><cite id="bib-smpte-ag-16">SMPTE AG-16</cite>, Standards Style Guide
6945
<a>https://smpte.github.io/ag-16/</a></li>
70-
<li><cite id="bib-smpte-ag-02">SMPTE AG-18</cite>, Metadata Registers Procedures
46+
<li><cite id="bib-smpte-ag-18">SMPTE AG-18</cite>, Metadata Registers Procedures
7147
<a>https://smpte.github.io/ag-18/</a></li>
7248
<li><cite id="bib=smpte-st-2009">SMPTE ST 2029:2009</cite> Uniform Resource Names for SMPTE Resources
7349
<a>https://doi.org/10.5594/SMPTE.ST2029.2009</a>
@@ -77,22 +53,9 @@
7753
</li>
7854
</ul>
7955
</section>
80-
<!-- End of Normative references -->
81-
82-
<!-- Start of Terms and definitions - Do not remove this section -->
83-
<section id="sec-terms-and-definitions">
84-
85-
<!-- Use the `ul` element to list external documents where Terms are defined (use same logic as referenced docs in the body of the document as example shows). Add `dt/dd` sub element pairs as needed for Terms to be defined internally in this document. Remove either the `ul` if no external Terms, or `dl` if no internally defined Terms. If no Terms needed to be defined at all, remove the both `ul` and `dl` elements. Pre text for this section is auto generated based on what elements are present. -->
86-
87-
</section>
88-
<!-- End of Terms and definitions -->
89-
90-
<!-- Start of editable area. Add sections as needed, following the examples below. `id` attribue is required for each section (and subsection) for linking into TOC. Headers are required for labeling each section. Use `h2` element for top level, and `h3`, `h4`, etc. for nested sub sections as needed. For Annexes, add `class="annex"` to the top level section element, as example shows. Numbering is auto generated, including nesting. -->
91-
9256

9357
<section id="sec-universal-labels">
9458
<h2>Universal Labels</h2>
95-
9659
<section id="sec-style">
9760
<h3>Style Guidelines</h3>
9861
<p>
@@ -117,8 +80,6 @@ <h3>Defining individual ULs</h3>
11780
<a href="#table-preferred-ul"></a> shows an example of the preferred way for defining ULs in MXF documents. It is a modified version of Table 2 in SMPTE ST 2094-2.
11881
</p>
11982

120-
121-
12283
<table id="table-preferred-ul">
12384
<caption>Example <em>Preferred</em> Table 2 updated from SMPTE ST 2094-2 – Group Node and Set Key for DMCVT Sets</caption>
12485
<thead>
@@ -157,7 +118,6 @@ <h3>Defining individual ULs</h3>
157118
</tbody>
158119
</table>
159120

160-
161121
<dl>
162122
<dt>Item Name</dt>
163123
<dd>
@@ -188,9 +148,9 @@ <h3>Defining individual ULs</h3>
188148
The following example shows a UL description from SMPTE ST 382-4 (<a href="#table-sound-coding"></a>, <a href="#table-sound-coding-bytes"></a>) followed by the preferred alternative representation (<a href="#table-sound-compression"></a>, <a href="#table-aac-audio-bytes"></a>). Note that in the preferred representation, the second table is no longer part of the UL description and only serves to provide the common names of the AAC profiles. In most cases a second table is not required.
189149
</p>
190150

191-
<p class="example">
151+
<div class="example">
192152
<div style="border: 1px solid; padding-left: 10px; padding-right: 10px; background-color: lightgrey;">
193-
153+
194154
<table id="table-sound-coding">
195155
<caption>Example – <em>Original</em> "Table 5 – Sound Essence Coding Label Value for AAC"</caption>
196156
<thead>
@@ -458,7 +418,7 @@ <h3>Defining individual ULs</h3>
458418
<p class="note"><code>AAC General Name</code> is the commonly used terminology.</p>
459419

460420
</div>
461-
</p>
421+
</div>
462422

463423
</section>
464424

@@ -477,9 +437,9 @@ <h3>Defining groups and sets</h3>
477437
Two worked examples are shown in <a href="#table-aac-sub"></a>/<a href="#table-aac-key"></a> and <a href="#table-aac-sub-ul"></a>/<a href="#table-aac-sub-elements"></a>. The examples marked ‘preferred’ are preferred since it is facilitating text search and checking:
478438
</p>
479439

480-
<p class="example">
440+
<div class="example">
481441
<div style="border: 1px solid; padding-left: 10px; padding-right: 10px; background-color: lightgrey;">
482-
442+
483443
<table id="table-aac-sub">
484444
<caption>Example – <em>Original</em> "Table 1 – AAC SubDescriptor"</caption>
485445
<thead>
@@ -512,7 +472,7 @@ <h3>Defining groups and sets</h3>
512472
<td></td>
513473
</tr>
514474
<tr>
515-
<td colspan="7"><center>All items from the abstract SubDescriptor as specified in SMPTE ST 377-1 annex B.3 „SubDescriptor</center></td>
475+
<td colspan="7">All items from the abstract SubDescriptor as specified in SMPTE ST 377-1 annex B.3 „SubDescriptor</td>
516476
</tr>
517477
<tr>
518478
<td>AAC Sampling Frequency</td>
@@ -680,7 +640,7 @@ <h3>Defining groups and sets</h3>
680640
</table>
681641

682642
</div>
683-
</p>
643+
</div>
684644

685645
<dl>
686646
<dt>Symbol</dt>
@@ -713,6 +673,7 @@ <h3>Defining groups and sets</h3>
713673
<p>
714674
Extra explanatory free-form text outside the summary table is encouraged to clearly
715675
</p>
676+
716677
</section>
717678

718679
<section id="sec-reffering">
@@ -740,6 +701,7 @@ <h3>Referring to ULs</h3>
740701
<p>
741702
This style can then be applied to all Symbols and other formatting such as Bold, Size, Color will be inherited accordingly. MXF document should use the element Symbol in body text to refer to an element. If clarity is required, the following phrasing may be used:
742703
</p>
704+
743705
<pre>
744706
The element with symbol AACSubDescriptor should ...
745707
</pre>
@@ -757,9 +719,8 @@ <h3>Summarizing ULs in a document</h3>
757719
<p>
758720
Text indicating that in case of conflict with the body text of the main document, then the body text is considered the definitive reference.
759721
</p>
760-
</section>
761722

762-
<p class="example">
723+
<div class="example">
763724
<div style="border: 1px solid; padding-left: 10px; padding-right: 10px; background-color: lightgrey;">
764725

765726
<h3>Annex B – ULs Registered in this Document (Informative)</h3>
@@ -768,58 +729,59 @@ <h3>B.1 Elements registered in this document</h3>
768729
The XML document below is the mature submission for the Elements Register. In case of conflict with the body text of this document, the body text should be considered the normative reference.
769730
</p>
770731

771-
<pre>
772-
773-
<code>&lt;!-- Metadata tags to support XML file editing --&gt;
774-
&lt;!-- --&gt;
775-
&lt;!-- Please fill these in if you edit this XML file --&gt;
776-
&lt;!-- author=Oliver Morgan and Patrick Waddell --&gt;
777-
&lt;!-- edit_date= 20161201--&gt;
778-
&lt;!-- summary_of_edit= add elements for AAC SubDescriptor--&gt;
779-
&lt;!-- author=Patrick Waddell --&gt;
780-
&lt;!-- edit_date= 20170210--&gt;
781-
&lt;!-- summary_of_edit= minor edits for Registrar--&gt;
782-
&lt;!-- --&gt;
783-
&lt;!-- DO NOT EDIT THIS TAG --&gt;
784-
&lt;!-- master_commit_tag=v000000075 --&gt;
785-
&lt;!-- DO NOT EDIT THIS TAG --&gt;
786-
787-
&lt;ElementsRegister xmlns="http://www.smpte-ra.org/schemas/335/2012"&gt;
788-
&lt;Entries&gt;
789-
&lt;Entry&gt;
790-
&lt;Register&gt;Elements&lt;/Register&gt;
791-
&lt;NamespaceName&gt;http://www.smpte-ra.org/reg/335/2012&lt;/NamespaceName&gt;
792-
&lt;Symbol&gt;AACChannelConfiguration&lt;/Symbol&gt;ss
793-
&lt;UL&gt;urn:smpte:ul:060e2b34.0101010e.04020403.01030000&lt;/UL&gt;
794-
&lt;Kind&gt;LEAF&lt;/Kind&gt;
795-
&lt;Name&gt;AAC Channel Configuration&lt;/Name&gt;
796-
&lt;Definition&gt;Low order 4 bits of Channel Configuration. Upper 4 bits are zeros&lt;/Definition&gt;
797-
&lt;DefiningDocument&gt;SMPTE ST 381-4&lt;/DefiningDocument&gt;
798-
&lt;IsDeprecated&gt;false&lt;/IsDeprecated&gt;
799-
&lt;ContextScope&gt;DefinedContext&lt;/ContextScope&gt;
800-
&lt;Type&gt;urn:smpte:ul:060e2b34.01040101.01010100.00000000&lt;/Type&gt;
801-
&lt;/Entry&gt;
802-
&lt;Entry&gt;
803-
&lt;Register&gt;Elements&lt;/Register&gt;
804-
&lt;NamespaceName&gt;http://www.smpte-ra.org/reg/335/2012&lt;/NamespaceName&gt;
805-
&lt;Symbol&gt;AACSamplingFrequency&lt;/Symbol&gt;
806-
&lt;UL&gt;urn:smpte:ul:060e2b34.0101010e.04020403.01040000&lt;/UL&gt;
807-
&lt;Kind&gt;LEAF&lt;/Kind&gt;
808-
&lt;Name&gt;AAC Sampling Frequency&lt;/Name&gt;
809-
&lt;Definition&gt;Low order 4 bits of Sampling Frequency Index. Upper 4 bits are zeros&lt;/Definition&gt;
810-
&lt;DefiningDocument&gt;SMPTE ST 381-4&lt;/DefiningDocument&gt;
811-
&lt;IsDeprecated&gt;false&lt;/IsDeprecated&gt;
812-
&lt;ContextScope&gt;DefinedContext&lt;/ContextScope&gt;
813-
&lt;Type&gt;urn:smpte:ul:060e2b34.01040101.01010100.00000000&lt;/Type&gt;
814-
&lt;/Entry&gt;
815-
&lt;/Entries&gt;
816-
&lt;/ElementsRegister&gt;</code>
817-
</pre>
732+
<pre>
818733

734+
&lt;!-- Metadata tags to support XML file editing --&gt;
735+
&lt;!-- --&gt;
736+
&lt;!-- Please fill these in if you edit this XML file --&gt;
737+
&lt;!-- author=Oliver Morgan and Patrick Waddell --&gt;
738+
&lt;!-- edit_date= 20161201--&gt;
739+
&lt;!-- summary_of_edit= add elements for AAC SubDescriptor--&gt;
740+
&lt;!-- author=Patrick Waddell --&gt;
741+
&lt;!-- edit_date= 20170210--&gt;
742+
&lt;!-- summary_of_edit= minor edits for Registrar--&gt;
743+
&lt;!-- --&gt;
744+
&lt;!-- DO NOT EDIT THIS TAG --&gt;
745+
&lt;!-- master_commit_tag=v000000075 --&gt;
746+
&lt;!-- DO NOT EDIT THIS TAG --&gt;
747+
748+
&lt;ElementsRegister xmlns="http://www.smpte-ra.org/schemas/335/2012"&gt;
749+
&lt;Entries&gt;
750+
&lt;Entry&gt;
751+
&lt;Register&gt;Elements&lt;/Register&gt;
752+
&lt;NamespaceName&gt;http://www.smpte-ra.org/reg/335/2012&lt;/NamespaceName&gt;
753+
&lt;Symbol&gt;AACChannelConfiguration&lt;/Symbol&gt;ss
754+
&lt;UL&gt;urn:smpte:ul:060e2b34.0101010e.04020403.01030000&lt;/UL&gt;
755+
&lt;Kind&gt;LEAF&lt;/Kind&gt;
756+
&lt;Name&gt;AAC Channel Configuration&lt;/Name&gt;
757+
&lt;Definition&gt;Low order 4 bits of Channel Configuration. Upper 4 bits are zeros&lt;/Definition&gt;
758+
&lt;DefiningDocument&gt;SMPTE ST 381-4&lt;/DefiningDocument&gt;
759+
&lt;IsDeprecated&gt;false&lt;/IsDeprecated&gt;
760+
&lt;ContextScope&gt;DefinedContext&lt;/ContextScope&gt;
761+
&lt;Type&gt;urn:smpte:ul:060e2b34.01040101.01010100.00000000&lt;/Type&gt;
762+
&lt;/Entry&gt;
763+
&lt;Entry&gt;
764+
&lt;Register&gt;Elements&lt;/Register&gt;
765+
&lt;NamespaceName&gt;http://www.smpte-ra.org/reg/335/2012&lt;/NamespaceName&gt;
766+
&lt;Symbol&gt;AACSamplingFrequency&lt;/Symbol&gt;
767+
&lt;UL&gt;urn:smpte:ul:060e2b34.0101010e.04020403.01040000&lt;/UL&gt;
768+
&lt;Kind&gt;LEAF&lt;/Kind&gt;
769+
&lt;Name&gt;AAC Sampling Frequency&lt;/Name&gt;
770+
&lt;Definition&gt;Low order 4 bits of Sampling Frequency Index. Upper 4 bits are zeros&lt;/Definition&gt;
771+
&lt;DefiningDocument&gt;SMPTE ST 381-4&lt;/DefiningDocument&gt;
772+
&lt;IsDeprecated&gt;false&lt;/IsDeprecated&gt;
773+
&lt;ContextScope&gt;DefinedContext&lt;/ContextScope&gt;
774+
&lt;Type&gt;urn:smpte:ul:060e2b34.01040101.01010100.00000000&lt;/Type&gt;
775+
&lt;/Entry&gt;
776+
&lt;/Entries&gt;
777+
&lt;/ElementsRegister&gt;
778+
</pre>
819779
</div>
820-
</p>
821-
780+
</div>
822781

823782
</section>
783+
784+
</section>
785+
824786
</body>
825787
</html>

tooling

Submodule tooling updated 50 files

0 commit comments

Comments
 (0)