Skip to content

Commit

Permalink
Adjust ReSpec template and logic for OS stage (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
berezovskyi authored Jun 3, 2021
1 parent a63533f commit 9727d3f
Show file tree
Hide file tree
Showing 8 changed files with 9,628 additions and 24 deletions.
9,607 changes: 9,607 additions & 0 deletions builds/respec-oasis-common-2.1.25.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion examples/template-spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
// PSD Project Specification Draft
// PSPRD Project Specification Public Review Draft
// PS Project Specification
// COS Candidate OASIS Standard
// OS OASIS Standard
// Errata Approved Errata
// PND Project Note Draft
Expand Down
1 change: 0 additions & 1 deletion js/biblio.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ define(
, "WD": "Working Draft"
, "PSD": "Project Specification Draft"
, "PS": "Project Specification"
, "COS": "Candidate OASIS Standard"
, "OS": "OASIS Standard"
, "Errata": "Approved Errata"
, "PND": "Project Note Draft"
Expand Down
14 changes: 7 additions & 7 deletions js/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ define(
WD: "WD"
, PSD: "PSD"
, PS: "PS"
, COS: "COS"
, OS: "OS"
, Errata: "Errata"
, PND: "PND"
Expand All @@ -141,7 +140,6 @@ define(
WD: "oasis:WD",
PSD: "oasis:PSD",
PS: "oasis:PS",
COS: "oasis:COS",
OS: "oasis:OS",
Errata: "oasis:Errata",
PND: "oasis:PND",
Expand All @@ -151,14 +149,13 @@ define(
WD: "Working Draft"
, PSD: "Project Specification Draft"
, PS: "Project Specification"
, COS: "Candidate OASIS Standard"
, OS: "OASIS Standard"
, Errata: "Approved Errata"
, PND: "Project Note Draft"
, PN: "Project Note"
, PRD: "Public Review Draft"
}
, stdTrackStatus: ["WD", "PSD", "PS", "COS", "OS", "Errata"]
, stdTrackStatus: ["WD", "PSD", "PS", "OS", "Errata"]
, noTrackStatus: ["PND", "PN"]
, unPublished: ["WD"]

Expand Down Expand Up @@ -231,7 +228,6 @@ define(
conf.isWD = (conf.specStatus === "WD");
conf.isPSD = (conf.specStatus === "PSD");
conf.isPS = (conf.specStatus === "PS");
conf.isCOS = (conf.specStatus === "COS");
conf.isOS = (conf.specStatus === "OS");
conf.isAE = (conf.specStatus === "Errata");

Expand All @@ -241,7 +237,7 @@ define(
conf.notYetStd = (conf.isStdTrack && conf.specStatus !== "OS");
conf.isStd = (conf.isStdTrack && conf.specStatus === "OS");
conf.notStd = (conf.specStatus !== "OS");
conf.prependOASIS = true;
conf.prependOASIS = true; //always show logo

// Derive specification URIs
if (!conf.thisVersion) {
Expand Down Expand Up @@ -326,8 +322,12 @@ define(
}
}
}
conf.docStatus = conf.textStatus + " " + conf.revision;

if (!conf.isStd) {
conf.docStatus = conf.textStatus + " " + conf.revision;
} else {
conf.docStatus = conf.textStatus;
}
if (conf.previousMaturity) {
conf.previousDocStatus = this.status2text[conf.previousMaturity];
if (conf.previousPublishDate) {
Expand Down
2 changes: 1 addition & 1 deletion js/templates/headers.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h2>
<span class='citationTitle'>{{title}}</span>.
Edited by {{editorsHTML}}.
{{publishHumanDate}}.
{{#if prependOASIS}}OASIS {{/if}} {{textStatus}} {{revision}}.
{{#unless isStd}}OASIS {{/unless}} {{textStatus}}{{#unless isStd}} {{revision}}{{/unless}}.
{{#if thisVersion}} <a class='u-url' href='{{thisVersion}}'>{{thisVersion}}</a>.{{/if}}
{{#if latestVersion}} Latest stage: <a href='{{latestVersion}}'>{{latestVersion}}</a>.{{/if}}
</p>
Expand Down
2 changes: 1 addition & 1 deletion js/templates/sotd.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{{sotdCustomParagraph}}}
{{else}}
<p>
This document was last revised or approved by the <a href='{{wgURI}}'>{{wg}}</a> on the above date.
This document was last revised or approved by the {{#if isStd}}membership of OASIS{{else}}<a href='{{wgURI}}'>{{wg}}</a>{{/if}} on the above date.
The level of approval is also listed above.
Check the “Latest stage” location noted above for possible later revisions of this document.
Any other numbered Versions and other technical work produced by the Open Project are listed at
Expand Down
2 changes: 1 addition & 1 deletion tools/package-oasis.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "respec",
"version": "2.1.24",
"version": "2.1.25",
"description": "Specification Edition Support Tool (OASIS Profile).",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 9727d3f

Please sign in to comment.