Skip to content

Commit a0513ee

Browse files
committed
Merge pull request #25 from jaredhoberock/master
Support for PDTS output
2 parents 8e6839d + 54be053 commit a0513ee

File tree

7 files changed

+127
-24
lines changed

7 files changed

+127
-24
lines changed

bower_components/cxx-html-doc-framework/titlepage.html

Lines changed: 66 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,37 +36,84 @@
3636
/* position:relative on :host makes position:absolute on its children work
3737
relative to :host's bounds. */
3838
:host { position: relative; }
39-
table { position: absolute; right: 0; top: 0; }
40-
h1 { position: absolute; top: 40%; }
41-
p.warning { position: absolute; bottom: 5%; }
39+
table.draft_header { position: absolute; right: 0; top: 0; }
40+
table.pdts_header { position: absolute; right: 0; top: 0; }
41+
table.pdts_footer { position: absolute; left: 0; bottom: 5%; }
42+
table.pdts_warning { position: absolute; bottom: 20%; }
43+
h1.draft_title { position: absolute; top: 40%; }
44+
h1.pdts_title { position: absolute; top: 30%; }
45+
p.draft_warning { position: absolute; bottom: 5%; }
4246

4347
h1 {text-align: center;}
4448

4549
th { text-align: left; vertical-align: top; }
4650
</style>
47-
<table>
48-
<template if="{{docnum}}">
49-
<tr><th>Document Number:</th><td><content select="cxx-docnum"/></td></tr>
50-
</template>
51-
<template if="{{pubdate}}">
52-
<tr><th>Date:</th><td><content select="time[pubdate]"/></td></tr>
53-
</template>
54-
<template if="{{revises}}">
55-
<tr><th>Revises:</th><td><content select="cxx-revises"/></td></tr>
56-
</template>
57-
<template if="{{editor}}">
58-
<tr><th>Editor:</th><td><content select="cxx-editor"/></td></tr>
59-
</template>
60-
</table>
61-
<h1>{{stage_title}}, {{iso_title_prefix}}{{title}}</h1>
6251
<template if="{{stage == 'draft'}}">
63-
<p class="warning"><strong>Note: this is an early draft. It’s known to be
52+
<table class="draft_header">
53+
<template if="{{docnum}}">
54+
<tr><th>Document Number:</th><td><content select="cxx-docnum"/></td></tr>
55+
</template>
56+
<template if="{{pubdate}}">
57+
<tr><th>Date:</th><td><content select="time[pubdate]"/></td></tr>
58+
</template>
59+
<template if="{{revises}}">
60+
<tr><th>Revises:</th><td><content select="cxx-revises"/></td></tr>
61+
</template>
62+
<template if="{{editor}}">
63+
<tr><th>Editor:</th><td><content select="cxx-editor"/></td></tr>
64+
</template>
65+
</table>
66+
</template>
67+
<template if="{{stage == 'pdts'}}">
68+
<table class="pdts_header">
69+
<template if="{{docnum}}">
70+
<tr><th>ISO/IEC JTC 1/SC 22/WG 21</th><td><content select="cxx-docnum"/></td></tr>
71+
</template>
72+
<template if="{{pubdate}}">
73+
<tr><th>Date:</th><td><content select="time[pubdate]"/></td></tr>
74+
</template>
75+
<template if="{{tsnum}}">
76+
<tr><th>ISO/IEC PDTS</th><td><content select="cxx-tsnum"/></td></tr>
77+
</template>
78+
<tr><th>ISO/IEC JTC1 SC22</th></tr>
79+
<tr><th>Secretariat:</th><td>ANSI</td></tr>
80+
</table>
81+
</template>
82+
<template if="{{stage == 'draft'}}">
83+
<h1 class="draft_title">{{stage_title}}{{iso_title_prefix}}{{title}}</h1>
84+
</template>
85+
<template if="{{stage == 'pdts'}}">
86+
<h1 class="pdts_title">{{stage_title}}{{iso_title_prefix}}{{title}}</h1>
87+
</template>
88+
<template if="{{stage == 'pdts'}}">
89+
<table class="pdts_warning" border="1" cellpadding="10" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
90+
<tr>
91+
<td width="100%"><p align="center"><b>Warning</b></p>
92+
<p>This document is not an ISO International Standard. It is distributed for review and comment. It is
93+
subject to change without notice and may not be referred to as an International Standard.
94+
</p>
95+
<p>Recipients of this draft are invited to submit, with their comments, notification of any relevant
96+
patent rights of which they are aware and to provide supporting documentation.</p>
97+
</td>
98+
</tr>
99+
</table>
100+
</template>
101+
<template if="{{stage == 'draft'}}">
102+
<p class="draft_warning"><strong>Note: this is an early draft. It’s known to be
64103
incomplet and incorrekt, and it has lots of b<span
65104
style="margin-left: -1.2pt; margin-right: 1pt">a</span>d<span
66105
style="width:1.5em"> </span>for<span
67106
style="margin-left:-3pt; margin-right:0.6pt">mat</span>ti<span
68107
style="position:relative; top:-0.15ex">n</span>g.</strong></p>
69108
</template>
109+
<template if="{{stage == 'pdts'}}">
110+
<table class="pdts_footer">
111+
<tr><td>Document type:</th><td>Draft Technical Specification</td></tr>
112+
<tr><td>Document subtype:</th></tr>
113+
<tr><td>Document stage:</td><td>(10) Proposal</td></tr>
114+
<tr><td>Document language:</td><td>E</td></tr>
115+
</table>
116+
</template>
70117
</template>
71118
<script src="titlepage.js"></script>
72119
</polymer-element>

bower_components/cxx-html-doc-framework/titlepage.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ limitations under the License.
3030
this.title = this.querySelector('h1').textContent;
3131
this.stage = this.getAttribute('stage');
3232
if (this.stage == 'draft') {
33-
this.stage_title = "Working Draft";
34-
//} else if (this.stage == 'pdts') {
35-
// this.iso_title_prefix = "Information technology – Programming languages, their environments and system software interfaces – "
33+
this.stage_title = "Working Draft, ";
34+
} else if (this.stage == 'pdts') {
35+
this.tsnum = this.querySelector('cxx-tsnum');
36+
this.iso_title_prefix = "Information technology – Programming languages, their environments and system software interfaces – "
3637
} else {
3738
console.error('Unexpected stage: ' + this.stage);
3839
}

front_matter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<cxx-titlepage stage="draft">
22
<cxx-docnum>N4104</cxx-docnum>
3-
<time pubdate="">2014-06-19</time>
3+
<time pubdate="">2014-07-04</time>
44
<cxx-revises><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3960.pdf">N3960</a></cxx-revises>
55
<cxx-editor>
66
Jared Hoberock<br/>

parallelism-ts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@
570570
<tbody><tr><th>Document Number:</th><td><cxx-docnum>N4104</cxx-docnum></td></tr>
571571

572572

573-
<tr><th>Date:</th><td><time pubdate="">2014-06-19</time></td></tr>
573+
<tr><th>Date:</th><td><time pubdate="">2014-07-04</time></td></tr>
574574

575575

576576
<tr><th>Revises:</th><td><cxx-revises><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3960.pdf">N3960</a></cxx-revises></td></tr>

parallelism-ts.pdf

-2 Bytes
Binary file not shown.

pdts_front_matter.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<cxx-titlepage stage="pdts">
2+
<cxx-docnum>N4104</cxx-docnum>
3+
<cxx-tsnum>19570</cxx-tsnum>
4+
<time pubdate="">2014-07-04</time>
5+
<cxx-revises><a href="https://github.com/cplusplus/parallelism-ts/releases/download/N4071/parallelism-ts.pdf">N4071</a></cxx-revises>
6+
<cxx-editor>
7+
Jared Hoberock<br/>
8+
NVIDIA Corporation<br/>
9+
<cxx-email>[email protected]</cxx-email>
10+
</cxx-editor>
11+
<h1>Technical Specification for C++ Extensions for Parallelism</h1>
12+
</cxx-titlepage>
13+
14+
<table style="page-break-after:always" border="1" cellpadding="10" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
15+
<tr>
16+
<td width="100%"><p align="center"><b>Copyright notice</b></p>
17+
<p>This ISO document is a working draft or committee draft and is copyright-protected by ISO. While
18+
the reproduction of working drafts or committee drafts in any form for use by participants in the
19+
ISO standards development process is permitted without prior permission from ISO, neither this
20+
document nor any extract from it may be reproduced, stored or transmitted in any form for any
21+
other purpose without prior written permission from ISO.</p>
22+
<p>Requests for permission to reproduce this document for the purpose of selling it should be
23+
addressed as shown below or to ISO’s member body in the country of the requester:</p>
24+
<blockquote><p>ISO copyright officer<br>
25+
Case postale 56, CH-1211 Geneva 20<br>
26+
Tel. + 41 22 749 01 11<br>
27+
Fax + 41 22 749 09 47<br>
28+
E-mail [email protected]<br>
29+
Web www.iso.org
30+
</p></blockquote>
31+
<p>Reproduction may be subject to royalty payments or a licensing agreement.</p>
32+
<p>Violators may be prosecuted.</p></td>
33+
</tr>
34+
</table>
35+
36+
<cxx-toc></cxx-toc>
37+

pdts_main.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8"/>
5+
<script src="bower_components/platform/platform.js"></script>
6+
<link rel="import" href="bower_components/cxx-html-doc-framework/framework.html"/>
7+
</head>
8+
<body unresolved="">
9+
10+
<cxx-include href="pdts_front_matter.html"></cxx-include>
11+
<cxx-include href="general.html"></cxx-include>
12+
<cxx-include href="execution_policies.html"></cxx-include>
13+
<cxx-include href="exceptions.html"></cxx-include>
14+
<cxx-include href="algorithms.html"></cxx-include>
15+
<cxx-publish-button source="https://github.com/cplusplus/parallelism-ts"></cxx-publish-button>
16+
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)