@healthcatalyst/catalyst-docfx-template 1.0.52 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcatalyst/catalyst-docfx-template",
3
- "version": "1.0.52",
3
+ "version": "1.0.55",
4
4
  "license": "MIT",
5
5
  "description": "A DocFX Template patching the Default template.",
6
6
  "publishConfig": {
@@ -8,15 +8,15 @@
8
8
  <meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
9
9
  <meta name="generator" content="docfx {{_docfxVersion}}">
10
10
  {{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
11
- <link rel="shortcut icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
12
- <link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.css">
13
- <link rel="stylesheet" href="{{_rel}}styles/docfx.css">
14
- <link rel="stylesheet" href="{{_rel}}styles/font-awesome.min.css">
15
- <link rel="stylesheet" href="{{_rel}}styles/hcicons.css">
16
- <link rel="stylesheet" href="{{_rel}}styles/lightbox.min.css">
17
- <link rel="stylesheet" href="{{_rel}}open-sans.css">
18
- <link rel="stylesheet" href="{{_rel}}styles/main.css">
19
- <link rel="stylesheet" href="{{_rel}}product-styles/product.css">
11
+ <link rel="shortcut icon" href="{{_rel}}{{_stylesPath}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
12
+ <link rel="stylesheet" href="{{_rel}}{{_stylesPath}}styles/docfx.vendor.css">
13
+ <link rel="stylesheet" href="{{_rel}}{{_stylesPath}}styles/docfx.css">
14
+ <link rel="stylesheet" href="{{_rel}}{{_stylesPath}}styles/font-awesome.min.css">
15
+ <link rel="stylesheet" href="{{_rel}}{{_stylesPath}}styles/hcicons.css">
16
+ <link rel="stylesheet" href="{{_rel}}{{_stylesPath}}styles/lightbox.min.css">
17
+ <link rel="stylesheet" href="{{_rel}}{{_stylesPath}}open-sans.css">
18
+ <link rel="stylesheet" href="{{_rel}}{{_stylesPath}}styles/main.css">
19
+ <link rel="stylesheet" href="{{_rel}}{{_stylesPath}}product-styles/product.css">
20
20
  <meta property="docfx:navrel" content="{{_navRel}}">
21
21
  <meta property="docfx:tocrel" content="{{_tocRel}}">
22
22
  {{#_noindex}}<meta name="searchOption" content="noindex">{{/_noindex}}
@@ -1,12 +1,12 @@
1
1
  {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2
2
 
3
- <script type="text/javascript" src="{{_rel}}styles/docfx.vendor.js"></script>
4
- <script type="text/javascript" src="{{_rel}}styles/docfx.js"></script>
5
- <script type="text/javascript" src="{{_rel}}styles/clipboard.min.js"></script>
6
- <script type="text/javascript" src="{{_rel}}styles/lightbox.min.js"></script>
7
- <script type="text/javascript" src="{{_rel}}styles/main.js"></script>
8
- <script type="text/javascript" src="{{_rel}}styles/docs-navbar.js"></script>
9
- <script type="text/javascript" src="{{_rel}}product-styles/product.js"></script>
3
+ <script type="text/javascript" src="{{_rel}}{{_stylesPath}}styles/docfx.vendor.js"></script>
4
+ <script type="text/javascript" src="{{_rel}}{{_stylesPath}}styles/docfx.js"></script>
5
+ <script type="text/javascript" src="{{_rel}}{{_stylesPath}}styles/clipboard.min.js"></script>
6
+ <script type="text/javascript" src="{{_rel}}{{_stylesPath}}styles/lightbox.min.js"></script>
7
+ <script type="text/javascript" src="{{_rel}}{{_stylesPath}}styles/main.js"></script>
8
+ <script type="text/javascript" src="{{_rel}}{{_stylesPath}}styles/docs-navbar.js"></script>
9
+ <script type="text/javascript" src="{{_rel}}{{_stylesPath}}product-styles/product.js"></script>
10
10
  <script async src="https://www.googletagmanager.com/gtag/js?id=UA-105743506-1"></script><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-105743506-1');</script>
11
11
  <script type="text/javascript">
12
12
  !function(T,l,y){var S=T.location,k="script",D="instrumentationKey",C="ingestionendpoint",I="disableExceptionTracking",E="ai.device.",b="toLowerCase",w="crossOrigin",N="POST",e="appInsightsSDK",t=y.name||"appInsights";(y.name||T[e])&&(T[e]=t);var n=T[t]||function(d){var g=!1,f=!1,m={initialize:!0,queue:[],sv:"5",version:2,config:d};function v(e,t){var n={},a="Browser";return n[E+"id"]=a[b](),n[E+"type"]=a,n["ai.operation.name"]=S&&S.pathname||"_unknown_",n["ai.internal.sdkVersion"]="javascript:snippet_"+(m.sv||m.version),{time:function(){var e=new Date;function t(e){var t=""+e;return 1===t.length&&(t="0"+t),t}return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+((e.getUTCMilliseconds()/1e3).toFixed(3)+"").slice(2,5)+"Z"}(),iKey:e,name:"Microsoft.ApplicationInsights."+e.replace(/-/g,"")+"."+t,sampleRate:100,tags:n,data:{baseData:{ver:2}}}}var h=d.url||y.src;if(h){function a(e){var t,n,a,i,r,o,s,c,u,p,l;g=!0,m.queue=[],f||(f=!0,t=h,s=function(){var e={},t=d.connectionString;if(t)for(var n=t.split(";"),a=0;a<n.length;a++){var i=n[a].split("=");2===i.length&&(e[i[0][b]()]=i[1])}if(!e[C]){var r=e.endpointsuffix,o=r?e.location:null;e[C]="https://"+(o?o+".":"")+"dc."+(r||"services.visualstudio.com")}return e}(),c=s[D]||d[D]||"",u=s[C],p=u?u+"/v2/track":d.endpointUrl,(l=[]).push((n="SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details)",a=t,i=p,(o=(r=v(c,"Exception")).data).baseType="ExceptionData",o.baseData.exceptions=[{typeName:"SDKLoadFailed",message:n.replace(/\./g,"-"),hasFullStack:!1,stack:n+"\nSnippet failed to load ["+a+"] -- Telemetry is disabled\nHelp Link: https://go.microsoft.com/fwlink/?linkid=2128109\nHost: "+(S&&S.pathname||"_unknown_")+"\nEndpoint: "+i,parsedStack:[]}],r)),l.push(function(e,t,n,a){var i=v(c,"Message"),r=i.data;r.baseType="MessageData";var o=r.baseData;return o.message='AI (Internal): 99 message:"'+("SDK LOAD Failure: Failed to load Application Insights SDK script (See stack for details) ("+n+")").replace(/\"/g,"")+'"',o.properties={endpoint:a},i}(0,0,t,p)),function(e,t){if(JSON){var n=T.fetch;if(n&&!y.useXhr)n(t,{method:N,body:JSON.stringify(e),mode:"cors"});else if(XMLHttpRequest){var a=new XMLHttpRequest;a.open(N,t),a.setRequestHeader("Content-type","application/json"),a.send(JSON.stringify(e))}}}(l,p))}function i(e,t){f||setTimeout(function(){!t&&m.core||a()},500)}var e=function(){var n=l.createElement(k);n.src=h;var e=y[w];return!e&&""!==e||"undefined"==n[w]||(n[w]=e),n.onload=i,n.onerror=a,n.onreadystatechange=function(e,t){"loaded"!==n.readyState&&"complete"!==n.readyState||i(0,t)},n}();y.ld<0?l.getElementsByTagName("head")[0].appendChild(e):setTimeout(function(){l.getElementsByTagName(k)[0].parentNode.appendChild(e)},y.ld||0)}try{m.cookie=l.cookie}catch(p){}function t(e){for(;e.length;)!function(t){m[t]=function(){var e=arguments;g||m.queue.push(function(){m[t].apply(m,e)})}}(e.pop())}var n="track",r="TrackPage",o="TrackEvent";t([n+"Event",n+"PageView",n+"Exception",n+"Trace",n+"DependencyData",n+"Metric",n+"PageViewPerformance","start"+r,"stop"+r,"start"+o,"stop"+o,"addTelemetryInitializer","setAuthenticatedUserContext","clearAuthenticatedUserContext","flush"]),m.SeverityLevel={Verbose:0,Information:1,Warning:2,Error:3,Critical:4};var s=(d.extensionConfig||{}).ApplicationInsightsAnalytics||{};if(!0!==d[I]&&!0!==s[I]){var c="onerror";t(["_"+c]);var u=T[c];T[c]=function(e,t,n,a,i){var r=u&&u(e,t,n,a,i);return!0!==r&&m["_"+c]({message:e,url:t,lineNumber:n,columnNumber:a,error:i}),r},d.autoExceptionInstrumented=!0}return m}(y.cfg);function a(){y.onInit&&y.onInit(n)}(T[t]=n).queue&&0===n.queue.length?(n.queue.push(a),n.trackPageView({})):a()}(window,document,{
@@ -0,0 +1,46 @@
1
+ {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2
+ {{!master(layout/_master.tmpl)}}
3
+ <style>
4
+ .cover-title {
5
+ text-align: top;
6
+ font-size: 45px;
7
+ }
8
+
9
+ h2 {
10
+ font-size: 24px;
11
+ padding-top: 5px;
12
+ }
13
+
14
+ h3 {
15
+ padding-top: 10px;
16
+ }
17
+
18
+ ul {
19
+ list-style: none;
20
+ margin-left: 5px;
21
+ padding-left: 5px;
22
+ }
23
+
24
+ li {
25
+ padding-left: 1em;
26
+ text-indent: -1em;
27
+ }
28
+
29
+ li:before {
30
+ content: "•";
31
+ padding-right: 9px;
32
+ }
33
+
34
+ li > ul > li:before {
35
+ content: "–";
36
+ padding-right: 9px;
37
+ margin-left: 0px;
38
+ }
39
+
40
+ img {
41
+ border: none;
42
+ padding-bottom: 100px;
43
+ }
44
+ </style>
45
+ <div class="cover-title">{{{rawTitle}}}</div>
46
+ <div>{{{conceptual}}}</div>
@@ -0,0 +1,22 @@
1
+ {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2
+ {{!include(/^styles/.*/)}}
3
+ {{!include(/^fonts/.*/)}}
4
+ <!DOCTYPE html>
5
+ <!--[if IE]><![endif]-->
6
+ <html>
7
+ <head>
8
+ <link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.css">
9
+ <link rel="stylesheet" href="{{_rel}}styles/default.css">
10
+ <link rel="stylesheet" href="{{_rel}}node_modules/font-awesome/css/font-awesome.min.css">
11
+ <link rel="stylesheet" href="{{_rel}}node_modules/@healthcatalyst/cashmere/hcicons/css/hcicons.css">
12
+ <link rel="stylesheet" href="{{_rel}}styles/main.css">
13
+ </head>
14
+ <body>
15
+ <article>
16
+ {{!body}}
17
+ </article>
18
+ <script type="text/javascript" src="{{_rel}}styles/docfx.vendor.js"></script>
19
+ <script type="text/javascript" src="{{_rel}}styles/docfx.js"></script>
20
+ <script type="text/javascript" src="{{_rel}}styles/main.js"></script>
21
+ </body>
22
+ </html>
@@ -0,0 +1,22 @@
1
+ {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
2
+
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
+ <title>{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}</title>
7
+ <meta name="viewport" content="width=device-width">
8
+ <meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
9
+ <meta name="generator" content="docfx {{_docfxVersion}}">
10
+ {{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
11
+ <link rel="shortcut icon" href="{{_rel}}{{{_appFaviconPath}}}{{^_appFaviconPath}}favicon.ico{{/_appFaviconPath}}">
12
+ <link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.css">
13
+ <link rel="stylesheet" href="{{_rel}}styles/docfx.css">
14
+ <link rel="stylesheet" href="{{_rel}}node_modules/font-awesome/css/font-awesome.min.css">
15
+ <link rel="stylesheet" href="{{_rel}}node_modules/@healthcatalyst/cashmere/hcicons/css/hcicons.css">
16
+ <link rel="stylesheet" href="{{_rel}}styles/main.css">
17
+ <meta property="docfx:navrel" content="{{_navRel}}">
18
+ <meta property="docfx:tocrel" content="{{_tocRel}}">
19
+ {{#_noindex}}<meta name="searchOption" content="noindex">{{/_noindex}}
20
+ {{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
21
+ {{#_enableNewTab}}<meta property="docfx:newtab" content="true">{{/_enableNewTab}}
22
+ </head>
@@ -0,0 +1,169 @@
1
+ #cover {
2
+ border: none;
3
+ padding-bottom: 150px;
4
+ width: 300px;
5
+ }
6
+
7
+ h1, h2, h3, h4, h5, h6 {
8
+ font-family: 'Segoe UI' !important;
9
+ page-break-after: avoid;
10
+ text-transform: none;
11
+ page-break-after: avoid !important;
12
+ color: black;
13
+ font-weight: 600;
14
+ letter-spacing: 0px;
15
+ }
16
+
17
+ h2 {
18
+ font-size: 24px;
19
+ }
20
+
21
+ h3 {
22
+ font-size: 18px;
23
+ }
24
+
25
+ h4 {
26
+ font-size: 16px;
27
+ }
28
+
29
+ h5 {
30
+ font-size: 14px;
31
+ }
32
+
33
+ h6 {
34
+ font-size: 12px;
35
+ }
36
+
37
+ .pb_after_avoid {
38
+ page-break-after: avoid !important;
39
+ }
40
+
41
+ html {
42
+ padding: 50px;
43
+ }
44
+
45
+ b, strong {
46
+ font-weight: 600 !important;
47
+ }
48
+
49
+ code, pre, pre code {
50
+ font-family: Consolas, monaco, monospace !important;
51
+ background-color: #f1f1f1 !important;
52
+ }
53
+
54
+ code {
55
+ color: #a94c9d;
56
+ border-radius: 3px;
57
+ padding: 2px 7px;
58
+ border: none;
59
+ font-size: .8em;
60
+ }
61
+
62
+ pre, pre code {
63
+ border: 0px;
64
+ border-radius: 6px;
65
+ padding: 15px
66
+ }
67
+
68
+ img {
69
+ border: solid;
70
+ border-width: thin;
71
+ border-color: #D7DDE4;
72
+ }
73
+
74
+ a {
75
+ color: #007bb8;
76
+ }
77
+
78
+ /* Tables */
79
+ table {
80
+ margin-top: 20px;
81
+ margin-bottom: 20px;
82
+ border-style: none !important;
83
+ }
84
+
85
+ table th {
86
+ text-transform: none;
87
+ letter-spacing: 0px;
88
+ font-weight: 600;
89
+ color: #006D9A;
90
+ font-size: 14px;
91
+ padding-left: 10px;
92
+ border-style: none !important;
93
+ }
94
+
95
+ table>tbody>tr>td,
96
+ table>tbody>tr>th,
97
+ table>tfoot>tr>td,
98
+ table>tfoot>tr>th {
99
+ vertical-align: top;
100
+ }
101
+
102
+ table>thead>tr>th {
103
+ padding: .75em;
104
+ padding-left: 1em;
105
+ border-bottom: 1px solid #D7DDE4 !important;
106
+ }
107
+
108
+ table>tbody>tr {
109
+ border-bottom: 1px solid #D7DDE4 !important;
110
+ }
111
+
112
+ table>tbody>tr>td {
113
+ border-bottom: 1px solid #D7DDE4 !important;
114
+ }
115
+
116
+ td:nth-of-type(1) {
117
+ font-weight: 700;
118
+ }
119
+
120
+ /* Alert callouts */
121
+ .INFO, .TIP, .NOTE, .WARNING, .IMPORTANT, .DANGER {
122
+ padding-left: 15px;
123
+ padding-right: 15px;
124
+ padding-bottom: 5px;
125
+ padding-top: 10px;
126
+ background: #E0F5FF;
127
+ border-radius: 6px;
128
+ color: black;
129
+ margin-top: 20px;
130
+ margin-top: 20px;
131
+ page-break-inside: avoid !important;
132
+ font-size: 1em;
133
+ line-height: 1.6;
134
+ }
135
+
136
+ .INFO h5, .TIP h5, .NOTE h5, .WARNING h5, .IMPORTANT h5, .DANGER h5 {
137
+ font-weight: 800;
138
+ font-size: .9em;
139
+ border-color: transparent;
140
+ color: black;
141
+ background: #E0F5FF;
142
+ margin-bottom: 0px;
143
+ }
144
+
145
+ .INFO h5:before, .TIP h5:before, .NOTE h5:before, .WARNING h5:before, .IMPORTANT h5:before, .DANGER h5:before {
146
+ font-family: 'FontAwesome';
147
+ font-weight: normal;
148
+ padding-right: 3px;
149
+ font-size: .9em;
150
+ line-height: 1.6;
151
+ color: black;
152
+ }
153
+
154
+ .INFO h5:before, .TIP h5:before, .NOTE h5:before {
155
+ content:"\f05a";
156
+ }
157
+
158
+ .WARNING h5:before, .IMPORTANT h5:before {
159
+ content:"\f071";
160
+ }
161
+
162
+ .DANGER h5:before{
163
+ content:"\f06a";
164
+ }
165
+
166
+ /* This code hides cross references in the web app. Corresponding code (.pdf-only) that hides cross references between PDF pages is in /templates/catalyst/styles/main.css. */
167
+ .web-only {
168
+ display:none;
169
+ }
@@ -0,0 +1,97 @@
1
+ {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for
2
+ full license information.}} {{!master(layout/_master.tmpl)}}
3
+ <style>
4
+ .TocNavigationVertical {
5
+ margin-top: 24px;
6
+ font-family: 'Segoe UI';
7
+ margin-left: 25px;
8
+ }
9
+
10
+ .TocNavigationVertical ul {
11
+ list-style: none;
12
+ /* Remove list bullets */
13
+ padding: 0;
14
+ margin: 0;
15
+ font-size: 15px;
16
+ }
17
+
18
+ .TocNavigationVertical li {
19
+ margin-top: 10px;
20
+ padding-left: 16px;
21
+ }
22
+
23
+ .TocNavigationVertical li:before {
24
+ content: "";
25
+ /* Insert content that looks like bullets */
26
+ padding-right: 8px;
27
+ color: #007bb8;
28
+ }
29
+
30
+ .TocNavigationVertical a:link {
31
+ text-decoration: none;
32
+ color: #007bb8;
33
+ }
34
+
35
+ .TocNavigationVertical a:visited {
36
+ text-decoration: none;
37
+ color: #007bb8;
38
+ }
39
+
40
+ .TocHeader {
41
+ display: table;
42
+ height: 30px;
43
+ overflow: hidden;
44
+ background-color: transparent;
45
+ width: 100%;
46
+ }
47
+
48
+ .TocHeaderContainer {
49
+ display: table-cell;
50
+ vertical-align: middle;
51
+ }
52
+
53
+ h1 {
54
+ color: black;
55
+ font-family: 'Segoe UI';
56
+ display: inline-block;
57
+ vertical-align: middle;
58
+ line-height: normal;
59
+ margin-left: 25px;
60
+ }
61
+ </style>
62
+ <div class=" TocHeader">
63
+ <div class="TocHeaderContainer">
64
+ <h1>Contents</h1>
65
+ </div>
66
+ </div>
67
+ <div class="TocNavigationVertical" id="toc">
68
+ <ul class="tocBase tocLevel1">
69
+ {{#items}}
70
+ <li>
71
+ {{# href }}
72
+ <a class="normal" href="{{ href }}">{{ name }}</a> {{/ href }} {{^ href }}
73
+ <a class="normal slidedown" style="font-size: 18px; font-weight: 600">{{ name }}</a> {{/ href }} {{# items.0 }}
74
+ <ul class="tocLevel{{level}}">
75
+ {{/ items.0 }} {{#items}}
76
+ <li>
77
+ {{# href }}
78
+ <a class="normal" href="{{ href }}">{{ name }}</a> {{/ href }} {{^ href }}
79
+ <a class="normal slidedown">{{ name }}</a> {{/ href }} {{# items.0 }}
80
+ <ul class="tocLevel{{level}}">
81
+ {{/ items.0 }} {{#items}}
82
+ <li>
83
+ {{# href }}
84
+ <a class="normal" href="{{ href }}">{{ name }}</a> {{/ href }} {{^ href }}
85
+ <a class="normal slidedown">{{ name }}</a> {{/ href }}
86
+ </li>
87
+ {{/items}} {{# items.0 }}
88
+ </ul>
89
+ {{/ items.0 }}
90
+ </li>
91
+ {{/items}} {{# items.0 }}
92
+ </ul>
93
+ {{/ items.0 }}
94
+ </li>
95
+ {{/items}}
96
+ </ul>
97
+ </div>
package/styles/main.css CHANGED
@@ -1641,4 +1641,132 @@ a.anchor {
1641
1641
  pre {
1642
1642
  /* Avoid pushing up the copy buttons. */
1643
1643
  /* margin: 0; */
1644
+ }
1645
+
1646
+ /* This code hides cross references between PDF pages. Corresponding code (.web-only) that hides cross references in the web app is in /templates/pdf/styles/main.css. */
1647
+ .pdf-only {
1648
+ display: none;
1649
+ }
1650
+
1651
+ /*
1652
+ .sidetoc, .sidefilter {
1653
+ margin-top: 56px;
1654
+ }
1655
+ */
1656
+
1657
+ .statusMessage {
1658
+ background-color: #aae2c8;
1659
+ font-size: 13.5px;
1660
+ font-weight: 600;
1661
+ padding-top: 15px;
1662
+ padding-bottom: 20px;
1663
+ padding-right: 15px;
1664
+ margin-top: -16px;
1665
+ margin-right: 16px;
1666
+ margin-left: -40px;
1667
+ margin-bottom: 10px;
1668
+ padding-left: 5em;
1669
+ text-indent: -5em;
1670
+ }
1671
+
1672
+ #statusIcon {
1673
+ font-size: 24px;
1674
+ margin-left: 100px;
1675
+ transform: translate(0, 5px);
1676
+ margin-right: -36px;
1677
+ }
1678
+
1679
+ .toc-deprecated:before {
1680
+ content: 'Deprecated' !important;
1681
+ background-color: #d7dde4;
1682
+ color: #333;
1683
+ border-radius: 3px;
1684
+ font-size: 9px;
1685
+ text-transform: uppercase;
1686
+ font-weight: 600;
1687
+ letter-spacing: 0.15px;
1688
+ margin-left: 0px;
1689
+ margin-top: 4px;
1690
+ margin-bottom: 4px;
1691
+ margin-right: 4px;
1692
+ padding: 3px 7px 3px 10px;
1693
+ position: relative;
1694
+ top: -1px;
1695
+ }
1696
+
1697
+ /* "Page has moved/is obsolete" banner at top of page */
1698
+
1699
+ #nextWarning {
1700
+ background-color: #ffdbb7;
1701
+ font-size: 12px;
1702
+ font-weight: 400;
1703
+ height: 35px;
1704
+ }
1705
+
1706
+ #nextWarning p {
1707
+ text-align: center;
1708
+ margin: auto;
1709
+ font-size: 13.5px;
1710
+ font-weight: 600;
1711
+ }
1712
+
1713
+ #nextWarningToc {
1714
+ margin-top: 56px;
1715
+ }
1716
+
1717
+ /* Which DOS versions apply to page */
1718
+
1719
+ #tag {
1720
+ font-size: 13.5px;
1721
+ font-weight: 600;
1722
+ padding-top: 15px;
1723
+ padding-bottom: 15px;
1724
+ padding-right: 15px;
1725
+ padding-left: 15px;
1726
+ margin-top: -16px !important;
1727
+ margin-left: -50px;
1728
+ margin-bottom: 10px !important;
1729
+ margin-right: 15px;
1730
+ text-indent: 4em;
1731
+ background: #d6f3ff;
1732
+ }
1733
+
1734
+ #version {
1735
+ padding-left: 12px;
1736
+ font-weight: 400;
1737
+ }
1738
+
1739
+ #success-checkmark {
1740
+ background: #00aeff;
1741
+ color: white;
1742
+ padding: 1px 4px;
1743
+ border-radius: 50%;
1744
+ padding-right: 1px;
1745
+ margin-right: 8px;
1746
+ }
1747
+
1748
+ #version-bump {
1749
+ padding-right: 15px;
1750
+ }
1751
+
1752
+ /* Styles a message in a line anywhere in the document with {{ term }} - see main.js */
1753
+
1754
+ .message {
1755
+ font-size: 13.5px;
1756
+ font-weight: 600;
1757
+ padding-top: 8px;
1758
+ padding-bottom: 8px;
1759
+ padding-left: 15px;
1760
+ margin-top: 35px;
1761
+ margin-bottom: -5px;
1762
+ text-indent: 2em;
1763
+ background: #d6f3ff;
1764
+ display: inline-block;
1765
+ width: 100%;
1766
+ }
1767
+
1768
+ .message > .fa:before {
1769
+ margin-left: -52px;
1770
+ padding-right: 10px;
1771
+ color: #00aeff;
1644
1772
  }
package/styles/main.js CHANGED
@@ -136,46 +136,64 @@ copyCode.on('success', function(event) {
136
136
 
137
137
  // Replace {{ keys }} with plain-text values in sourcedContent/terms.json at directory root
138
138
 
139
- var terms = (function() {
139
+ var terms = (function () {
140
140
  var json = null;
141
+ var baseUrl = window.location.origin;
142
+ console.log(baseUrl);
141
143
  $.ajax({
142
- async: false,
143
- global: false,
144
- url: '../../sourcedContent/terms.json',
145
- dataType: 'json',
146
- success: function(data) {
147
- json = data;
148
- }
144
+ async: false,
145
+ global: false,
146
+ url: baseUrl + "/sourcedContent/terms.json",
147
+ dataType: "json",
148
+ success: function (data) {
149
+ json = data;
150
+ },
149
151
  });
152
+
150
153
  for (let [key, value] of Object.entries(json)) {
151
- // console.log(`${key}: ${value}`);
152
- var toReplace = '{{ ' + key + ' }}';
153
- var replaceWith = value;
154
- document.body.innerHTML = document.body.innerHTML.replace(toReplace, replaceWith);
154
+ console.log(`${key}: ${value}`);
155
+ var toReplace = "{{ " + key + " }}";
156
+ var replaceWith = value;
157
+ document.body.innerHTML = document.body.innerHTML.replace(
158
+ toReplace,
159
+ replaceWith
160
+ );
155
161
  }
156
162
  return terms;
157
- })();
158
-
159
- // Replace {{ keys }} with icon and message banner from sourcedContent/messages.json at directory root
160
-
161
- var messages = (function() {
163
+ })();
164
+
165
+ // Replace {{ keys }} with icon and message banner from sourcedContent/messages.json at directory root
166
+
167
+ var messages = (function () {
162
168
  var json = null;
169
+ var baseUrl = window.location.origin;
170
+ console.log(baseUrl)
163
171
  $.ajax({
164
- async: false,
165
- global: false,
166
- url: '../../sourcedContent/messages.json',
167
- dataType: 'json',
168
- success: function(data) {
169
- json = data;
170
- }
172
+ async: false,
173
+ global: false,
174
+ url: baseUrl + "/sourcedContent/messages.json",
175
+ dataType: "json",
176
+ success: function (data) {
177
+ json = data;
178
+ },
171
179
  });
172
180
  for (var k in json) {
173
- var o = json[k];
174
- // console.log(o.message);
175
- // console.log(o.icon);
176
- var toReplace = '{{ ' + k + ' }}';
177
- var replaceWith = '<p class="message">' + '<i class="fa ' + o.icon + '"></i>' + o.message + '</p>';
178
- document.body.innerHTML = document.body.innerHTML.replace(toReplace, replaceWith);
181
+ var o = json[k];
182
+ // console.log(o.message);
183
+ // console.log(o.icon);
184
+ var toReplace = "{{ " + k + " }}";
185
+ var replaceWith =
186
+ '<p class="message">' +
187
+ '<i class="fa ' +
188
+ o.icon +
189
+ '"></i>' +
190
+ o.message +
191
+ "</p>";
192
+ document.body.innerHTML = document.body.innerHTML.replace(
193
+ toReplace,
194
+ replaceWith
195
+ );
179
196
  }
180
197
  return messages;
181
- })();
198
+ })();
199
+