Skip to content

Commit 75e7f5e

Browse files
committed
Improved formatting
* better green for headlines * consistent headline styles * JSON Reference as normative reference
1 parent 6305acf commit 75e7f5e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/md2html/md2html.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ function preface(title,options) {
107107
preface += '</head><body>';
108108
preface += '<style>';
109109
preface += '#respec-ui { visibility: hidden; }';
110-
preface += 'h1,h2,h3 { color: #629b34; }';
111-
preface += '.dt-published { color: #629b34; } .dt-published::before { content: "Published "; }';
112-
preface += 'a[href] { color: #45512c; }'; // third OAI colour is #8ad000
110+
preface += '#title { color: #578000; } #subtitle { color: #578000; }';
111+
preface += '.dt-published { color: #578000; } .dt-published::before { content: "Published "; }';
112+
preface += 'h1,h2,h3,h4,h5,h6 { color: #578000; font-weight: normal; font-style: normal; }';
113+
preface += 'a[href] { color: #45512c; }';
113114
preface += 'body:not(.toc-inline) #toc h2 { color: #45512c; }';
114115
preface += 'table { display: block; width: 100%; overflow: auto; }';
115116
preface += 'table th { font-weight: 600; }';
@@ -305,6 +306,7 @@ for (let l in lines) {
305306
line = line.replace('consult http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4)','consult [[HTML401]] [Section 17.13.4](http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4)');
306307
line = line.replace('[IANA Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)','[[IANA-HTTP-STATUS-CODES|IANA Status Code Registry]]');
307308
line = line.replace('[IANA Authentication Scheme registry](https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml)','[[IANA-HTTP-AUTHSCHEMES]]');
309+
line = line.replace('[JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03)','[[JSON-Reference|JSON Reference]]');
308310
line = line.replace('[JSON Schema Specification Draft 4](https://json-schema.org/)','[[JSON-Schema-04|JSON Schema Specification Draft 4]]');
309311
line = line.replace('[JSON Schema Core](https://tools.ietf.org/html/draft-zyp-json-schema-04)','[[JSON-Schema-04|JSON Schema Core]]');
310312
line = line.replace('[JSON Schema Validation](https://tools.ietf.org/html/draft-fge-json-schema-validation-00)','[[JSON-Schema-Validation-04|JSON Schema Validation]]');

0 commit comments

Comments
 (0)