Skip to content

Commit

Permalink
v2.1.27, more OASIS Standards fixes (#56)
Browse files Browse the repository at this point in the history
* Move the notice about English version under the Status; fixes #52

Signed-off-by: Andrew Berezovskyi <andrew@berezovskyi.me>

* Use ISO date format and UTC TZ

Signed-off-by: Andrew Berezovskyi <andrew@berezovskyi.me>
  • Loading branch information
berezovskyi committed Jul 2, 2021
1 parent 112c804 commit 68caeaa
Show file tree
Hide file tree
Showing 7 changed files with 9,620 additions and 15 deletions.
9,607 changes: 9,607 additions & 0 deletions builds/respec-oasis-common-2.1.27.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions builds/respec-oasis-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/headers.js
Expand Up @@ -314,7 +314,7 @@ define(
conf.publishHumanDate = "";
}
conf.publishHumanDate = conf.publishHumanDate + utils.humanDate(conf.publishDate);
conf.dashDate = utils.concatDate(conf.publishDate, "-");
conf.dashDate = conf.publishDate.toISOString();
conf.publishISODate = utils.isoDate(conf.publishDate) ;
} else {
if(conf.isStdTrack && !conf.isWD) {
Expand Down
6 changes: 0 additions & 6 deletions js/templates/headers.html
Expand Up @@ -201,10 +201,4 @@ <h2>
{{{alternatesHTML}}}
</p>
{{/if}}
{{#if isStd}}
<p>
The English version of this specification is the only normative version. Non-normative
translations may also be available.
</p>
{{/if}}
</div>
4 changes: 4 additions & 0 deletions js/templates/sotd.html
Expand Up @@ -27,6 +27,10 @@
<a href='mailto:{{wgPublicList}}'>{{wgPublicList}}</a>.
</p>
<p>
{{#if isStd}}
The English version of this specification is the only normative version. Non-normative
translations may also be available.
{{/if}}
Note that any machine-readable content
(<a href="https://www.oasis-open.org/policies-guidelines/tc-process#wpComponentsCompLang">Computer Language Definitions</a>)
declared Normative for this Work Product is provided in separate plain text files.
Expand Down
2 changes: 1 addition & 1 deletion js/utils.js
Expand Up @@ -144,7 +144,7 @@ define(

// takes a YYYY-MM-DD date and returns a Date object for it
, parseSimpleDate: function (str) {
return new Date(str.substr(0, 4), (str.substr(5, 2) - 1), str.substr(8, 2));
return new Date(str);
}

// takes what document.lastModified returns and produces a Date object for it
Expand Down
2 changes: 1 addition & 1 deletion tools/package-oasis.json
@@ -1,6 +1,6 @@
{
"name": "respec",
"version": "2.1.26",
"version": "2.1.27",
"description": "Specification Edition Support Tool (OASIS Profile).",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 68caeaa

Please sign in to comment.